Need card #71 · Relevance Medium · Status New

Accurate Approximation of Factorial Size

Updated 9/21/2026, 13:21:28

Problem

The user wants a more precise estimation of factorial magnitude, especially in algorithm analysis and statistical mechanics. Current fast approximations like n·lg n are insufficient, and they need a tighter formula or tool.

Pain points

Questions to verify

Evidence

quote · @匿名
A quick and dirty approximation of the number of digits in n! is n lg n, which approximates n! from above, via the inequality
quote · @匿名
Stirling's approximation is also used a lot in statistical mechanics, because you often have to calculate logs of state space sizes, which means lots of combinatorics and thus lots of factorials.
quote · @匿名
lg(n!) grows roughly as (n lg n). Constants matter, of course, but to that's the rough estimate.
fact · @匿名
ln n! = n ln n - n + O(ln n).

Disclaimer: this card is distilled by AI from community discussions as “pain point evidence”. It is a starting point for need analysis and validation, not a “validated market need”. AI has analytical limits; please open the original discussion above to manually verify before key decisions.