Eight different dolls are to be packed in eight different boxes. If two of the boxes are too small to hold five of the dolls, in how many ways can the dolls be packed? I tried to solve it, but got confused.
2026-03-26 12:31:04.1774528264
On
Eight different dolls are to be packed with a condition
1.1k Views Asked by Bumbble Comm https://math.techqa.club/user/bumbble-comm/detail At
2
There are 2 best solutions below
0
On
Consider $A_1, A_2,..,A_8 $ are the boxes where $b_1,b_2,..,b_8$ are the balls. Moreover $A_1$ and $A_2$ are too small to hold balls $b_1,b_2,..,b_5$. Then, these $5$ balls goes to other $6$ boxes i.e. $A_3, A_4,..,A_8 $ in $6*5*4*3*2 = 720$ ways. Now there are $3$ balls left and $3$ boxes left. These balls can be arranged in $3! = 6$ ways. Hence total number of ways to arrange the balls is $720*6= 4320$
I'll assume this means that every doll goes into a unique box.
We can find this number using inclusion-exclusion:
We include all $8!$ permutations of the dolls into boxes.
We exclude the [???] permutations where small-box-1 gets a too-big doll. We also exclude the [???] permutations where small-box-2 gets a too-big doll.
We then re-include the [???] permutations where small-box-1 and small-box-2 get a too-big doll.
This gives [???] permutations. We can verify this using the GAP code
by labeling the too-small boxes 1 and 2, and the too-big dolls 1 through 5.
Spoiler alert: