dérangement
Dérangement is a concept in combinatorics describing a permutation of a finite set in which no element remains in its original position. If the set has n elements, a dérangement is a permutation π of {1, …, n} such that π(i) ≠ i for all i.
The number of dérangements of n elements is denoted !n (also d_n). It can be computed by
A common asymptotic description is !n ~ n!/e, meaning the proportion of dérangements among all permutations tends
The classic context is known in French as the problème des rencontres, the problem of encounters, which
Dérangements have applications in combinatorics, probability, and computer science, illustrating the use of inclusion-exclusion and derangement-like