Hi naveeng15,Yes, there's a much lighter way, and you don't need stars-and-bars or the inclusion-exclusion subtraction at all.
The trick is
symmetry. Each sector is numbered
1 to
9, and 1 and 9 are mirror images around the center value 5 (so are 2 and 8, 3 and 7, and so on). In general, replacing every value
v with
10 - v is a perfect one-to-one relabeling of the spinner.
Watch what that does to a sum. If three spins add to
20, then after the swap they add to:
(10 - a) + (10 - b) + (10 - c) = 30 - 20 =
10So every triple that sums to
20 pairs up with exactly one triple that sums to
10. That means:
(number of ways to get 20) = (number of ways to get 10)And counting ways to get
10 is far friendlier, because the numbers are small and you never bump into the "max is 9" ceiling.
Count the easy sideFor an ordered triple (a, b, c) with each from 1 to 9 summing to
10, shift each down by 1 (let a' = a - 1, etc.). Now a' + b' + c' =
7, each a' from 0 to 8. Since 7 is already less than 9, the upper limit never bites - no cases to subtract.
Ordered non-negative solutions of a' + b' + c' = 7 is a clean stars-and-bars: C(7 + 2, 2) = C(9, 2) =
36.
So the answer is
36.
The takeaway: whenever a "high sum" count looks painful, check whether reflecting the values (here v -> 10 - v) turns it into a small "low sum" count. Same answer, a fraction of the work.
Answer: Bnaveeng15
is there any easy way to do these kind of problems ?
KarishmaB