Solveeit Logo

Question

Question: Explain Derangements. Write the formula and give examples....

Explain Derangements. Write the formula and give examples.

Explanation

Solution

Here, we will use an example to explain derangements. Also, we will state the formula for the number of derangements of a set with nn objects. A derangement can also be called a permutation with no fixed points.

Complete step-by-step answer:
A permutation of the elements of a set where no element remains at the same place is called a derangement. It is denoted by !n!n or Dn{D_n}.
The number of derangements of a set with nn objects is given by the formula Dn=n!k=0n(1)kk!{D_n} = n!\sum\limits_{k = 0}^n {\dfrac{{{{\left( { - 1} \right)}^k}}}{{k!}}} .
For example: Suppose that SS represents the set \left\\{ {a,b,c} \right\\}. Here, aa comes at the first place, bb comes at the second place, and cc comes at the third place.
The elements of the set \left\\{ {a,b,c} \right\\} can be arranged as \left\\{ {a,b,c} \right\\}, \left\\{ {a,c,b} \right\\}, \left\\{ {c,b,a} \right\\}, \left\\{ {b,a,c} \right\\}, \left\\{ {c,a,b} \right\\}, and \left\\{ {b,c,a} \right\\}.
The derangements are the permutations with no fixed points. This means that the element aa must not come at the first place, bb must not come at the second place, and cc must not come at the third place.
We can observe that in \left\\{ {a,b,c} \right\\}, \left\\{ {a,c,b} \right\\}, \left\\{ {c,b,a} \right\\}, and \left\\{ {b,a,c} \right\\}, there is at least one element aa, bb, or cc which remains at the same place as in the set S = \left\\{ {a,b,c} \right\\}.
Therefore, the derangements of the set SS are \left\\{ {c,a,b} \right\\} and \left\\{ {b,c,a} \right\\}.
Some other examples of derangements:
The number of ways in which five students A, B, C, D, and E, grade their five tests, such that no student grades his own test.
The number of ways in which 4 balls (red, white, blue, green respectively) are placed in 4 boxes (red, white, blue, green respectively) such that no ball is put into the box having the same colour.

Note: We can check the derangement formula in the example given in the solution.
There are 3 elements in the set SS.
Substituting n=3n = 3 in the formula for number of derangements, we get
Dn=3!k=03(1)kk! Dn=3![(1)00!+(1)11!+(1)22!+(1)33!] Dn=6[11+11+12+16]\begin{array}{l} \Rightarrow {D_n} = 3!\sum\limits_{k = 0}^3 {\dfrac{{{{\left( { - 1} \right)}^k}}}{{k!}}} \\\ \Rightarrow {D_n} = 3!\left[ {\dfrac{{{{\left( { - 1} \right)}^0}}}{{0!}} + \dfrac{{{{\left( { - 1} \right)}^1}}}{{1!}} + \dfrac{{{{\left( { - 1} \right)}^2}}}{{2!}} + \dfrac{{{{\left( { - 1} \right)}^3}}}{{3!}}} \right]\\\ \Rightarrow {D_n} = 6\left[ {\dfrac{1}{1} + \dfrac{{ - 1}}{1} + \dfrac{1}{2} + \dfrac{{ - 1}}{6}} \right]\end{array}
Simplifying the expression, we get
Dn=6[11+1216] Dn=6[316] Dn=6[26] Dn=2\begin{array}{l} \Rightarrow {D_n} = 6\left[ {1 - 1 + \dfrac{1}{2} - \dfrac{1}{6}} \right]\\\ \Rightarrow {D_n} = 6\left[ {\dfrac{{3 - 1}}{6}} \right]\\\ \Rightarrow {D_n} = 6\left[ {\dfrac{2}{6}} \right]\\\ \Rightarrow {D_n} = 2\end{array}
Therefore, we have checked that the number of derangements is 2, that is \left\\{ {c,a,b} \right\\} and \left\\{ {b,c,a} \right\\}.