Derangements
A derangement, also known as a permutation without fixed points, is a permutation of a set where no element appears in its original position. Derangements have applications in various fields, including combinatorics, probability, and computer science. The number of derangements of a set of n elements is denoted by D(n).
The problem of finding the number of derangements was first posed by Pierre Raymond de Montmort in
D(n) = (n - 1) * [D(n - 1) + D(n - 2)]
with the base cases D(0) = 1 and D(1) = 0.
Derangements have several interesting properties. For example, the number of derangements of a set of n elements
Derangements also appear in the context of the hat-check problem, where n guests each leave their hat
In conclusion, derangements are a fascinating topic in combinatorics with various applications and interesting properties. The