Derangement definition
A derangement is a permutation in which no object stays in its original position.
Derangement in a picture
How it works
Positions that stay fixed are called fixed points. To count derangements, start with all n! permutations, then use inclusion–exclusion on the conditions that individual positions are fixed. For n positions this gives n! multiplied by 1 − 1/1! + 1/2! − ⋯ + (−1)ⁿ/n!.
Worked examples
Find the derangement of AB.
BA.
Can one object be deranged by itself?
No. Its only position is the original one.
How many derangements are there of four objects?
24 − 24 + 12 − 4 + 1 = 9.
Common mistake
Check every position. Changing only part of the order may leave a fixed point.
Quick check
How many positions stay fixed in a derangement?
Show answer
Zero.
Is BAC a derangement of ABC?
Show answer
No, C stays in the third position.
How many derangements are there of three distinct objects?
Show answer
Two.
Sources
Flashcard
Derangement
Reveal the definition
A derangement is a permutation in which no object stays in its original position.
Effortless Math. “Derangement.” Math Dictionary.



