Try it on paper first. A hint, the key idea and the worked solution are here when you need them.
Six friends each bring a wrapped gift with their name on it. The gifts are mixed up and handed out at random, one to each friend. The game works only if nobody gets their own gift.
Find the number of ways to hand out the gifts so that nobody gets their own. Use the recurrence for derangements, and check with inclusion and exclusion. Then find the probability that a random handing out works, to three decimal places, and compare it with .
with and , and is the whole number nearest to . The Catalan numbers are .
Check an answer or open a hint to unlock the worked solution.
Have you tried it?
Work it out on paper first. It is fine to get stuck or make a mistake: that is how we learn. When you are ready, go through the solution one step at a time, and check each step against your own.
Step 1. The recurrence. , , , .
Step 2. Inclusion and exclusion. . The terms are with alternating signs.
Step 3. The probability. .
Check. as well. Already for people the share is within of .
Answer: ways, and the probability is about .
Log in to join the discussion.
Loading…