Exercise 1235Combinatorics › Inclusion-exclusionOlympiadAdded 4 Nov 2026
Derangements and the number 1/e
#inclusion-exclusion#permutations#derangements
Statement
A derangement of is a permutation with no fixed point. Let be their number.
- Prove that .
- Compute , and show that for , is the integer closest to .
Hint
Let be the set of permutations fixing . Apply inclusion–exclusion to .
Show solutionHide solution
Solution
1. Inclusion–exclusion. . For a set of indices, the permutations fixing every element of number . There are such sets. Therefore
2. Values. .
Closest integer. Since ,
The series is alternating with decreasing terms, so its absolute value is at most the first term: for . So is the integer closest to .
Consequence. The probability that a random permutation has no fixed point tends to .
Lesson. Inclusion–exclusion: when the intersections of the bad events all have the same size depending only on the number of events, the sum collapses to a clean formula.