TITLE: Series $\frac{k^2}{k!}$ with $ k=1$ to $\infty$
QUESTION [10 upvotes]: A practice Math Subject GRE asked me to compute
$\sum_{k=1}^\infty \frac{k^2}{k!}$. The sum is equal to $2e$, but I wasn't able to figure this out using Maclarin series or discrete PDFs. What's the most elementary way to solve this? Thank you.

REPLY [3 votes]: I'll try to calculate the more general series:
$$S_n=\sum_{k=0}^{\infty}\frac{k^n}{k!}$$ where $n$ is an integer number and $n\ge 0$.
\begin{align}
\begin{aligned}
S_n &=\sum_{k=0}^{\infty}\frac{k^n}{k!} \\
&=\sum_{k=1}^{\infty}\frac{k^n}{k!} \\
&= \sum_{k=1}^{\infty}\frac{((k-1)+1)^n}{k!}\\
&= \sum_{k=0}^{\infty}\frac{(k+1)^n}{(k+1)!} &k\to k+1\\
&= \sum_{k=0}^{\infty} \frac{(k+1)^{n-1}}{k!} &\text{simplifying}\\
 &=\sum_{k=0}^{\infty}\frac{1}{k!}\left( \sum_{j=0}^{n-1}\binom{n-1}{j}k^j\right) &\color{green}{\text{binomial expansion}}\\
&= \sum_{j=0}^{n-1}\binom{n-1}{j}\sum_{k=0}^{\infty}\frac{k^j}{k!} &\color{red}{\text{rearranging}} \\ 
&=  \sum_{j=0}^{n-1}\binom{n-1}{j} S_j
\end{aligned}
\end{align}
Now, if you are already familiar with Bell numbers, this will certainly ring a bell; otherwise it's a useful recursion relation to calculate the sum in the general case.
For $n=0$, by definition we know it's Euler's constant $S_0=e$. For $n=1$, we have:
$$S_1=\binom{0}{0}S_0=1 \times e = e$$
For $n=2$, which happens to be what has been asked, we have:
$$S_2=\binom 1 0 S_0 + \binom 1 1 S_1 = 2e$$
And so on. In general, since $S_n$'s have the same linear recursion relations as Bell numbers $B_n$, the solution would be $S_n=e B_n$. 
A beautiful way of constructing these Bell numbers would be using the triangles which I've found in this post:
\begin{array}{ccccccccccccc}
1 & & 1 & & 2 & & \color{red}5 & & 15 & & 52 & & \color{blue}{203} \\
& 2 & & 3 & & 7 & & 20 & & 67 & & 255 \\
& & \color{red}{5} & & 10 & & 27 & & 87 & & 322 \\
& & & 15 & & 37 & & 114 & & 409 \\
& & & & 52 & & 151 & & 523 \\
& & & & & \color{blue}{203} & & 674 \\
& & & & & & 877
\end{array}