Derangement
A derangement is a permutation of a finite set in which no element appears in its original position. If a set has n elements, a derangement is a permutation π of {1, ..., n} such that π(i) ≠ i for every i. Derangements are often denoted by !n or Dn.
For example, when n = 3, the derangements are 231 and 312. For n = 4, there are 9
Counting and formulas: The number of derangements of n elements, !n, can be computed as !n = n!
Asymptotics and probability: As n grows, the probability that a randomly chosen permutation of n elements is
History and related concepts: Derangements are central to the hat check problem, attributed to Montmort in