Do we have any formula for the sum of factorials above?
Asked
Active
Viewed 214 times
1
-
3There's no nice formula, but there is the formula given here using the $Ei$ and $E_n$ functions – Ben Grossmann Aug 23 '16 at 14:34
-
2You can find more info on this sequence here → https://oeis.org/A003422 but I guess you will be disappointed (I will post one to grab some points, though, because I'm that shallow). – PseudoNeo Aug 23 '16 at 14:35
-
Nice, quick find, @Omnomnomnom ! – amWhy Aug 23 '16 at 14:44
2 Answers
2
According to its OEIS page, we have $$\sum_{k=0}^{n-1} k! = \int_0^{+\infty} \frac{x^n - 1}{x - 1}\, e^{-x}\, dx.$$
(I know it's probably not the kind of formulae you're after, but there is not a fundamentally better answer.)
PseudoNeo
- 10,358
0
There is not a closed 'closed' form, but:
$$\sum_{k=a}^nk!=-(-1)^a\Gamma(a+1)\cdot!(-a-1)-(-1)^n\Gamma(n+2)\cdot!(-n-2)$$
Where $\Gamma(x)$ is the gamma function and $!n$ is the subfactorial function.
Jan Eerland
- 29,457