What the topic is about
Pouring puzzles: there are jugs of different sizes and a tap (or one full jug and no tap), and you must measure out an exact amount of water. The question is the smallest number of steps.
Where it leads
Pouring puzzles teach planning: finding a sequence of steps that leads to a goal. It is the same thinking as in programming (an algorithm) and chess. Mathematically they hide the GCD and divisibility: only amounts that are multiples of the GCD of the jugs can be measured.
How to solve
- Write each state as a pair of numbers, the litres in each jug, for example (0; 5) → (3; 2).
- There are three kinds of step: fill a jug from the tap to the top, empty it, or pour from one jug into the other until one is empty or the other is full.
- Try both ways: start with the small jug and start with the big one, and count the steps.
A worked example
There is a tap and two empty jugs: 8 l and 13 l. Filling a jug from the tap to the top, emptying a jug or pouring from one jug into the other is one step. What is the smallest number of steps to get exactly 10 l in one of the jugs?
Answer: 6
- Write down how many litres are in the jugs (8 l, 13 l) after each step:
- (0, 0) → (0, 13) → (8, 5) → (0, 5) → (5, 0) → (5, 13) → (8, 10)
- Steps: 6. It cannot be done faster: fewer steps never give that amount.
Typical mistakes
- Pouring "about half" of the water: you always pour as far as it goes.
- Forgetting to count the last step.
How to tell it is learnt
- Writes the solution as a table of steps.
- Looks for the shortest way, not just any way.
- Can explain why some amounts cannot be measured.
How to help at home
Take two cups of different sizes in the kitchen and try to measure out the amount for real.
A game without a phone
Take two cups or jars of different sizes and try to measure out an exact amount of water in the kitchen. For example, with a 5-litre pot and a 3-litre jar, measure exactly 4 litres. Write the steps in a table: how much water is in each one after every step. Then look for a shorter way.
There is a tap and two empty jugs: 2 l and 3 l. Filling a jug from the tap to the top, emptying a jug or pouring from one jug into the other is one step. What is the smallest number of steps to get exactly 1 l in one of the jugs?
Answer
2
- Write down how many litres are in the jugs (2 l, 3 l) after each step:
- (0, 0) → (0, 3) → (2, 1)
- Steps: 2. It cannot be done faster: fewer steps never give that amount.
There is a tap and two empty jugs: 7 l and 9 l. Filling a jug from the tap to the top, emptying a jug or pouring from one jug into the other is one step. What is the smallest number of steps to get exactly 5 l in one of the jugs?
Answer
4
- Write down how many litres are in the jugs (7 l, 9 l) after each step:
- (0, 0) → (7, 0) → (0, 7) → (7, 7) → (5, 9)
- Steps: 4. It cannot be done faster: fewer steps never give that amount.
There is a tap and two empty jugs: 8 l and 13 l. Filling a jug from the tap to the top, emptying a jug or pouring from one jug into the other is one step. What is the smallest number of steps to get exactly 2 l in one of the jugs?
Answer
8
- Write down how many litres are in the jugs (8 l, 13 l) after each step:
- (0, 0) → (0, 13) → (8, 5) → (0, 5) → (5, 0) → (5, 13) → (8, 10) → (0, 10) → (8, 2)
- Steps: 8. It cannot be done faster: fewer steps never give that amount.
There is a tap and two empty jugs: 7 l and 11 l. Filling a jug from the tap to the top, emptying a jug or pouring from one jug into the other is one step. What is the smallest number of steps to get exactly 8 l in one of the jugs?
Answer
6
- Write down how many litres are in the jugs (7 l, 11 l) after each step:
- (0, 0) → (0, 11) → (7, 4) → (0, 4) → (4, 0) → (4, 11) → (7, 8)
- Steps: 6. It cannot be done faster: fewer steps never give that amount.
Jug 14 l is full of water, jugs 7 l and 5 l are empty. There is no tap and no water is poured away: you can only pour from one jug into another until the first is empty or the other is full. What is the smallest number of pourings to get exactly 4 l in one of the jugs?
Answer
3
- Write down how many litres are in the jugs (14 l, 7 l, 5 l) after each step:
- (14, 0, 0) → (9, 0, 5) → (9, 5, 0) → (4, 5, 5)
- Steps: 3. It cannot be done faster: fewer steps never give that amount.
There is a tap and two empty jugs: 15 l and 16 l. Filling a jug from the tap to the top, emptying a jug or pouring from one jug into the other is one step. What is the smallest number of steps to get exactly 3 l in one of the jugs?
Answer
10
- Write down how many litres are in the jugs (15 l, 16 l) after each step:
- (0, 0) → (0, 16) → (15, 1) → (0, 1) → (1, 0) → (1, 16) → (15, 2) → (0, 2) → (2, 0) → (2, 16) → (15, 3)
- Steps: 10. It cannot be done faster: fewer steps never give that amount.