OFFSET
0,3
COMMENTS
LINKS
L. Feng and W. Wang, Two families of approximations for the gamma function, Numerical Algorithms, Springer 2012.
Peter Luschny, Approximations to the factorial function.
W. Wang, Unified approaches to the approximations of the gamma function, J. Number Theory (2016).
FORMULA
Let N = n + 1/2 and p = N^2*C_0/(N+C_1/(N+C_2/(N+C_3/(N+C_4/N)...))), then
n! ~ sqrt(2Pi) (p/e)^N.
EXAMPLE
C_0 = 1, C_1 = 1/24, C_2 = 3/80, C_3 = 18029/45360, C_4 = 6272051/14869008.
CROSSREFS
KEYWORD
nonn,frac
AUTHOR
Peter Luschny, Mar 08 2011
STATUS
approved