Is there a closed form for this series:
$$\sum_{n=1}^\infty \left(e-\left(1+\frac{1}{n}\right)^n \right)^2 \approx 1.273278374727530507449$$
(Mathematica computation by Patrick Stevens).
This is basically a sum of squared errors for all $n$ for the classic limit used to define $e$.
Are there some other similar series of interest, representing a sum of squared errors? (I'm aware we can buid an infinite set of such series by using various limits for various constants, but I'm asking only about well known series).
I don't really have motivation except for the fact that this series seems fundamental enough to have been studied before.
Besides, there exists a special value for an infinite product:
$$\prod_{k=2}^{\infty} e \left(1-\frac{1}{k^2} \right)^{k^2}=\frac{\pi}{e^{3/2}}$$
(The link had been here, but it's broken now).
Update
Some attempts to rearrange the series:
$$e=\sum_{k=0}^\infty \frac{1}{k!}$$
$$\left(1+\frac{1}{n}\right)^n=\sum_{k=0}^n \left( \begin{array}( n \\ k \end{array} \right) \frac{1}{n^k}$$
Thus, we can write the general term as:
$$\left(e-\left(1+\frac{1}{n}\right)^n \right)^2=\left( \sum_{k=0}^n \frac{1}{k!} \left(1-\frac{n!}{(n-k)!} \frac{1}{n^k} \right)+ \sum_{k=n-1}^\infty \frac{1}{k!} \right)^2$$
NSum[(E - (1 + 1/n)^n)^2, {n, 1, Infinity}, WorkingPrecision -> 30]
– Patrick Stevens Sep 14 '17 at 07:52