I saw on wikipedia that a formula for derangements is
$\text{Round}\left[\frac{n!}{e}\right]$
However, how did they arrive at this elegant formula?
Does it have to do with $ !n=n! \sum _{k=0}^n \frac{(-1)^k}{k!}$
I saw on wikipedia that a formula for derangements is
$\text{Round}\left[\frac{n!}{e}\right]$
However, how did they arrive at this elegant formula?
Does it have to do with $ !n=n! \sum _{k=0}^n \frac{(-1)^k}{k!}$
Therefor, we have that identity.
– hxthanh Apr 20 '14 at 06:38