A useful approximation for is provided by the Stirling formula:
For large values of , a sufficiently accurate formula is also obtained by neglecting the term
in
, which leads to the familiar expression used in statistical physics:
, which can be approximated by the integral of
The Stirling formula
is quite accurate also for relatively small values of N. The error in Eq.
is of order , which becomes completely negligible when compared to
for
.