Solveeit Logo

Question

Question: 10 balls are to be placed in 5 distinct boxes labelled as $P, Q, R, S$ and $T$. A box may contain an...

10 balls are to be placed in 5 distinct boxes labelled as P,Q,R,SP, Q, R, S and TT. A box may contain any number of balls including no balls or all the balls. Then, the number of ways to distribute the balls so that exactly two of the boxes contain exactly two balls each is equal to ______.

Answer

150

Explanation

Solution

The problem requires distributing 10 identical balls into 5 distinct boxes such that exactly two boxes contain 2 balls each.

  1. Choose the boxes: First, we select 2 out of the 5 distinct boxes that will contain exactly 2 balls. The number of ways to do this is given by the combination formula: (52)=5!2!(52)!=5×42×1=10\binom{5}{2} = \frac{5!}{2!(5-2)!} = \frac{5 \times 4}{2 \times 1} = 10

  2. Distribute remaining balls: After placing 2 balls in each of the 2 chosen boxes, we have used 2+2=42 + 2 = 4 balls. This leaves 104=610 - 4 = 6 balls to be distributed among the remaining 52=35 - 2 = 3 distinct boxes. Let the number of balls in these remaining 3 boxes be n1,n2,n3n_1, n_2, n_3. We have the equation n1+n2+n3=6n_1 + n_2 + n_3 = 6, with the constraint that n1,n2,n30n_1, n_2, n_3 \ge 0 and none of these boxes can contain exactly 2 balls (i.e., n12,n22,n32n_1 \neq 2, n_2 \neq 2, n_3 \neq 2).

    We can solve this using the Principle of Inclusion-Exclusion (PIE).

    • Total ways to distribute 6 balls into 3 boxes: Using stars and bars, the total number of non-negative integer solutions is: (6+3131)=(82)=8×72=28\binom{6+3-1}{3-1} = \binom{8}{2} = \frac{8 \times 7}{2} = 28

    • Subtract cases where at least one box has 2 balls: Let AiA_i be the set of distributions where box ii has exactly 2 balls.

      • Exactly one box has 2 balls: Choose 1 box out of 3 ((31)\binom{3}{1} ways). Place 2 balls in it. Distribute the remaining 62=46-2=4 balls into the other 2 boxes. The number of ways is (4+2121)=(51)=5\binom{4+2-1}{2-1} = \binom{5}{1} = 5. So, (31)×5=3×5=15\binom{3}{1} \times 5 = 3 \times 5 = 15.
      • Exactly two boxes have 2 balls: Choose 2 boxes out of 3 ((32)\binom{3}{2} ways). Place 2 balls in each. This uses 2+2=42+2=4 balls. Distribute the remaining 64=26-4=2 balls into the last box. There is only 1 way to do this (place all 2 balls in the last box). So, (32)×1=3×1=3\binom{3}{2} \times 1 = 3 \times 1 = 3.
      • Exactly three boxes have 2 balls: Choose 3 boxes out of 3 ((33)\binom{3}{3} ways). Place 2 balls in each. This uses 2+2+2=62+2+2=6 balls. There is 1 way to do this. So, (33)×1=1×1=1\binom{3}{3} \times 1 = 1 \times 1 = 1.

      Using PIE for the number of ways where at least one box has 2 balls: A1A2A3=(sum of single cases)(sum of double cases)+(triple case)|A_1 \cup A_2 \cup A_3| = (\text{sum of single cases}) - (\text{sum of double cases}) + (\text{triple case}) A1A2A3=153+1=13|A_1 \cup A_2 \cup A_3| = 15 - 3 + 1 = 13.

    • Number of ways where none of the 3 boxes has 2 balls: Total ways - (Ways with at least one box having 2 balls) = 2813=1528 - 13 = 15.

  3. Total number of ways: Multiply the number of ways to choose the boxes by the number of ways to distribute the remaining balls: Total ways = (Ways to choose the 2 boxes) ×\times (Ways to distribute remaining balls into the other 3 boxes such that none has 2 balls) Total ways = 10×15=15010 \times 15 = 150.