Grinstead-Snell-Probability · Problem 3.1.9

Combinatorics

Mathematics · permutations

Problem

A more refined inequality for approximating n!n! is given by 2πn(ne)ne1/(12n+1)<n!<2πn(ne)ne1/(12n).\sqrt{2\pi n}\left(\frac{n}{e}\right)^n e^{1/(12n+1)} < n! < \sqrt{2\pi n}\left(\frac{n}{e}\right)^n e^{1/(12n)}. Write a computer program to illustrate this inequality for n=1n = 1 to 9.

Related theory

Browse the problem library