What is the factorial of -23?
1 Answer
Undefined, unless you mean Roman factorial...
#color(black)(⌊-23⌉!) = 1/(22!) = 1/1124000727777607680000#
Explanation:
Strictly speaking, factorial is only defined for non-negative integers.
The normal, recursive definition is:
#{ (0! = 1), (n! = nxx(n-1)! color(white)(xx) " for " n >= 1) :}#
Gamma function
The normal method used to extend the definition of factorials to other numbers is using the Gamma function:
#Gamma(t) = int_0^oo x^(t-1) e^x dx#
Then
This integral converges for positive Real values of
The Gamma function can be extended to other Real and Complex numbers by analytic continuation.
The only values of
So this method yields no value for
Roman factorial
Another extension of the definition of factorial, which does include negative numbers is the Roman factorial:
#color(black)(⌊n⌉!) = { (n!, " for " n >= 0), ((-1)^(-n-1)/((-1-n)!), " for " n < 0) :}#
The Roman factorial is used in the definition of the harmonic logarithm.
We find:
#color(black)(⌊-23⌉!) = (-1)^(-1+23)/((-1+23)!) = 1/(22!) = 1/1124000727777607680000#