Find number of ways to distribute 10 identical balls in 3 distinct boxes

easy 3 min read

Question

Find the number of ways to distribute 10 identical balls into 3 distinct boxes (where boxes may be empty).

Solution — Step by Step

This is a stars and bars (combinations with repetition) problem. We’re distributing identical objects into distinct containers — the key word “identical” means we can’t distinguish between balls, only between how many go into each box.

If the balls were distinct, the answer would be 3103^{10} (each ball independently chooses one of 3 boxes). But since balls are identical, we only care about how many go into each box, not which specific ball.

Let x1x_1, x2x_2, x3x_3 be the number of balls in Box 1, Box 2, Box 3 respectively. We need:

x1+x2+x3=10,xi0x_1 + x_2 + x_3 = 10, \quad x_i \geq 0

The number of non-negative integer solutions to this equation counts exactly the number of ways to distribute the balls.

The number of non-negative integer solutions to x1+x2+...+xr=nx_1 + x_2 + ... + x_r = n is:

(n+r1r1)\binom{n + r - 1}{r - 1}

Here n=10n = 10 (balls) and r=3r = 3 (boxes):

(10+3131)=(122)\binom{10 + 3 - 1}{3 - 1} = \binom{12}{2}
(122)=12×112=1322=66\binom{12}{2} = \frac{12 \times 11}{2} = \frac{132}{2} = \mathbf{66}

There are 66 ways to distribute 10 identical balls into 3 distinct boxes.

Why This Works

The “stars and bars” model: imagine 10 stars (representing balls) and 2 bars (representing dividers between 3 boxes). Any arrangement of these 12 symbols (10 stars + 2 bars) corresponds to a valid distribution. For example, ★★★|★★★★★|★★ means 3 balls in Box 1, 5 in Box 2, 2 in Box 3.

We need to choose 2 positions (out of 12) for the bars, or equivalently, choose 2 positions for the dividers among the 12 total positions. That’s (122)=66\binom{12}{2} = 66.

Alternative Method

Systematic listing (works for small cases, not practical for 10 balls):

For 3 balls and 3 boxes: solutions to x1+x2+x3=3x_1 + x_2 + x_3 = 3 include (3,0,0), (0,3,0), (0,0,3), (2,1,0), (2,0,1), (1,2,0), (0,2,1), (1,0,2), (0,1,2), (1,1,1) = 10 solutions.

Check formula: (3+3131)=(52)=10\binom{3+3-1}{3-1} = \binom{5}{2} = 10

For JEE and CBSE Class 11, this formula is tested both directly and as a component of larger problems. The condition matters: if boxes cannot be empty, use (n1r1)\binom{n-1}{r-1} (subtract 1 ball per box first, then distribute the rest). For the “at least 1 ball in each box” version here: distribute 7 balls freely = (7+22)=(92)=36\binom{7+2}{2} = \binom{9}{2} = 36.

Common Mistake

The most common confusion is between identical and distinct objects. If the 10 balls were distinct (like coloured balls), the answer would be 310=590493^{10} = 59049 — each ball independently chooses a box. The Stars and Bars approach applies ONLY when objects are identical (indistinguishable). If you see “identical balls/coins/objects,” use (n+r1r1)\binom{n+r-1}{r-1}.

Want to master this topic?

Read the complete guide with more examples and exam tips.

Go to full topic guide →

Try These Next