Boris has an incredible coin-changing machine. When he puts in a quarter, it returns five nickels; when he puts in a nickel, it returns five pennies; and when he puts in a penny, it returns five quarters. Boris starts with just one penny. Which of the following amounts could Boris have after using the machine repeatedly?
- A)
$3.63
- B)
$5.13
- C)
$6.30
- D)
$7.45
- E)
$9.07
Answer
D
Key insight
Quarter-to-nickels and nickel-to-pennies preserve value; penny-to-quarters adds exactly 124 cents, so every reachable total is 1 more than a multiple of 124.
Solution
Track the total value in cents through each kind of exchange.
- Quarter in, five nickels out: , no change.
- Nickel in, five pennies out: , no change.
- Penny in, five quarters out: , a gain of .
So no matter what Boris does, his total is cents, where counts how many pennies he has fed in. Subtract from each choice and test divisibility by :
Only fits, with . (It is also reachable: each time, break a quarter into nickels and a nickel into pennies, then feed in a penny.)
The answer is .
Why this works
When a process has a few repeatable moves, ask what each move does to a single summary quantity. Two moves leave the total alone and the third shifts it by a fixed amount, so the total mod is invariant. Multiple choice then reduces to five remainder checks, and the invariant alone eliminates four options without any construction.
The trap
Simulating the machine step by step, or testing whether each choice is a multiple of 124 instead of whether it leaves remainder 1.
Common mistakes
- Simulating the machine step by step, or testing whether each choice is a multiple of 124 instead of whether it leaves remainder 1.
- Miscounting the gain as (forgetting the penny that was surrendered), which makes no choice work.
Techniques
Use an invariant, parity, or coloring argument