1

Do we have any formula for the sum of factorials above?

ankit
  • 2,591

2 Answers2

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