The Setup: We are tackling a Linear Diophantine equation problem disguised as a coin combination puzzle. Since we have three variables (a,b,c) and only one equation (2a+5b+10c=50), we can't brute-force a single algebraic solution. Instead, we anchor the heaviest coin (c) to create bounded timelines, and use parity (even/odd logic) to filter the remaining valid coin combos. Math, logic, and syntax are locked and double-verified.
Step 1: Set up the core equation.
Let a,b,c represent the quantities of Rs 2, Rs 5, and Rs 10 coins respectively. The total value is capped at 50 rupees.
2a+5b+10c=50
Step 2: Isolate and establish parity.
Anchor the Rs 10 coins (c) to the right side to simplify the battlefield.
2a+5b=50−10c
Notice the right side (50−10c) is always an even number. Since 2a is inherently even, 5b is forced to be even as well to keep the equation balanced. For 5b to result in an even number, the quantity b must be an even integer (b∈{0,2,4,…}).
**Step 3: Iterate through the c timelines.**
We test all possible quantities for the Rs 10 coin (the max c can be is 5, since 10×5=50) and count the valid even values for b. Once b is locked, a automatically scales to fill the remainder, meaning we only need to count the valid b values to get the number of ways.
* **If c=0:** 2a+5b=50⟹5b≤50. Valid even b∈{0,2,4,6,8,10}→ 6 ways
* **If c=1:** 2a+5b=40⟹5b≤40. Valid even b∈{0,2,4,6,8}→ 5 ways
* **If c=2:** 2a+5b=30⟹5b≤30. Valid even b∈{0,2,4,6}→ 4 ways
* **If c=3:** 2a+5b=20⟹5b≤20. Valid even b∈{0,2,4}→ 3 ways
* **If c=4:** 2a+5b=10⟹5b≤10. Valid even b∈{0,2}→ 2 ways
* **If c=5:** 2a+5b=0⟹5b≤0. Valid even b∈{0}→ 1 way
Step 4: Tally the total combinations.
Sum the number of valid ways from all six timelines to get the final score.
Total=6+5+4+3+2+1=21
Final Answer: 21