Is there any simpler form for the following expression:
$$ \frac{\sum_{k=2}^{n-2}{k\left(\sum_{i=0}^{n-2}\frac{(-1)^i}{i!}\right)}}{n\sum_{i=0}^{n}\frac{(-1)^i}{i!}}$$
Because I have to compute this expression for $n=100$, and without using any computing packages, doing this would be really tedious and painful.
If anybody knows how to simplify the expression (or simple methods to compute it by hand), I would highly appreciate it.
$$A_n=\frac{\sum_{k=2}^{n-2}{k\left(\sum_{i=0}^{n-2}\frac{(-1)^i}{i!}\right)}}{n\sum_{i=0}^{n}\frac{(-1)^i}{i!}}=\frac{\sum_{i=0}^{n-2}\frac{(-1)^i}{i!} }{n\sum_{i=0}^{n}\frac{(-1)^i}{i!}} \sum_{k=2}^{n-2}k=\frac{1}{2} (n-3) n\frac{\sum_{i=0}^{n-2}\frac{(-1)^i}{i!} }{n\sum_{i=0}^{n}\frac{(-1)^i}{i!}} $$ Now $$\sum_{i=0}^{p}\frac{(-1)^i}{i!}=\frac{\Gamma (p+1,-1)}{e\,\Gamma (p+1)}$$ where appear the complete and incomplete gamma functions. Replacing the values of $p$, we then get $$A_n=\frac{(n-3) \Gamma (n+1) \Gamma (n-1,-1)}{2 \Gamma (n-1) \Gamma (n+1,-1)}=\frac{1}{2} (n-3) (n-1) n\,\frac{\Gamma (n-1,-1)}{\Gamma (n+1,-1)}$$ which can also be written as $$A_n=\frac{1}{2} (n-3) (n-1) n\,\frac{!(n-2)}{!n}$$ where appears the subfactorial function which gives the number of permutations of $n$ objects that leave no object fixed.
If you look here, you will notice that $$\lim_{n\to\infty} {!n \over n!} = {1 \over e} $$ . So, for large values of $n$ , $$A_n\approx \frac{1}{2} (n-3) (n-1) n\,\frac{(n-2)!}{e}\,\frac e {n!}= \frac{1}{2} (n-3)$$
For example, for $n=10$, the exact value is $\frac{519155}{148329}\approx 3.5000236$ for an approximation of $3.5$; for $n=100$, the values differ by $1.4\times 10^{-154}$; for $n=1000$, the values differ by $3.4\times 10^{-2562}$. I suppose that you can stay with this good (and may be surprising) approximation.
Edit
If you look here, you will notice the approximation $$!z=\sqrt{2 \pi } \,e^{-(z+1)}\, z^{z+\frac{1}{2}} \left(1+\frac{1}{12 z}+\frac{1}{288 z^2}+O\left(\frac{1}{z^3}\right)+\cdots\right) $$ Using it for the estimation of $\frac{!(n-2)}{!n}$ we get $$\frac{!(n-2)}{!n}=\frac{1}{n^2}+\frac{1}{n^3}+\frac{1}{n^4}+\frac{1}{n^5}+O\left(\frac{1}{n^6}\right)$$ which, continuing the expansions, finally makes $$A_n=\frac {n-3}2+\frac{139}{17280 \,n^3}+\frac{1673}{207360\, n^4}+O\left(\frac{1}{n^5}\right)$$