Learn / Library / Combinatorics
Handing back badges
people numbered to each own a distinct badge with the same number. The badges are handed back in some order, each person receiving exactly one. In how many of the handbacks does none of the people to receive their own badge? People to may or may not receive theirs.
Checking an answer needs JavaScript. The hint and the solution open without it.
Hint
Apply inclusion-exclusion over the people from the restricted group who do get their own badge.
Solution
- If a chosen set of people among the first all get their own badge, the remaining badges can be handed out in ways.
- By inclusion-exclusion the count is , since there are choices of the set.
- This equals .
Answer: