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:
“In view of the fact that the number of people living too long has risen catastrophically and still continues to rise.... Question: Must we live as long as modern medicine enables us to?... We control our entry into life, it is time we began to control our exit.”
—Max Frisch (19111991)
“I think, for the rest of my life, I shall refrain from looking up things. It is the most ravenous time-snatcher I know. You pull one book from the shelf, which carries a hint or a reference that sends you posthaste to another book, and that to successive others. It is incredible, the number of books you hopefully open and disappointedly close, only to take down another with the same result.”
—Carolyn Wells (18621942)
“Motherhood in all its guises and permutations is more art than science.”
—Melinda M. Marshall (20th century)






