QlarIITy

MathematicsJEE Main 2022 · 28 JuneSingle correct

The number of ways to distribute 30 identical candies among four children C1,C2,C3C_1, C_2, C_3 and C4C_4 so that C2C_2 receives atleast 4 and atmost 7 candies, C3C_3 receives atleast 2 and atmost 6 candies, is equal to

  1. Option A: 205
  2. Option B: 615
  3. Option C: 510
  4. Option D: 430
Try it before you look.The full solution is on this page, below the options, the moment you check. No sign-in needed.

Solution

Core idea. Fix the limited shares first and share the rest freely.

Concept refresher. The number of ways to share nn identical objects between two people is

N=n+1N = n + 1

since the first person can receive any number from 0 to nn.

Picture the situation. The candies are identical, so a distribution is fixed by the four shares. The shares of C2C_2 and C3C_3 are limited to 4 to 7 and 2 to 6. Once these two shares are chosen, the candies left are split between C1C_1 and C4C_4 with no restriction.

Approach. Count the ways for one pair of restricted shares and add over all the pairs.

  1. Step 1: One pair of shares

    If C2C_2 gets pp and C3C_3 gets qq candies, the other 30−p−q30 - p - q are split between C1C_1 and C4C_4 in 31−p−q31 - p - q ways.

  2. Step 2: Add over the pairs

    There are 4×5=204 \times 5 = 20 pairs (p,q)(p, q). Over them, the values of pp add to 5×(4+5+6+7)=1105 \times (4 + 5 + 6 + 7) = 110 and the values of qq add to 4×(2+3+4+5+6)=804 \times (2 + 3 + 4 + 5 + 6) = 80.

  3. Step 3: The total

    Adding 31−p−q31 - p - q over the 20 pairs, the number of ways is 20×31−110−80=43020 \times 31 - 110 - 80 = 430.

Answer. (D) 430

Sanity check. The average of 31−p−q31 - p - q is 31−5.5−4=21.531 - 5.5 - 4 = 21.5, and 20×21.5=43020 \times 21.5 = 430.

Why the other options are wrong

  • (A) The value 205 would need an average of about 10 ways per pair of shares; the average is 21.5.
  • (B) The value 615 is close to 20×31=62020 \times 31 = 620, which forgets to subtract the shares of the two restricted children.
  • (C) The value 510 would need an average of 25.5 ways per pair of shares; the average is 21.5.

Key takeaway

The trap. Each pair of restricted shares leaves a different number of candies.

How toppers think. They multiply the number of pairs by the average number of ways.

Remember. N=n+1N = n + 1

More on Distribution Problems