Skip to main content
Back to Permutations & Combinations
JEE Main 2023
Permutations & Combinations
Permutations and Combinations
Easy

Question

The number of ways to distribute 30 identical candies among four children C 1 , C 2 , C 3 and C 4 so that C 2 receives at least 4 and at most 7 candies, C 3 receives at least 2 and at most 6 candies, is equal to :

Options

Solution

Key Concepts and Formulas

  • Stars and Bars Method: The number of non-negative integer solutions to x1+x2++xk=nx_1 + x_2 + \dots + x_k = n is given by (n+k1k1)=(n+k1n)\binom{n+k-1}{k-1} = \binom{n+k-1}{n}.
  • Lower Bound Constraints: If xiax_i \ge a, substitute yi=xiay_i = x_i - a to obtain a non-negative variable yi0y_i \ge 0.
  • Principle of Inclusion-Exclusion (PIE): For two conditions AA and BB, the number of solutions satisfying neither is N(Total)[N(A)+N(B)]+N(AB)N(\text{Total}) - [N(A) + N(B)] + N(A \cap B).

Step-by-Step Solution

Step 1: Problem Setup and Initial Equation

We want to distribute 30 identical candies among four children C1,C2,C3,C_1, C_2, C_3, and C4C_4. Let x1,x2,x3,x4x_1, x_2, x_3, x_4 represent the number of candies each child receives, respectively. We are given the equation: x1+x2+x3+x4=30x_1 + x_2 + x_3 + x_4 = 30 with the constraints:

  • x10x_1 \ge 0
  • 4x274 \le x_2 \le 7
  • 2x362 \le x_3 \le 6
  • x40x_4 \ge 0

Step 2: Handling Lower Bound Constraints

To apply Stars and Bars, we need all variables to be non-negative. We handle the lower bounds for x2x_2 and x3x_3 by substitution:

  • Let y2=x24y_2 = x_2 - 4. Then x2=y2+4x_2 = y_2 + 4 and y20y_2 \ge 0.
  • Let y3=x32y_3 = x_3 - 2. Then x3=y3+2x_3 = y_3 + 2 and y30y_3 \ge 0.

Substituting these into the equation gives: x1+(y2+4)+(y3+2)+x4=30x_1 + (y_2 + 4) + (y_3 + 2) + x_4 = 30 x1+y2+y3+x4=3042=24x_1 + y_2 + y_3 + x_4 = 30 - 4 - 2 = 24 Now we have x1+y2+y3+x4=24x_1 + y_2 + y_3 + x_4 = 24 with x1,y2,y3,x40x_1, y_2, y_3, x_4 \ge 0.

We also need to update the upper bound constraints:

  • x27y2+47y23x_2 \le 7 \Rightarrow y_2 + 4 \le 7 \Rightarrow y_2 \le 3
  • x36y3+26y34x_3 \le 6 \Rightarrow y_3 + 2 \le 6 \Rightarrow y_3 \le 4

So now we have x1+y2+y3+x4=24x_1 + y_2 + y_3 + x_4 = 24 with constraints y23y_2 \le 3 and y34y_3 \le 4.

Step 3: Calculate Total Solutions Without Upper Bounds

Ignoring the upper bounds y23y_2 \le 3 and y34y_3 \le 4, the number of non-negative integer solutions to x1+y2+y3+x4=24x_1 + y_2 + y_3 + x_4 = 24 is: (24+4141)=(273)=27×26×253×2×1=2925\binom{24 + 4 - 1}{4 - 1} = \binom{27}{3} = \frac{27 \times 26 \times 25}{3 \times 2 \times 1} = 2925

Step 4: Applying the Principle of Inclusion-Exclusion

Let AA be the set of solutions where y24y_2 \ge 4 (violating y23y_2 \le 3), and BB be the set of solutions where y35y_3 \ge 5 (violating y34y_3 \le 4). We want to find the number of solutions that satisfy neither AA nor BB. By PIE: N(Desired)=N(Total)[N(A)+N(B)]+N(AB)N(\text{Desired}) = N(\text{Total}) - [N(A) + N(B)] + N(A \cap B)

Step 5: Calculate N(A)

If y24y_2 \ge 4, let z2=y24z_2 = y_2 - 4. Then y2=z2+4y_2 = z_2 + 4 and z20z_2 \ge 0. Substituting into x1+y2+y3+x4=24x_1 + y_2 + y_3 + x_4 = 24: x1+(z2+4)+y3+x4=24x_1 + (z_2 + 4) + y_3 + x_4 = 24 x1+z2+y3+x4=20x_1 + z_2 + y_3 + x_4 = 20 The number of solutions is (20+4141)=(233)=23×22×213×2×1=1771\binom{20 + 4 - 1}{4 - 1} = \binom{23}{3} = \frac{23 \times 22 \times 21}{3 \times 2 \times 1} = 1771. So N(A)=1771N(A) = 1771.

Step 6: Calculate N(B)

If y35y_3 \ge 5, let z3=y35z_3 = y_3 - 5. Then y3=z3+5y_3 = z_3 + 5 and z30z_3 \ge 0. Substituting into x1+y2+y3+x4=24x_1 + y_2 + y_3 + x_4 = 24: x1+y2+(z3+5)+x4=24x_1 + y_2 + (z_3 + 5) + x_4 = 24 x1+y2+z3+x4=19x_1 + y_2 + z_3 + x_4 = 19 The number of solutions is (19+4141)=(223)=22×21×203×2×1=1540\binom{19 + 4 - 1}{4 - 1} = \binom{22}{3} = \frac{22 \times 21 \times 20}{3 \times 2 \times 1} = 1540. So N(B)=1540N(B) = 1540.

Step 7: Calculate N(A ∩ B)

If y24y_2 \ge 4 and y35y_3 \ge 5, let z2=y24z_2 = y_2 - 4 and z3=y35z_3 = y_3 - 5. Then y2=z2+4y_2 = z_2 + 4 and y3=z3+5y_3 = z_3 + 5. Substituting into x1+y2+y3+x4=24x_1 + y_2 + y_3 + x_4 = 24: x1+(z2+4)+(z3+5)+x4=24x_1 + (z_2 + 4) + (z_3 + 5) + x_4 = 24 x1+z2+z3+x4=15x_1 + z_2 + z_3 + x_4 = 15 The number of solutions is (15+4141)=(183)=18×17×163×2×1=816\binom{15 + 4 - 1}{4 - 1} = \binom{18}{3} = \frac{18 \times 17 \times 16}{3 \times 2 \times 1} = 816. So N(AB)=816N(A \cap B) = 816.

Step 8: Final Calculation

Using PIE: N(Desired)=2925(1771+1540)+816=29253311+816=430N(\text{Desired}) = 2925 - (1771 + 1540) + 816 = 2925 - 3311 + 816 = 430

Common Mistakes & Tips

  • Always make the variables non-negative before applying Stars and Bars.
  • Remember to adjust upper bounds after making substitutions for lower bounds.
  • Be careful with the signs in the Principle of Inclusion-Exclusion.

Summary

By applying the Stars and Bars method and the Principle of Inclusion-Exclusion, we found the number of ways to distribute the candies according to the given constraints. The final answer is 430.

Final Answer

The final answer is \boxed{430}, which corresponds to option (D).

Practice More Permutations & Combinations Questions

View All Questions