QlarIITy

MathematicsJEE Main 2024 · 5 AprilInteger

The number of ways of getting a sum 16 on throwing a dice four times is ______

Try it before you look.The full solution is on this page, below the answer box, the moment you check. No sign-in needed.

Solution

Core idea. A total from several throws is an integer equation with limits.

Concept refresher. The number of solutions of x1+x2+…+xk=nx_1 + x_2 + \ldots + x_k = n in non-negative integers is

N=n+k−1Ck−1N = {}^{n+k-1}C_{k-1}

A variable that must be at least mm is replaced by mm plus a new non-negative variable.

Picture the situation. Four throws give four numbers from 1 to 6 whose sum is 16. The throws are ordered, so 6, 6, 3, 1 and 1, 3, 6, 6 are different ways. Lowering each number by 1 gives four numbers from 0 to 5 adding to 12. Without the upper limit this is a standard count; the limit is restored by inclusion and exclusion.

Approach. Shift the numbers, count without the upper limit, and correct with inclusion and exclusion.

  1. Step 1: Shift the numbers

    Write each throw as 1+yi1 + y_i with 0≤yi≤50 \leq y_i \leq 5. Then y1+y2+y3+y4=12y_1 + y_2 + y_3 + y_4 = 12.

  2. Step 2: Without the upper limit

    Ignoring the upper limit for the moment, the non-negative solutions number 12+3C3=15C3=455{}^{12+3}C_3 = {}^{15}C_3 = 455.

  3. Step 3: Restore the limit

    If one given yiy_i is at least 6, the rest add to 6 in 9C3=84{}^9C_3 = 84 ways; if two given ones are at least 6, in 3C3=1{}^3C_3 = 1 way. So the count is 455−4×84+6×1=125455 - 4 \times 84 + 6 \times 1 = 125.

Answer. 125

Sanity check. This is the coefficient of x12x^{12} in (1−x6)4(1−x)−4(1 - x^6)^4 (1 - x)^{-4}, the form the multinomial theorem gives for (x+x2+…+x6)4(x + x^2 + \ldots + x^6)^4.

Common wrong answers

  • 119: Forgetting to add back the 6 cases in which two throws exceed the limit gives 119.
  • 455: Ignoring the upper limit of 6 on each throw gives 455.

Key takeaway

The trap. Cases removed twice must be added back once.

How toppers think. They shift every throw down to zero before applying the formula.

Remember. N=n+k−1Ck−1N = {}^{n+k-1}C_{k-1}

More on Multinomial Theorem