asymptotic bounds for factorial


Stirling’s formulaMathworldPlanetmathPlanetmath furnishes the following asymptotic bound for the factorial:

n!=2⁢π⁢nn+1/2⁢e-n⁢(1+Θ⁢(1n)),n→∞.

The following less precise bounds are useful for counting purposes in computer science:

n! =o⁢(nn) (1)
n! =ω⁢(nλ⁢n)  for every 0≤λ<1 (2)
log⁡n! =Θ⁢(n⁢log⁡n) (3)

(o, ω, and Θ are Landau notation.)

Proof of the upper bound of equation (1).

We must show that for every ε>0, we have

n!≤ε⁢nn for large enough n.

To see this, write

n! =2⁢π⁢nen⁢(1+O⁢(1n))⏟⁢nn,

and observe that the middle quantity tends to 0 as n→∞, so it can be made smaller than any fixed ε by taking n large. ∎

Proof of the lower bound of equation (2).

We are to show that for every C>0, we have

n!≥C⁢nλ⁢n for large enough n.

We write:

n! =2⁢π⁢n⁢(1+O⁢(1n))⁢(ne1/(1-λ))(1-λ)⁢n⏟⁢nλ⁢n,

and the middle expression can be made to be ≥C by taking n to be large. ∎

Proof of bound for log⁡n!, equation (3).

Showing log⁡n!=O⁢(n⁢log⁡n) is simple:

n! =n⁢(n-1)⁢⋯⁢(2)⁢(1)≤nn
log⁡n! ≤n⁢log⁡n

for all n≥1.

To show log⁡n!=Ω⁢(n⁢log⁡n), we can take equation (2) with the constants C=1 and λ=12. Then

log⁡n!≥12⁢n⁢log⁡n

for large enough n. In fact, it may be checked that n≥1 suffices. ∎

References

  • 1 Thomas H. Cormen, Charles E. Leiserson, Ronald L. Rivest, Clifford Stein. Introduction to AlgorithmsMathworldPlanetmath, second edition. MIT Press, 2001.
  • 2 Michael Spivak. Calculus, third edition. Publish or Perish, 1994.
Title asymptotic bounds for factorial
Canonical name AsymptoticBoundsForFactorial
Date of creation 2013-03-22 15:54:25
Last modified on 2013-03-22 15:54:25
Owner stevecheng (10074)
Last modified by stevecheng (10074)
Numerical id 7
Author stevecheng (10074)
Entry type Result
Classification msc 41A60
Classification msc 68Q25
Related topic StirlingsApproximation
Related topic GrowthOfExponentialFunction