Stirling's formula

We write $a_n\sim b_n$ to mean that $a_n/b_n\to 1$.

Theorem (Stirling's formula for log n!) open_in_new

In the limit $n\to\infty$, $$ \log n! \sim n\log n. $$

Proof

Theorem (Stirling's formula for n!) open_in_new

In the limit $n\to\infty$, $$ n! \sim \sqrt{2\pi} n^{n+1/2} e^{-n}.$$

Proof (non-examinable)