I need help with a question, I need to show that the derangement numbers $D_n$ satisfy $$\sum_{n=0}^{+\infty} D_n \cdot \frac{x^n}{n!} = \frac{e^{-x}}{1-x}$$
I also need to prove that the expected number of fixed points of a permutation is $1$. I am so lost any help is appreciated.
The integral representation of the derangements $D_n$ is $$D_n=\int_{0}^{\infty} (t-1)^n e^{-t} dt.$$ Then $$S=\sum_{n=0}^{\infty} \int_{0}^{\infty} \frac{x^n}{n!}(t-1)^n e^{-t} dt=\int_{0}^{\infty} e^{x(t-1)} e^{-t} dt= e^{-x}\int_{0}^{\infty} e^{-(1-x)t} dt= \frac{e^{-x}}{1-x}.$$