# 1 − 1 + 2 − 6 + 24 − 120 + ⋯

In mathematics, the divergent series

$\sum_{k=0}^\infty (-1)^k k!$

was first considered by Euler, who applied resummation methods to assign a finite value to the series.[1] The series is a sum of factorials that alternatingly are added or subtracted. A way to assign a value to the divergent series is by using Borel summation, where we formally write

$\sum_{k=0}^\infty (-1)^k k! = \sum_{k=0}^\infty (-1)^k \int_0^\infty x^k \exp(-x) \, dx$

If we interchange summation and integration (ignoring the fact that neither side converges), we obtain:

$\sum_{k=0}^\infty (-1)^k k! = \int_0^\infty \left[\sum_{k=0}^\infty (-x)^k \right]\exp(-x) \, dx$

The summation in the square brackets converges and equals 1/(1 + x) if x < 1. If we analytically continue this 1/(1 + x) for all real x, we obtain a convergent integral for the summation:

$\sum_{k=0}^\infty (-1)^{k} k! = \int_0^\infty \frac{\exp(-x)}{1+x} \, dx = e E_1 (1) \approx 0.596347362323194074341078499369\ldots$

where $E_1 (z)$ is the exponential integral. This is by definition the Borel sum of the series.

## Results

The results for the first 10 values of k are shown below:

k Increment
calculation
Increment Result
0 1 · 0! = 1 · 1 1 1
1 −1 · 1 −1 0
2 1 · 2 · 1 2 2
3 −1 · 3 · 2 · 1 −6 −4
4 1 · 4 · 3 · 2 · 1 24 20
5 −1 · 5 · 4 · 3 · 2 · 1 −120 −100
6 1 · 6 · 5 · 4 · 3 · 2 · 1 720 620
7 −1 · 7 · 6 · 5 · 4 · 3 · 2 · 1 −5040 −4420
8 1 · 8 · 7 · 6 · 5 · 4 · 3 · 2 · 1 40320 35900
9 −1 · 9 · 8 · 7 · 6 · 5 · 4 · 3 · 2 · 1 −362880 −326980