A model thermodynamic system consists of N particles whose allowed energies are integer multiples of e: 0, e, 2e, 3e, 4e, ..
(a) Suppose the system is in contact with a resevoir with temperature T. Calculate the canonical partition function for the system.
(b) Calculate the average energy and heat capacity for the system.