Derangements

\[!n = n! \sum_{i=0}^n \frac{(-1)^i}{i!}\]