WIPIVERSE All articles

Derangement

Derangement is an established concept with two principal senses in English: a mathematical one in combinatorics and a general/medical one denoting disorder or disturbance of normal order or function.

Mathematics (combinatorics)

In combinatorial mathematics, a derangement is a permutation of the elements of a set in which no element appears in its original position — equivalently, a permutation with no fixed points. The number of derangements of a set of size n is called the nth derangement number, the subfactorial of n, or the nth de Montmort number, and is commonly written Dₙ, dₙ, !n, or n¡.

Origin. The problem of counting derangements was first considered by Pierre Raymond de Montmort in his Essay d'analyse sur les jeux de hazard (1708); he solved it in 1713, at approximately the same time as Nicholas Bernoulli. The name "subfactorial" is attributed to William Allen Whitworth.

Examples. For a 4-element set there are 4! = 24 permutations, of which only 9 are derangements. A standard illustration is the "hat-check problem": the number of ways n hats can be returned to n owners so that no hat reaches its owner. Another version asks how n letters, each addressed to a different person, can be placed in n pre-addressed envelopes so that no letter goes in its correct envelope.

Counting. For n ≥ 2, the numbers satisfy the recurrence

Dₙ = (n − 1)(Dₙ₋₁ + Dₙ₋₂), with D₀ = 1 and D₁ = 0.

Explicit formulas include

Dₙ = n! Σ(i = 0 to n) (−1)^i / i!,

which follows from the inclusion–exclusion principle, and the approximation

Dₙ = nearest integer to n! / e,

where e ≈ 2.718281828 is Euler's number. The first values (sequence A000166 in the OEIS) are D₀ = 1, D₁ = 0, D₂ = 1, D₃ = 2, D₄ = 9, D₅ = 44, D₆ = 265, D₇ = 1854, D₈ = 14,833, D₉ = 133,496.

Asymptotics. Since Dₙ/n! tends to e⁻¹ ≈ 0.367879 as n grows, the probability that a randomly chosen permutation of a large set is a derangement approaches roughly 36.8 percent, converging very rapidly. Derangement numbers also admit asymptotic expansions in terms of Bell numbers and integral representations involving the incomplete gamma function or Laguerre polynomials.

Related problems and generalizations. The problème des rencontres asks how many permutations of an n-set have exactly k fixed points. Derangements are an instance of constrained permutations; the ménage problem, for example, counts seatings of couples around a table so that no one sits beside his or her partner. Generalizations also cover anagrams of words with no letter in its original position. In computational complexity, deciding whether a given permutation group (specified by generators) contains any derangement is NP-complete (Lubiw, 1981; Babai, 1995).

General and medical usage

In ordinary English and in medical or psychological contexts, "derangement" denotes a disturbance of normal bodily functioning or operation, and is sometimes used loosely for mental illness or mental disturbance. The word derives from French déranger (dé- + rang, "rank, order"), literally "to put out of order." In contemporary clinical usage the term is largely antiquated and has been replaced by more specific diagnostic categories; historical sources describe it as a broad classification for severe mental disturbance rather than a precise clinical entity.

See also

  • Permutation
  • Fixed point
  • Inclusion–exclusion principle
  • Subfactorial

References

  • de Montmort, P. R. (1713) [1708]. Essay d'analyse sur les jeux de hazard (2nd ed.). Paris.
  • Graham, R. L.; Knuth, D. E.; Patashnik, O. (1994). Concrete Mathematics. Addison–Wesley. ISBN 0-201-55802-5.
  • Stanley, R. (2012). Enumerative Combinatorics, vol. 1 (2nd ed.). Cambridge University Press. Example 2.2.1.
  • Scoville, R. (1966). "The Hat-Check Problem". American Mathematical Monthly 73 (3): 262–265.
  • Hassani, M. (2003). "Derangements and applications". Journal of Integer Sequences 6 (1), Article 03.1.2.
  • Even, S.; Gillis, J. (1976). "Derangements and Laguerre polynomials". Mathematical Proceedings of the Cambridge Philosophical Society 79 (1): 135–143.
  • Lubiw, A. (1981). "Some NP-complete problems similar to graph isomorphism". SIAM Journal on Computing 10 (1): 11–21.
  • OEIS Foundation, sequence A000166 (derangement numbers).
  • Merriam-Webster Medical Dictionary, entry "derangement".
  • Cambridge Dictionary, entry "derangement".
Browse

More topics to explore

    Browse all articles