Number of Permutations That Are Derangements
Suppose there are n people at a party, each of whom brought an umbrella. At the end of the party everyone picks an umbrella out of the stack of umbrellas and leaves. What is the probability that no one left with his/her own umbrella? This problem is equivalent to counting permutations with no fixed points, and hence the EGF (subtract out fixed points by removing z) g(x) is
Now multiplication by just sums coefficients, so that we have the following formula for, the total number of derangements:
Hence there are about derangements and the probability that a random permutation is a derangement is
This result may also be proved by inclusion-exclusion. Using the sets where to denote the set of permutations that fix p, we have
This formula counts the number of permutations that have at least one fixed point. The cardinalities are as follows:
Hence the number of permutations with no fixed point is

or

and we have the claim.
There is a generalization of these numbers, which is known as rencontres numbers, i.e. the number of permutations of containing m fixed points. The corresponding EGF is obtained by marking cycles of size one with the variable u, i.e. choosing b(k) equal to one for and zero otherwise, which yields the generating function of the set of permutations by the number of fixed points:
It follows that
and hence
This immediately implies that
for n large, m fixed.
Read more about this topic: Random Permutation Statistics
Famous quotes containing the words number of, number and/or permutations:
“I will not adopt that ungenerous and impolitic custom so common with novel writers, of degrading by their contemptuous censure the very performances, to the number of which they are themselves addingjoining with their greatest enemies in bestowing the harshest epithets on such works, and scarcely ever permitting them to be read by their own heroine, who, if she accidentally take up a novel, is sure to turn over its insipid leaves with disgust.”
—Jane Austen (17751817)
“The serial number of a human specimen is the face, that accidental and unrepeatable combination of features. It reflects neither character nor soul, nor what we call the self. The face is only the serial number of a specimen.”
—Milan Kundera (b. 1929)
“Motherhood in all its guises and permutations is more art than science.”
—Melinda M. Marshall (20th century)






