If you’re reading this blog, you probably know Stirling’s formula:

It’s not hard to estimate *n*! to within a factor of √2; I wrote up a note on this and even easier derivations. It’s quite a bit harder to show that the ratio of the two sides approaches a definite limit as *n*→∞ and that this limit is 1. You can find a variety of proofs in a number of places, one being Ahfors’ *Complex Analysis*. I wrote up a note about this too, expanding on some of the details.

Incidentally, the two sides are asymptotic not just for positive integers *n*. Replace *n*! with Γ(*z*+1) on the left, and both *n*‘s with *z*‘s on the right. Allow *z* to go to infinity* in the complex plane*, while staying at least a fixed finite distance to the right of the imaginary axis. Then the two sides remain asymptotic. Ahfors proves this stronger result, and uses it to derive the integral form for the Γ function.

Note that if you replace the *n*‘s with *z*‘s, you have *z ^{z}* on the right. So you’ve got to worry about branches of the complex logarithm (since

*z*is defined as

^{z}*e*

^{z log z}). The note deals with this (and other things).