problems-boltzmann-factor-and-the-partition-function

need help for the attached problems about Boltzmann Factor and the Partition Function