I am trying to calculate the partition function of a system that has 2 bosons (spin 0) in thermal equilibrium with a reservoir. The particles are independent and each one admits as possible orbitals the eigenstates of the harmonic oscillator. I tried to use the definition of partition function used in the salinas book that writes the expression as following:
$$\Xi = \Xi(T,V,\mu) = \prod_j\left\{\sum_n\exp[-\beta(\epsilon_j-\mu)n]\right\}$$
However, I don't understand very well how to apply the expression in this exercise. I tried to solve the problem, by separating the cases where both particles are in the same state and the cases where they are in different states. My teacher came up with this expression, but that expression doesn't exclude the cases where particles are in different states, because in the second summation he states that $n_2=n_1$. Why is it that $n_2=n_1$?
$$\mathcal{Z} = \sum_{n_1=0}^{+\infty}\sum_{n_2=n_1}^{+\infty} e^{-\beta(n_1+n_2+1)\hbar\omega}$$