Hi again,
I've been continuing to work on the problem, taking a slightly different approach than before which still isn't coming out quite right. I think this may have been what you were trying to tell me to do before, but I was a little confused by the method you were outlining. Anyways, here is my what I've done; unfortunately I'm still having some issues:
Basically we start with the ammonia mass balance:
C(NH3) = 1 = [NH3] + [M(NH3) 2+] + 2[M(NH3)2 2+] + 3[M(NH3)3 2+] + 4[M(NH3)4 2+] + [NH4+]
First we solve for the Mn concentration, as before.
Ksp = [Mn 2+] [OH-]^2 ~ .1995 at pH 8
Next, we every one of the mass balance terms in terms of NH3
Kb = 10^(-4.80) = [NH4+] [OH -] / [NH3]
[NH4+] = [NH3] * 10^(-4.80) / [OH-]
And each of the K expressions:
K = [M(NH3)n 2+] / ([NH3]^n * [Mn 2+])
[M(NH3)n 2+] = K * [NH3]^n * .1995 (pH
All of these expressions are substituted into the original mass balance, and then we solve for [NH3], since [Mn 2+] is known. Knowing [NH3] we can solve for [M(NH3)n 2+] for each of the reactions.
This approach is giving a frustratingly close answer, but it is still incorrect. I've scoured through my code for the last few days and believe that the error stems from an oversimplification of the [Mn 2+] calculation which is later used to solve for all of the complex concentrations. The free manganese concentration that we calculate assumes that there are no other equilibrium balances in the system, and so cannot be directly plugged into the equilibrium reactions that yield complexes (I think). Is this correct, and if so, how do I adjust the manganese concentration to account for this?