From equations

for the canonical ensemble partition function for an ideal gas, and

for the Helmholtz energy function, one has


using Stirling's approximation

one arrives at
- Failed to parse (SVG (MathML can be enabled via browser plugin): Invalid response ("Math extension cannot connect to Restbase.") from server "https://wikimedia.org/api/rest_v1/":): {\displaystyle A=Nk_BT\left(\ln \Lambda^3 \rho -1 \right)}