Minimum possible value of change

[Glossary for those who need it: a nickel is 5 cents, a dime is 10 cents and a quarter is 25 cents.]

We can't have 5 cents in the solution (because we could replace them with a nickel), so we have at most 4 cents. So we must actually have exactly 4 cents, because otherwise we could replace a larger coin by a cent and get a better solution.

If there is a nickel, there is exactly one nickel because 2 nickels can be replaced by a dime. In this case, there is also at most one and hence exactly one dime (because 2 dimes and a nickel can be replaced by a quarter, while if there are no dimes, a quarter can be replaced by a dime).

If there is no nickel, then there can be at most 2 dimes (because 3 dimes can be replaced by a nickel and a quarter).

So we have EITHER:

  1. 4 cents, 1 nickel, 1 dime and 14 quarters, OR
  2. 4 cents, 2 dimes and 14 quarters.

So option 1 wins, with the solution as $3.69. (And Ned's guess was right.)

Many thanks to Jens for pointing out an error in an earlier version of this answer.


She cannot give more than 4 pennies (otherwise, some of them could be replaced by nickels, reducing the count). She cannot give more than one nickel (otherwise, some of them could be replaced by dimes). She cannot give more than two dimes (otherwise some of them could be replaced by a nickel and a quarter). So far we have 4 pennies, 1 nickel, 2 dimes: the rest must be quarters since they cannot be replaced by anything bigger (she is out of dollar bills/coins). That makes for 13 quarters. The total amount is $3.54.

EDIT: as a comment makes clear, this is wrong: the nickel and two dimes could be replaced by a quarter. So we could either have one nickel and one dime OR two dimes. The coin count is the same in the two cases, but the former reduces the total change: 4 pennies, 1 nickel, 1 dime, 14 quarters = $3.69. That's my final answer :-)

EDIT2: I think this is wrong too: the 4 pennies/4 dimes/12 quarters solution in another answer minimizes the total change with the same number of coins.

EDIT3: There was a subtle error in the answer mentioned in EDIT2 - see the other answer for details. I should have stuck with my final answer :-)