Skip to content
Matheminate
TopicsProgressWorksheetsGamesLabToolsAbout
Home/OlympiadMath Olympiad Practice/The Postage Gap
Number TheoryBeginner

The Postage Gap

Skill: checking small cases, then proving a pattern holds forever

Problem

A post office sells 3-cent stamps and 5-cent stamps. You may use as many of each as you like.

Some totals you can make exactly: 8 cents is one 3-cent and one 5-cent stamp. Some totals you cannot: 1 cent is impossible.

What is the largest amount of postage you cannot make exactly?

Hints

Hint 1

Start from 1 cent and work upward. Write down every amount you can actually make, in order, and look for the gaps.

Hint 2

You can make 8, 9, and 10. What happens if you add one more 3-cent stamp to each of those three amounts?

Hint 3

If you can make three amounts in a row, and you can always add 3, then everything above that run is reachable. So the answer is the last gap below that run.

Solution

  1. 1

    Make the small amounts by hand.

    Build totals from the bottom and write down the ones that work. With 3s and 5s you can make 3, 5, 6 (3+3), 8 (3+5), 9 (3+3+3), 10 (5+5), 11 (3+3+5), 12 (four 3s) and 13 (3+5+5). Put them in order and the missing amounts stand out: 1, 2, 4 and 7.

  2. 2

    Check that the gaps are really impossible.

    Every total has to be 3a + 5b for some whole numbers a and b. The smallest stamp is 3, so 1 and 2 cannot be built at all. For 4, one 3 leaves 1, which no stamp fills, and a 5 is already too large. For 7, one 5 leaves 2, which cannot be made; with no 5, 7 is not a multiple of 3; and two 5s are too many. So all four gaps are genuine, not just missing from a short list.

  3. 3

    Find three amounts in a row.

    8, 9 and 10 are all reachable. This is the turning point. Adding one more 3-cent stamp to each gives 11, 12 and 13. Adding another gives 14, 15 and 16. Every block of three consecutive totals pushes the reachable run further up, so the gaps can never return once a run of three is established.

  4. 4

    Turn the pattern into a proof.

    Take any amount n from 8 upward. Among n−8, n−9 and n−10 exactly one is a multiple of 3, because those three numbers are consecutive. That particular one is never negative: the smallest case in each remainder class is 8, 9 or 10, where the multiple of 3 is 0. If n−8 = 3k then n = 3(k+1) + 5. If n−9 = 3k then n = 3(k+3). If n−10 = 3k then n = 3k + 5 + 5. Each case builds n from 3s and 5s, so every amount from 8 upward is reachable.

  5. 5

    Try a large amount to see the proof work.

    For 100, subtract 10 to leave 90, which is thirty 3s, so 100 is thirty 3s plus two 5s. For 101, subtract 8 to leave 93, which is thirty-one 3s; the 8 that was taken away is one 3 plus one 5, so 101 is thirty-two 3s plus one 5. The argument does not guess from a pattern; it produces the stamps for any total you name.

Answer: 7 cents.

Why this works

A run of three consecutive reachable amounts is enough because the smallest stamp is 3. Add that stamp to each of the three and the next three are covered, then the next three after that. The proof only has to get the run started.

This is the two-stamp version of the Frobenius problem. For stamp sizes a and b with no common factor, the largest amount that cannot be made is ab − a − b. Here that is 15 − 3 − 5 = 7. The formula is a shortcut; the three-in-a-row argument is the reason it is true.

Try a related problem

The same shop now sells 4-cent and 7-cent stamps. What is the largest amount you cannot make?

17 cents. Start with four consecutive totals: 18 = 4 + 7 + 7, 19 = 4 + 4 + 4 + 7, 20 = five 4s, and 21 = three 7s. Four in a row is what this problem needs, because adding 4 to each covers the next four amounts, and so on upward. Below that, 17 fails: with one 7 the remainder is 10, which is not a multiple of 4; with two 7s the remainder is 3; and 4s alone leave a remainder of 1. The two-stamp formula agrees: 4 × 7 − 4 − 7 = 17.

← All Olympiad problems

Matheminate

Free math practice for Grades 4–12.

© 2026 Matheminate. All rights reserved.

Practice

  • Topics
  • Interactive Lab
  • Math Articles
  • Olympiad Practice

Site

  • About
  • Contact
  • Support
  • Privacy
  • Terms

Follow

  • Instagram
  • X