Helmholtz Free Energy Partition Function Statistical Mechanics