Mathematical basis of why enthalpy of mixing is 0 for ideal gas
A strategy that often works is to look at the initial and the final states and then compare them. A good place to start is usually the Gibbs free energy of the system (with the intention to use $\Delta_{\mathrm{mix}}H = \Delta_{\mathrm{mix}}G + T \Delta_{\mathrm{mix}}S$ later): for isothermal and isobaric conditions it is

\begin{equation}
  G = \sum_{i} n_{i} \mu_{i} + \mathrm{constant} = n_{\mathrm{tot}} \sum_{i} \underbrace{x_{i}}_{= \, \frac{n_{i}}{n_{\mathrm{tot}}}} \mu_{i} +  \mathrm{constant} \hspace{4em} (1)
\end{equation}

with $n_{i}$, $\mu_{i}$, and $x_{i} = \frac{n_{i}}{n_{\mathrm{tot}}}$ being the amount, the chemical potential, and the mole fraction of the $i$th component in the system, respectively, and $n_{\mathrm{tot}} = \sum_{i} n_{i}$ being the total amount of gas in the system.
So, now we need an expression for the chemical potential of an ideal gas.
It can be shown that this is given by 

\begin{equation}
  \mu_{i} = \mu_{i}^{0} + R T \ln\Bigl(\frac{p_{i}}{p^{0}}\Bigr) \hspace{18em} (2)
\end{equation}

where $\mu_{i}^{0}$ is the chemical potential of the $i$th component in a given standard state, $R$ is the universal gas constant, $T$ is the temperatur, $p_{i}$ is the partial pressure of the $i$th component, and $p^{0}$ is the standard pressure (i.e. the pressure connected to the standard state).
For ideal gases we can apply Raoult's law stating that

\begin{equation}
  p_{i} = x_{i} p_{\mathrm{tot}}
\end{equation}

where $p_{\mathrm{tot}}$ is the total pressure of the system.
Using this with equation (2) we get

\begin{equation}
  \mu_{i} = \mu_{i}^{0} + R T \ln\Bigl(\frac{x_{i} p_{\mathrm{tot}}}{p^{0}}\Bigr) = \mu_{i}^{0} + R T \ln x_{i} + R T \ln\Bigl(\frac{p_{\mathrm{tot}}}{p^{0}}\Bigr) \hspace{6em} (3)
\end{equation}

Furthermore, it is known that the partial pressures in a system must add up to the total pressure, i.e.

\begin{equation}
  p_{\mathrm{tot}} = \sum_{i} p_{i}
\end{equation}

Ok, now that the stage is set we simply have to apply equations (1) and (3) to the initial and the final state of the mixing process.
At the initial state the chambers are seperated (whereby chamber $i$ contains only one sort of gas labeled by $i$) and so these subsystems are completely independent from each other.
Thus, the Gibbs free energy of the total system of chambers is simply the sum of the Gibbs free energies of each chamber, whereby the gas in each of the chambers feels the ambient/total pressure $p_{\mathrm{tot}}$ in the system, since $x_{i} = 1$ (each chamber/independent subsystem holds just one kind of gas).
According to equation (1) the Gibbs free energy of the $i$th chamber is then given by

\begin{align}
  G_{i} &amp;= n_{i} \mu_{i} = n_{i} \biggl( \mu_{i}^{0} + R T \underbrace{\ln 1}_{= \, 0} + R T \ln\Bigl(\frac{p_{\mathrm{tot}}}{p^{0}}\Bigr) \biggr) \\
        &amp;= n_{i} \biggl( \mu_{i}^{0} + R T \ln\Bigl(\frac{p_{\mathrm{tot}}}{p^{0}}\Bigr) \biggr)
\end{align}

and the Gibbs free energy of the total system at the initial state is

\begin{align}
  G_{\mathrm{ini}} &amp;= \sum_{i} G_{i} \\
                 &amp;= \sum_{i} \underbrace{n_{i}}_{= \, x_{i} n_{\mathrm{tot}}} \biggl( \mu_{i}^{0} + R T \ln\Bigl(\frac{p_{\mathrm{tot}}}{p^{0}}\Bigr) \biggr) \\
                 &amp;= n_{\mathrm{tot}} \biggl( \sum_{i} x_{i} \mu_{i}^{0} + \sum_{i} x_{i} \underbrace{R T \ln\Bigl(\frac{p_{\mathrm{tot}}}{p^{0}}\Bigr)}_{= \, \mathrm{constant}} \biggr) \\
                 &amp;= n_{\mathrm{tot}} \biggl( \underbrace{\sum_{i} x_{i} \mu_{i}^{0}}_{= \, G_{\mathrm{ini}}^{0}} + R T \ln\Bigl(\frac{p_{\mathrm{tot}}}{p^{0}}\Bigr) \underbrace{\sum_{i} x_{i}}_{= \, 1} \biggr) \\
                 &amp;= n_{\mathrm{tot}} \biggl( G_{\mathrm{ini}}^{0} + R T \ln\Bigl(\frac{p_{\mathrm{tot}}}{p^{0}}\Bigr) \biggr)
\end{align}

At the final state the chambers are connected and the gases mix, so the chambers are not independent subsystems anymore and the Gibbs free energy cannot be broken down into independent parts like before.
So now, the complete system of connected chambers must be treated via equation (1)

\begin{align}
  G_{\mathrm{final}} &amp;= \sum_{i} \underbrace{n_{i}}_{= \, x_{i} n_{\mathrm{tot}}} \biggl( \mu_{i}^{0} + R T \ln x_{i} + R T \ln\Bigl(\frac{p_{\mathrm{tot}}}{p^{0}}\Bigr) \biggr) \\
                   &amp;= n_{\mathrm{tot}} \biggl( \sum_{i} x_{i} \mu_{i}^{0} + \sum_{i} R T x_{i} \ln x_{i} + \sum_{i} x_{i} \underbrace{R T \ln\Bigl(\frac{p_{\mathrm{tot}}}{p^{0}}\Bigr)}_{= \, \mathrm{constant}} \biggr) \\
                   &amp;= n_{\mathrm{tot}} \biggl( \underbrace{\sum_{i} x_{i} \mu_{i}^{0}}_{= \, G_{\mathrm{ini}}^{0}} + R T \sum_{i} x_{i} \ln x_{i} + R T \ln\Bigl(\frac{p_{\mathrm{tot}}}{p^{0}}\Bigr) \underbrace{\sum_{i} x_{i}}_{= \, 1} \biggr) \\
                   &amp;= n_{\mathrm{tot}} \biggl( G_{\mathrm{ini}}^{0} + R T \sum_{i} x_{i} \ln x_{i} + R T \ln\Bigl(\frac{p_{\mathrm{tot}}}{p^{0}}\Bigr) \biggr)
\end{align}

Now, that we have the Gibbs free energies of the initial and final state we simply need to subtract the former from the latter one in order to obtain the change in Gibbs free energy during the mixing process:

\begin{align}
  \Delta_{\mathrm{mix}}G &amp;= G_{\mathrm{final}} - G_{\mathrm{ini}} \\
                       &amp;= n_{\mathrm{tot}} \biggl( G_{\mathrm{ini}}^{0} + R T \sum_{i} x_{i} \ln x_{i} + R T \ln\Bigl(\frac{p_{\mathrm{tot}}}{p^{0}}\Bigr) \biggr)  - n_{\mathrm{tot}} \biggl( G_{\mathrm{ini}}^{0} + R T \ln\Bigl(\frac{p_{\mathrm{tot}}}{p^{0}}\Bigr) \biggr)  \\
                       &amp;= n_{\mathrm{tot}} R T \sum_{i} x_{i} \ln x_{i} \hspace{22em} (4)
\end{align}

Differentiating equation (4) with respect to the temperature we get the entropy of mixing since $\frac{\partial G}{\partial T} \big|_{p, \{ n_{i} \}} = - S$

\begin{equation}
  \Delta_{\mathrm{mix}} S = - \frac{\partial \Delta_{\mathrm{mix}}G}{\partial T} \bigg|_{p, \{ n_{i} \}} = - n_{\mathrm{tot}} R \sum_{i} x_{i} \ln x_{i}
\end{equation}

Finally, you get the desired result by using the famous equation $G = H - TS$

\begin{align}
  \Delta_{\mathrm{mix}}H &amp;= \Delta_{\mathrm{mix}}G + T \Delta_{\mathrm{mix}}S \\
                        &amp;= n_{\mathrm{tot}} R T \sum_{i} x_{i} \ln x_{i} - T n_{\mathrm{tot}} R \sum_{i} x_{i} \ln x_{i} \\
                        &amp;= 0
\end{align}