The number of ways of giving 20 distinct oranges to 3 children such that each child gets at least one orange is _____
Solution
Core idea. Different objects with no one left out are counted by inclusion and exclusion.
Concept refresher. The number of ways to give different objects to 3 people so that each gets at least one is
by inclusion and exclusion.
Picture the situation. Each orange is different, so giving out the oranges means choosing a child for every orange. Without any condition each orange has three possible owners. The condition that no child is left out is handled by removing the assignments in which some child receives nothing.
Approach. Apply inclusion and exclusion to the assignments that leave out one or two children.
Step 1: All assignments
Each of the 20 different oranges can go to any of the 3 children, so there are assignments.
Step 2: Remove the bad ones
Assignments in which a given child gets nothing number , and there are 3 such children. Assignments in which two given children get nothing number 1, and they have been removed twice, so 3 are added back.
Step 3: Evaluate
So the number of ways is . With and this is , which equals 3483638676.
Answer. 3483638676
Sanity check. The same formula with 3 oranges gives , the ways of giving one orange to each child.
Common wrong answers
- 3483638673: Forgetting to add back the 3 assignments that give every orange to one child gives 3483638673.
- 171: Treating the oranges as identical gives , which counts only how many oranges each child gets.
Key takeaway
The trap. Assignments that leave out two children are removed twice and must be added back.
How toppers think. They test the formula on a tiny case before using it on large numbers.
Remember.
More on Distribution Problems
- A person has three different bags and four different books. The number of ways, in which he can put these…
- A building has ground floor and 10 more floors. Nine persons enter in a lift at the ground floor. The lift…
- Let A = {(a, b, c): a, b, c; are non-negative integers and; a + b + 2c = 22}. Then n(A) is equal to:
- All 19 on Distribution Problems ›