On a chessboard, there are 8 white pawns and 8 black pawns. They are about to be put in bags. There is a red bag, a blue bag, and a yellow bag. The red bag can hold at most 12 pawns, the blue bag can hold at most 11 pawns, and the yellow bag can hold at most 10 pawns. If each bag must hold at least 1 white pawn and at least 1 black pawn, how many possible ways are there to put the pawns in the bags?
Note : Pawns of the same color are considered identical.
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.
Relevant wiki: Combinations - Problem Solving
Because each of the 3 bags must hold at least 1 white pawn and 1 black pawn, we distribute it now, so there remain 5 white pawns and 5 black pawns (10 in total).
Firstly, we calculate the number of possibilities, ignoring the maximum capacities. For each colour, there are 5 undistributed pawns which will be distributed into 3 bags, so there are ( 5 + 3 − 1 ) C 5 = 7 C 5 = 2 1 possibilities. Therefore, for both colours, there are 2 1 2 = 4 4 1 possibilities in total.
Secondly, we calculate the number of possibilities which has a bag overfilled. Each bag has been filled with 2 pawns, so the red, blue, and yellow bag can hold 10, 9, and 8 more pawns, respectively.
Therefore, in total, there are 6 possibilities which has a bag overfilled.
Finally, from the 4 4 1 possibilities obtained in the first part, we subtract the 6 possibilities obtained in the second part, obtaining 4 3 5 .
Therefore, there are 4 3 5 ways to put the pawns in the bags.