Theorem (Stirling's formula for n!)

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

Proof (non-examinable)