IAE Academy

GATE 2022 CS Q.32: solution and answer

GATE 2022 · CSQ.32 · 1 mark · NAT

The number of arrangements of six identical balls in three identical bins is ______.

See the question in the paper

Answer and solution

ANSWER

There are 7 arrangements.

Official answer: 7Source: Official answer key, GATE 2022 CS (IIT Kharagpur)

  1. 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.

  2. One non-empty bin: . This gives arrangement.

  3. Two non-empty bins: , , . The order of the parts does not matter, so there are no others. This gives arrangements.

  4. 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.

  5. 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