First, I have read this question:What is meant by the term "single particle state"
There is an analysis going on in my book (Mandle F. Statistical Physics) that has brought me in a confusing point.
In chapter 7 of the book, there is an analysis of the classical ideal gas. It is proved that $$Z_{\text{total}}={1 \over N!}(Z_1)^N $$ and that $$Z_1 =Z_{\text{tr}} \, Z_{\text{int}}$$ where $Z_{\text{total}}$ is the total partition function of the system and $Z_{\text{tr}}$ and $Z_{\text{int}}$ are the transactional and internal partition functions of a sub system in canonical ensemble respectively. Also, we know from chapter 2 that the partition function is in general of the form: $$Z_1 ^{general} =\sum_r g(\epsilon_r) \exp\left[-\epsilon_r \over kT \right] \,. \qquad (1)$$
When defining the classical ideal gas we have that there exist energies $$\epsilon_1 \leq \epsilon_2 \leq \epsilon_3 \ldots \leq \epsilon_r$$ corresponding to a discrete set of quantum states noted with $1,2,3 \ldots r$ where only a unique molecule can exist. Then we determine the state of the whole gas by defining a catalog of the molecules of each particular state defining $n_r$ as the occupation number of the state $r$.
Question :
In chapter 9 one finds the expression of the partition function of an ideal quantum gas: $$Z_{\text{tot}} = \sum_{n_1 , n_2 \ldots} \exp\left(-\sum_r{n_r \epsilon_r} \over kT\right)~~~~~~~~(2) $$ and it is: $$E(n_1 ,n_2 ,...)=\sum_r n_r \epsilon_r$$ and $$N=\sum_r n_r \, .$$
So, why this difference between (1) and (2) at the expontential? Why not use the sum of the occupation numbers in (1) too? Although, if I take the relations for granted I can prove some things, I don't understand the reason the partition functions are different in this analysis. I mean, to be clear, why is there a sum at the exponent of (2) and not (1) or vice-versa? If it is something about indistinguishable particles in QM, or that the $n_r$ number in the second relation isn't considered to be constant but in one for some reason it is, can someone elaborate?
Also, it seems to me I don't quite understand the meaning of unique molecule,maybe it's something that refers to the single-particle state which I understand is what one study in the quantum gas in difference with the classical where one study a particle to determine the statistical behaviour of the system.
Thank you.