generating function for $\sum_{n=0}^{\infty} \{\sum_{i=0}^n {n \choose i}i^i (i-1)^{n-i}\}$

167 Views Asked by At

Hi I am looking for a generating function for the sequence: $$ \{\sum_{i=0}^n {n \choose i}i^i (i-1)^{n-i}\}_{n=0}^{\infty} $$

Because I am looking for a closed form solution for the series:

$$F(x) = \sum_{n=0}^{\infty} \{\sum_{i=0}^n {n \choose i}i^i (i-1)^{n-i}\}x^n$$

or

$$F(x) = \sum_{n=0}^{\infty} \{\sum_{i=0}^n {n \choose i}i^i (i-1)^{n-i}\}\frac{x^n}{n!}$$

If I could find an exponential generating function $$G(x) = \{n^n\}_{n=0}^{\infty} = \sum_{n=0}^{\infty}n^n\frac{x^n}{n!}$$ then I could solve for $F(x)$:

$$F(x) = G(x)*(xD)G(x) = \sum_{n=0}^{\infty} \{\sum_{i=0}^n {n \choose i}i^i (i-1)^{n-i}\}x^n$$

Edit. The larger problem is that I am trying to prove the following equality: $$n!\sum_{i=0}^{n}\frac{(-1)^i}{i!} = \sum_{i=0}^n (-1)^i{n \choose i}i^{n-i} (i-1)^i$$

I can't figure out how to transform from one to the other but numerically they seem to be the same series.

1

There are 1 best solutions below

3
On

Here's a computation using the exponential generating function.

Remove the terms $i=0$, they sum up to $\mathrm e^{-x}$ and the terms $i=1$ which sum up to $x$. Perform first the sum over $n$ using $$ \sum_{n=0}^\infty\binom nk \frac{x^n}{n!}=\frac{\mathrm e^xx^k}{k!}$$ you then get $$F(x)-x-\mathrm e^{-x}=\sum_{n=0}^\infty\sum_{k=2}^\infty\binom nk\left(\frac k{k-1}\right)^k(k-1)^n\frac {x^n}{n!}=\sum_{k=2}^\infty\left(\frac k{k-1}\right)^k\frac{\mathrm e^{(k-1)x}[(k-1)x]^k}{k!}$$ A simplification gives $$F(x)=x+\mathrm e^{-x}+\mathrm e^{-x}\sum_{k=2}^\infty\frac{k^k}{k!}\left(x\mathrm e^x\right)^k.$$ You can relate this to the Lambert W function which is given by the series $$W(x)=-\sum_{k=1}^\infty \frac{k^{k-1}}{k!}(-x)^k.$$ So you can write $$F(x)=x\,W'(-x\mathrm e^x)+\mathrm e^{-x}.$$