The number of ways of getting a sum 16 on throwing a dice four times is ______
Solution
Core idea. A total from several throws is an integer equation with limits.
Concept refresher. The number of solutions of in non-negative integers is
A variable that must be at least is replaced by 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.
Step 1: Shift the numbers
Write each throw as with . Then .
Step 2: Without the upper limit
Ignoring the upper limit for the moment, the non-negative solutions number .
Step 3: Restore the limit
If one given is at least 6, the rest add to 6 in ways; if two given ones are at least 6, in way. So the count is .
Answer. 125
Sanity check. This is the coefficient of in , the form the multinomial theorem gives for .
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.
More on Multinomial Theorem
- The sum of all possible values of n ∈ N, so that the coefficients of x, x² and x³ in the expansion of (1 +…
- Let (1 + x + x²)¹⁰ = a₀ + a₁x + a₂x² + … + a₂₀x²⁰. If (a₁ + a₃ + a₅ + … + a₁₉) - 11a₂ = 121k, then k is…
- The sum of all rational terms in the expansion of (1 + 2^(1/3) + 3^(1/2))⁶ is equal to
- All 11 on Multinomial Theorem ›