PlanetMath (more info)
 Math for the people, by the people.
Encyclopedia | Requests | Forums | Docs | Wiki | Random | RSS  
Login
create new user
name:
pass:
forget your password?
Main Menu
Owner confidence rating: Very high Entry average rating: No information on entry rating
derangement (Definition)

Let $ S_n$ be the symmetric group of order $ n\ge 1$. A permutation $ \phi\in S_n$ without a fixed point (that is, $ \phi(i)\neq i$ for any $ i\in\lbrace 1,\ldots, n\rbrace$) is called a derangement.

In combinatorial theory, one is usually interested in the number $ d(n)$ of derangements in $ S_n$. It is clear that $ d(1)=0,d(2)=1$, and $ d(3)=2$. It is also not difficult to calculate $ d(n)$ for small $ n$. For general $ n$, one can appeal to the principle of inclusion-exclusion. Let $ A_i$ denote the collection of permutations that fix $ i$. Then the collection of $ A$ of derangments in $ S_n$ is just the complement of

$\displaystyle A_1\cup A_2\cup \cdots \cup A_n$
in $ S_n$. Let $ C=\lbrace A_1,\ldots,A_n\rbrace$ and $ I_k$ be the $ k$-fold intersection of members of $ C$ (that is, each member of $ I_k$ has the form $ A_{j_1}\cap \cdots \cap A_{j_k}$). We can interpret a member of $ I_k$ as a set of permutations that fix $ k$ elements from $ \lbrace 1,\dots, n\rbrace$. The cardinality of each of these members is $ (n-k)!$. Furthermore, there are $ n\choose k$ members in $ I_k$. Then,


$\displaystyle d(n)$ $\displaystyle =$ $\displaystyle \vert A\vert = \vert S_n\vert-\vert A_1\cup \cdots \cup A_k\cup\cdots \cup A_n\vert$  
  $\displaystyle =$ $\displaystyle n!-\Big[\sum_{S\in I_1}\vert S\vert-\cdots+(-1)^k\sum_{S\in I_k}\vert S\vert+\cdots+(-1)^n\sum_{S\in I_n}\vert S\vert\Big]$  
  $\displaystyle =$ $\displaystyle n!-\Big[{n\choose 1}(n-1)!-\cdots+(-1)^k {n\choose k} (n-k)!+\cdots+(-1)^n {n\choose n} (n-n)!\Big]$  
  $\displaystyle =$ $\displaystyle n!-\Big[ \frac{n!}{1!}-\cdots +(-1)^k\frac{n!}{k!}+\cdots +(-1)^n\frac{n!}{n!}\Big]$  
  $\displaystyle =$ $\displaystyle n!\sum_{k=0}^{n}\frac{(-1)^k}{k!}$  

With this equation, one can easily derive the recurrence relation

$\displaystyle d(n)=nd(n-1)+(-1)^n.$
Apply this formula twice, we are led to another recurrence relation
$\displaystyle d(n)=(n-1)\big[d(n-1)+d(n-2)\big].$

Application. A group of $ n$ men arrive at a party and check their hats. Upon departure, the hat-checker, being forgetful, randomly (meaning that the distribution of picking any hat out of all possible hats is a uniform distribution) hands back a hat to each man. What is the probability $ p(n)$ that no man receives his own hat? Does this probability go to 0 as $ n$ gets larger and larger?

Answer: According to the above calculation,

$\displaystyle p(n)=\frac{d(n)}{n!}=\sum_{k=0}^{n}\frac{(-1)^k}{k!}.$
Therefore,
$\displaystyle \lim_{n\to\infty}p(n)=\frac{1}{e}\approx 0.368.$



"derangement" is owned by CWoo. [ full author list (2) ]
(view preamble)

View style:

Log in to rate this entry.
(view current ratings)

Cross-references: uniform distribution, distribution, forgetful, group, application, recurrence relation, equation, cardinality, intersection, complement, fix, collection, principle of inclusion-exclusion, calculate, clear, number, theory, fixed point, permutation, order, symmetric group
There is 1 reference to this entry.

This is version 4 of derangement, born on 2006-07-14, modified 2006-10-14.
Object id is 8144, canonical name is Derangement.
Accessed 1496 times total.

Classification:
AMS MSC05A05 (Combinatorics :: Enumerative combinatorics :: Combinatorial choice problems )
 05A15 (Combinatorics :: Enumerative combinatorics :: Exact enumeration problems, generating functions)
 60C05 (Probability theory and stochastic processes :: Combinatorial probability)

Pending Errata and Addenda
None.
[ View all 2 ]
Discussion
Style: Expand: Order:
forum policy

No messages.

Interact
post | correct | update request | add derivation | add example | add (any)