Maths WorkshopMaths problems with full solutions
Exercise 1723Combinatorics › Inclusion-exclusionOlympiadAdded 3 Nov 2026

Combining multiple IE applications

#IE#combining#multi-step

Statement

Count permutations of {1,…,n}\{1,\ldots,n\} where both 11 and 22 are fixed.

Hint

Fix both, count permutations of the remaining n−2n-2.

Show solutionHide solution

Solution

Fix 1 and 2. Then count permutations of {3,…,n}\{3,\ldots,n\}: (n−2)!(n-2)!.

Conclusion. (n−2)!(n-2)! permutations fix both 11 and 22.

IE interpretation. ∣A1∩A2∣=(n−2)!|A_1\cap A_2|=(n-2)!.