From n! up to n^n there are only n terms, but this is not the most remarkable
Consider the formula:
n! = \sqrt{2\pi n}(\frac{n}{e})^n(1+\frac{1}{12 n}+\frac{1}{288n^2}-\frac{139} {51840 n^3}+…)
-\delta(n)=n!-n^n
(**)
twenty! \approx 2.4329028230918*10^{18}
In this case, the exact value is: 20!=2432902008176640000
A formula of the form (**) shows the relationship between the Stirling series and the series of n terms from the right side of the formula
n!=(\frac{n}{e})^n \sqrt{2 \pi n}\sum_{k=0}^{\infty}\frac{a_k}{n^k} where
d_3(n,m)
– the number of permutations of n elements with m cycles, each of which has a length of at least 3.