Consider the following scenario, We have two gasses, $A$ and $B$, both approximately ideal mixed together in a gravitational field of constant magnitude $g$. Let them have masses per particle of $m_a$ and $m_b$ respectively. At elevation $z = 0$, the concetration $\frac{N_a}{N_b+N_a} = c_0$, and the total pressure is $P_0$. We wish to find the concentration of the two gasses in the mixture at arbitrary elevation $z$.
The following is my very problematic analysis. Let's begin with pressures. Because they are both ideal gasses, they will both individually satisfy the barometric equation
\begin{equation}\frac{\partial P}{\partial z} = -\rho g\end{equation} or in this particular case, the two equations \begin{equation} \frac{\partial P}{\partial z} = \frac{-Pmgz}{kT}\end{equation} Which leads to the obvious solutions \begin{equation} P_a(z) = P_{a0}e^{-m_agz/kT} \end{equation} \begin{equation} P_b(z) = P_{b0}e^{-m_bgz/kT} \end{equation}
Now, let's consider concentration. The chemical potential of a species $A$ in a mixture is the pure chemical potential $\mu_A^o(P,T)$, with an additional term for the entropy of mixing. Given that the entropy of mixing is \begin{equation} -\Delta S_{mix}/k = N_a \ln(1/c) + N_b\ln\left(\frac{1}{1-c}\right) \end{equation} Given that $c$ is a function of $z$. The chemical potential should be \begin{equation} \mu_{mix,A} = \mu_{A}^o + kT\frac{\partial \Delta S}{\partial N_a} = \mu_A^o + kT\ln(1/c) \end{equation} If we now utilize the fact that gas $A$ must be in equilibrium, we have that \begin{equation} \mu_{A}^o(P(z),T,0) + kT\ln(1/c) + m_Agz = \mu_{A}^o(P_0,T,0) + kT\ln(1/c_0) \end{equation} Equivalently, \begin{equation} kT\ln(c/c_0) = \mu_{A}^o(P(z),T,0) - \mu_A^o(P_0,T,0) + m_agz \end{equation}
If we now utilize that the chemical potential of an ideal gas is just $kT\ln(P) - \chi(T)$, this becomes \begin{equation} kT\ln(c/c_0) = kT\ln(P_a/P_{0a}) + m_agz \end{equation} And \begin{equation} c = c_0\frac{P_a(z)}{P_{0a}}e^{m_agz/kT} = c_0e^{-m_agz/kT}e^{m_agz/kT} = c_0 \end{equation}
Thus, one of two things is true. Either I've blundered somewhere and I can't find the mistake, or this is correct and I need to be given an intuition why this is possible. We clearly expect something like a logistic curve where the lighter of the two species becomes more prevalent at higher altitudes. I can derive that result without mixing, but I cannot seem to get it with the mixing factored in. As such, please relieve me of my ignorance!