Combinatorics - 2D backpack

Suppose that we want to distribute 2 identical black balls and 3 identical white balls into 4 distinct bins, so that each bin has at least one ball.

How many ways can we do this?


Bonus: Why the title "2D backpack" ?

36 32 28 24

This section requires Javascript.
You are seeing this because something didn't load right. We suggest you, (a) try refreshing the page, (b) enabling javascript if it is disabled on your browser and, finally, (c) loading the non-javascript version of this page . We're sorry about the hassle.

1 solution

Jesse Li
Jan 29, 2019

3 bins must have 1 ball, and 1 must have 2.

There are 3 possible combinations for the bin with 2 balls:

WW

BW

BB

If the combination is BB, then there are 3 bins that the other black ball can be in.

If the combination is BW, then there are 3 bins that the other white ball can be in.

If the combination is WW, then there is only 1 possibility for the rest of the bins: They all have a black ball.

3 + 3 + 1 = 7 3+3+1=7

Since there are 4 choices for the bin with 2 balls, we must then multiply by 4.

7 × 4 = 28 7 \times 4=\boxed{28}

0 pending reports

×

Problem Loading...

Note Loading...

Set Loading...