Maths WorkshopMaths problems with full solutions
Exercise 986Combinatorics › Inclusion-exclusionL1Added 3 Nov 2026

Permutations with at least one fixed point

#IE#fixed point#permutations

Statement

How many permutations of {1,…,n}\{1,\ldots,n\} have at least one fixed point?

Hint

Complement of derangements: n!−Dnn!-D_n.

Show solutionHide solution

Solution

Total. n!n! permutations.

Derangements. DnD_n (no fixed point).

At least one. n!−Dnn!-D_n.

Conclusion. n!−Dnn!-D_n permutations have at least one fixed point.

Values. n=4n=4: 24−9=1524-9=15.