Skip to content

GATE CS 2022 Q22 — Combinatorics: Counting, Recurrence Relations, Generating Functions

Explain with AI
The number of arrangements of six identical balls in three identical bins is _____________ .
View worked solution

Answer: 7

This problem asks for the number of ways to distribute 66 identical balls into 33 identical bins. Since both the balls and the bins are identical, this is equivalent to finding the number of partitions of the integer 66 into at most 33 parts (where parts can be zero).

Let the number of balls in the three bins be x1,x2,x_1, x_2, and x3x_3. Since the bins are identical, we can assume without loss of generality that:

x1≥x2≥x3≥0andx1+x2+x3=6x_1 \ge x_2 \ge x_3 \ge 0 \quad \text{and} \quad x_1 + x_2 + x_3 = 6

We can systematically list all such non-negative integer partitions:

  1. (6,0,0)(6, 0, 0)
  2. (5,1,0)(5, 1, 0)
  3. (4,2,0)(4, 2, 0)
  4. (4,1,1)(4, 1, 1)
  5. (3,3,0)(3, 3, 0)
  6. (3,2,1)(3, 2, 1)
  7. (2,2,2)(2, 2, 2)

Counting these configurations, we find there are exactly 7 possible arrangements.

Free practice · Your answers on this page are not saved.

Published
Report a correction
Keep exploringMore Combinatorics: Counting, Recurrence Relations, Generating Functions questions