I have the following problem: I have two systems $A$ and $B$, each one with 5 distinguishable particles, $N_A=N_B=5$. The systems have infinite energy levels with energy $E_m = m \cdot \epsilon$ with $m=0,1,2,3...$ and I want to know the number of micro-states that are compatible with the macro-states $E_A=10 \epsilon $ (for system A) and $E_b=5 \epsilon$ (for system B) for each isolated system
Since all energies are positive (or zero), I start to do it by hand doing all the possible combinations for $A$ using only the first eleven levels ($m=0,...,10$) because it's impossible to find a macro-state $E_A=10 \epsilon $ in this system with some particle in $m>10$. For example I start for $A$ system with $N_0=4,N_1=0,N_2=0,...,N_9=0,N_{10}=1$. Maybe as you guess, this make me loss a lot of time, but finally I found the number of micro-states $\Omega_A (E_A) =841$ (I'm almost sure that this number is wrong). Also I repeat this for $B$. I wonder if there is an easy way to calculate the number of micro-states with this energy for each isolated system
Also I want to put both system in thermal contact and equilibrate, then calculate the probability that the system $A$ have an energy $E$, $P_A(E)$. I'm not sure how can I do that in a general way. And how can I do it if particles are indistinguishable?