The number of arrangements of six identical balls in three identical bins is ______.
GATE 2022 CS Q.32: solution and answer
Answer and solution
ANSWER
There are 7 arrangements.
Official answer: 7Source: Official answer key, GATE 2022 CS (IIT Kharagpur)
Balls are identical and bins are identical, so an arrangement is determined only by the multiset of bin contents. We therefore count the partitions of into at most parts. A bin may be empty, so fewer than non-zero parts is allowed.
One non-empty bin: . This gives arrangement.
Two non-empty bins: , , . The order of the parts does not matter, so there are no others. This gives arrangements.
Three non-empty bins: , , . The largest part can be at most , since the other two parts are each at least . With largest part the rest is . With largest part the rest is . With largest part the rest is . This gives arrangements.
Total .
KEY IDEA
With identical balls and identical bins, only the unordered list of bin counts matters. The count is the number of partitions of 6 into at most 3 parts, which is 7.
WATCH OUT FOR
Counting ordered distributions (distinct bins) gives instead of 7. Another slip is leaving out the case with empty bins, such as the single bin holding all balls.
From the GATE 2022 CS paper. Every question of this paper · Download the full paper · All 6 Counting questions, with notes
More Counting questions
- GATE 2026 CS1 Q.12 · MCQ · 1 markConsider 4 × 4 matrices with their elements from 0, 1. The number of such matrices with even number of 1s in…
- GATE 2025 CS1 Q.30 · NAT · 1 markLet S be the set of all ternary strings defined over the alphabet a, b, c.
- GATE 2025 CS2 Q.64 · NAT · 2 marksA quadratic polynomial (x- α)(x- β) over complex numbers is said to be square invariant if (x- α)(x- β) =…