A number from its remainders, step by step

A number leaves 2 when divided by 3, 3 when divided by 5, and 2 when divided by 7.

The question

What is the smallest number of marbles there could be?

Climb one list until it fits the others

÷5leaves1
÷8leaves4
1611162126
1611162136
36
  1. Nothing is given but leftovers: divided by 5 it leaves 1 and divided by 8 it leaves 4. No single one of those picks out a number, and together they pick out exactly one small one.
  2. Take the conditions one at a time, starting with the first. The numbers that leave 1 when divided by 5 are 1, 6, 11, 16, 21, 26 and so on — they go up in 5s, because adding 5 cannot change what a division by 5 leaves over.
  3. Now walk up that list in 5s until one of them also leaves 4 when divided by 8: 1, 6, 11, 16, … do not, and 36 does.
  4. So the smallest is 36 marbles. Check it against every condition rather than the last one: 5 × 7 = 35, leaving 1 and 8 × 4 = 32, leaving 4.

How it works.

  1. 01

    Nothing is given but leftovers: divided by 5 it leaves 1 and divided by 8 it leaves 4. No single one of those picks out a number, and together they pick out exactly one small one.

  2. 02

    Take the conditions one at a time, starting with the first. The numbers that leave 1 when divided by 5 are 1, 6, 11, 16, 21, 26 and so on — they go up in 5s, because adding 5 cannot change what a division by 5 leaves over.

  3. 03

    Now walk up that list in 5s until one of them also leaves 4 when divided by 8: 1, 6, 11, 16, … do not, and 36 does.

  4. 04

    So the smallest is 36 marbles. Check it against every condition rather than the last one: 5 × 7 = 35, leaving 1 and 8 × 4 = 32, leaving 4.