TOPICS
Search

Left Factorial


The term "left factorial" is sometimes used to refer to the subfactorial !n, whose first few values for n=1, 2, ... are 0, 1, 2, 9, 44, 265, 1854, ... (OEIS A000166).

The same term and notation are also applied, for a nonnegative integer n, to the factorial sum

L!n=sum_(k=0)^(n-1)k!
(1)
=(-1)^n(n!)!(-n-1)-!(-1)
(2)
=((-1)^nGamma(n+1)Gamma(-n,-1)-Gamma(0,-1))/e
(3)
=(ipi+Ei(1)+Gamma(n+1)E_(n+1)(-1))/e,
(4)

where Gamma(z) is the gamma function, Gamma(a,z) is the upper incomplete gamma function on its principal branch, Ei(x) is the exponential integral, and E_n(x) is the En-function.

For n=0, 1, ..., the first few values are given by 0, 1, 2, 4, 10, 34, 154, 874, ... (OEIS A003422). The left factorial is always even for n>1.

The related factorial sum L!(n+1)-1=sum_(k=1)^(n)k! has values 1, 3, 9, 33, 153, 873, 5913, ... for n=1, 2, ... (OEIS A007489).

(L!n)/2 is reported to be prime or a probable prime for n=3, 4, 5, 8, 9, 10, 11, 30, 76, 163, 271, 273, 354, 721, 1796, 3733, 4769, 9316, 12221, 41532, 78981, 88997, 91743, ... (OEIS A100614; Mijajlović 2025). The term with n=12221 was found by E. W. Weisstein (Oct. 19, 2006), and S. Batalov reported n=41532 in Jul. 2017. Mijajlović (2025) reported the three indices 78981, 88997, and 91743 and a search limit of 197,651. These values have 352,508, 401,827, and 415,436 decimal digits, respectively. These three values passed strong pseudoprime tests; certified primality proofs were not reported.


See also

Factorial Sums, Smarandache-Kurepa Function, Subfactorial

Explore with Wolfram|Alpha

References

Guy, R. K. Unsolved Problems in Number Theory, 3rd ed. New York: Springer-Verlag, 2004.Kurepa, D. "On the Left Factorial Function !n." Math. Balkanica 1, 147-153, 1971.Kurepa, D. "Left Factorial Function in Complex Domain." Math. Balkanica 3, 297-307, 1973.Mijajlović, Ž. "Kurepa Prime Numbers." 2025. https://www.mi.sanu.ac.rs/novi_sajt/news/news_pages/Kurepa_prime_numbers.pdf.Sloane, N. J. A. Sequences A000166, A003422/M1237, A007489/M2818, and A100614 in "The On-Line Encyclopedia of Integer Sequences."

Referenced on Wolfram|Alpha

Left Factorial

Cite this as:

Weisstein, Eric W. "Left Factorial." From MathWorld--A Wolfram Resource. https://mathworld.wolfram.com/LeftFactorial.html

Subject classifications