The statistical thermodynamics of equilibrium