distribution

#1
Distribute six energy units to four different states, 0ε, 1ε, 2ε, 3ε, with the constraint that the total energy of the system is equal to 4ε which must determine the weight and n(ε) for each energy level.