Consider a system which has two orbital (single particle) states both of the same energy. When both orbitals are unoccupied, the energy of the system is zero; when one orbital or the other is occupied by one particle, the energy is $\varepsilon$. We suppose that the energy of the system is much higher, say infinitely high, when both orbitals are occupied. Show that the ensemble average number of particles in the level is
$$
\langle N\rangle=\frac{2}{2+e^{(\epsilon-\mu) \tau}} .
$$