(i) The fewest presses use the biggest buttons first:
305=(3×100)+(0×10)+(5×1)
That is 3+0+5=8 presses. Every other way comes from exchanges: one +100 press replaced by ten +10 presses, or one +10 press replaced by ten +1 presses. Each exchange takes away 1 press and adds 10, so it adds 9 presses. So the number of presses is always 8, or 8 plus some nines: 8, 17, 26, 35, 44, … Since 23 is not in this list (23−8=15 is not a multiple of 9), Priya must be wrong.
(ii) Below 40 the possible numbers of presses are 8, 17, 26 and 35. For example:
- 8: (3×100)+(5×1)
- 17: (2×100)+(10×10)+(5×1)
- 26: (2×100)+(9×10)+(15×1)
- 35: (2×100)+(8×10)+(25×1)