For finite sets , the inclusion-exclusion principle states
To prove it, fix an element belonging to exactly of the sets. If , it contributes zero to both sides. If , its total weight on the right is
by the binomial theorem. Summing these pointwise contributions proves the formula.
Let the universe be the permutations of , and let be the set of permutations fixing . A derangement belongs to none of the . If specified points must be fixed, the remaining points can be permuted in ways, so every such -fold intersection has that size. There are choices of the specified fixed points. Applying inclusion-exclusion to the complement of their union gives the derangement counting formula
The term is the whole universe. Since the exponential power series converges absolutely at ,
The alternating-series remainder additionally gives . Thus the fraction is the probability of no fixed points in a uniformly chosen permutation and approaches .