Acertijos de Mileto42 a riddle every day · the solution, the next day Versión en español

2026-11-15 · Logic / Math

Coins of Four and Seven

In the land of Quadria, only two kinds of coin are in circulation: a 4-cent coin and a 7-cent coin. There are as many coins of each kind as anyone could need, and no other denominations exist.

A shopkeeper accepts only exact payments: no change is given, and nobody is allowed to owe anything. All prices are a whole number of cents.

What is the highest price that CANNOT be paid exactly with these coins?

See solution

The highest price that cannot be paid is 17 cents.

To see that 17 is impossible, try each possible number of 7-cent coins: with none, 17 is not a multiple of 4; with one, 10 remains, which is not a multiple of 4; with two, 3 remains, which isn't either. Three 7-cent coins would already exceed 17.

To see that every price from 18 upward can be paid, it is enough to check four consecutive prices: 18 = 4 + 7 + 7, 19 = 4 + 4 + 4 + 7, 20 = 4 × 5, and 21 = 7 × 3. Any larger price is reached by adding 4-cent coins to one of these four, since adding 4 repeatedly cycles through all possible remainders when dividing by 4. Hence 17 is the largest price that cannot be paid.