Consider 4 boxes, where each box contains 3 red balls and 2 blue balls. Assume that all 20 balls are distinct. In how many different ways can 10 balls be chosen from these 4 boxes so that from each box at least one red ball and one blue ball are chosen?
- Option A: 21816
- Option B: 85536
- Option C: 12096
- Option D: 156816
Try it before you look.The full solution is on this page, below the options, the moment you check. No sign-in needed.
Solution
Core idea. Generating functions handle per-group restrictions cleanly.
Concept refresher. The number of ways to choose balls in total is the coefficient of in the product of the per-box polynomials:
Approach. Build the polynomial, then extract the coefficient.
Step 1: One box
One box gives , so we need the coefficient of in .
Step 2: Coefficient
One box contributes : ; two boxes contribute each: . The total is , (A).
Answer. (A) 21816
Why the other options are wrong
- (B) Fixing one red and one blue per box and choosing the 2 others from 12 gives , which double counts.
- (C) Keeping only the case where one box gives two extra balls counts , and the other case adds ; 12096 matches neither the parts nor the total 21816.
- (D) Removing too few forbidden selections from leaves , which still includes boxes without a red or a blue ball.
Key takeaway
The trap. Students fix required balls first and double count.
How toppers think. They write the polynomial for one box and raise it to the fourth power.
Remember. .
More on Distribution Problems
- Six cards and six envelopes are numbered 1,2,3,4,5,6 and cards are to be placed in envelopes so that each…
- Let n₁<n₂<n₃<n₄<n₅ be positive integers such that n₁+n₂+n₃+n₄+n₅=20. Then the number of such distinct…
- The total number of ways in which 5 balls of different colours can be distributed among 3 persons so that…
- All 4 on Distribution Problems ›