qqp question1: How is the partition function related to the moment generating function? question2: Statistical Mechanics: Why is the relationship between the Helmholtz free energy and the partition function more fundamental than the relationship between another free energy and the partition function?