Question 9Hard
A vending machine accepts only coins of ₹1, ₹7 and ₹10. What is the smallest number of coins needed to make exactly ₹26?
- 8
- 4
- 5
- 6
Answer: C. 5
Explanation
Greedy fails here; checking combinations shows the fewest coins is 5.
Step-by-step solution
- Try combinations of (1, 7, 10)
- The largest-first method gives 8
- Best is 5 coins
Why the other options are wrong
- A. takes the largest coin first each time, which is not always the fewest coins here
- B. assumes a combination exists with one coin fewer, which would not add to the amount
- D. uses one more coin than the best combination
Tip: Fewest coins: check the sums of 3 and 4 coins before accepting a set; largest-first is often not the minimum.
Question 10Hard
What is the smallest number of sweets (more than 1) that leaves a remainder of 5 when shared equally among 8 children and a remainder of 3 when shared among 5 children?
- 53
- 35
- 13
- 12
Answer: C. 13
Explanation
Check numbers that leave 5 on division by 8: the first one that also leaves 3 on division by 5 is 13.
Step-by-step solution
- x = 8p + 5
- Need x mod 5 = 3
- Smallest x = 13
Why the other options are wrong
- A. is a valid count but not the smallest one
- B. subtracts the shortfalls from the product, which only works for coprime special cases
- D. has the wrong remainder in at least one case
Tip: Write x = 8p + 5 and test the values until the other remainder fits; the first match is the smallest, so stop there.