QlarIITy

MathematicsJEE Advanced 2022 · Paper 2Single correct

Consider 4 boxes, where each box contains 3 red balls and 2 blue balls. Assume that all 20 balls are distinct. In how many different ways can 10 balls be chosen from these 4 boxes so that from each box at least one red ball and one blue ball are chosen?

  1. Option A: 21816
  2. Option B: 85536
  3. Option C: 12096
  4. Option D: 156816
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. Generating functions handle per-group restrictions cleanly.

Concept refresher. The number of ways to choose kk balls in total is the coefficient of xkx^k in the product of the per-box polynomials:

N=[xk]∏iPi(x)N = [x^k]\prod_i P_i(x)

Approach. Build the polynomial, then extract the coefficient.

  1. Step 1: One box

    One box gives 6x2+9x3+5x4+x56x^2 + 9x^3 + 5x^4 + x^5, so we need the coefficient of x2x^2 in (6+9x+5x2+x3)4(6 + 9x + 5x^2 + x^3)^4.

  2. Step 2: Coefficient

    One box contributes 5x25x^2: 4×5×63=43204 \times 5 \times 6^3 = 4320; two boxes contribute 9x9x each: 6×81×36=174966 \times 81 \times 36 = 17496. The total is 4320+17496=218164320 + 17496 = 21816, (A).

Answer. (A) 21816

Why the other options are wrong

  • (B) Fixing one red and one blue per box and choosing the 2 others from 12 gives 64×66=855366^4 \times 66 = 85536, which double counts.
  • (C) Keeping only the case where one box gives two extra balls counts 43204320, and the other case adds 1749617496; 12096 matches neither the parts nor the total 21816.
  • (D) Removing too few forbidden selections from 20C10=184756{}^{20}C_{10} = 184756 leaves 184756−27940=156816184756 - 27940 = 156816, which still includes boxes without a red or a blue ball.

Key takeaway

The trap. Students fix required balls first and double count.

How toppers think. They write the polynomial for one box and raise it to the fourth power.

Remember. N=[xk]∏Pi(x)N = [x^k]\prod P_i(x).

More on Distribution Problems