In part a) to this question I calculated the partition function which is Z = 1 + 3/e + 5/e^2
I can't find an equation relating U to Z.
The Attempt at a Solution
If someone has an explanation or a link to an equation that would be great. Thanks.