Imagine two kitchen jugs at the sink. One holds 5 litres, the other holds 3 litres. Neither has any lines or marks on the side. Your job sounds impossible: get exactly 4 litres of water. No guessing, no eyeballing. Just filling, emptying, and pouring. It turns out there is a tidy path to the answer, and a lovely reason why it works.
#What you do
Start by filling the big 5 litre jug all the way. Now pour from it into the small 3 litre jug until the small one is full. The small jug swallows 3 litres, so 2 litres are left sitting in the big jug. Empty the small jug down the drain, then tip those 2 litres into it. The small jug now holds 2 litres and has room for 1 more.
Fill the big jug again, right to the top with 5 litres. Pour carefully into the small jug until it is full. It only needs 1 more litre, so it takes just 1 litre from the big jug. And what is left behind in the big jug? Exactly 4 litres. You did it, and you can play it to try the steps yourself.
#What is really happening
Every move you make adds or removes water in chunks of 5 or 3. Fill, and 5 arrives. Empty a full small jug, and 3 leaves. Pour, and you shift a whole amount from one jug to the other. So the numbers you can build are really combinations of 5s and 3s added and taken away. Notice that 5 minus 3 gives 2, and 5 plus 3 gives 8, and with a little mixing you can reach 4 as well.
Here is the deep part. The smallest step you can ever isolate is decided by what 5 and 3 share. The largest number that divides both of them evenly is 1. Because their shared measure is 1, you can reach every whole number from 0 up to 5, and 4 is one of them.
#Where it shows up
Swap the sizes and the rule still holds. Two jugs of 4 and 6 share a common measure of 2, so you can only ever land on even amounts. You could never measure 5 with those two. This same idea, called the greatest common divisor, quietly helps with gears, music timing, and sharing things into fair groups.
#The short version
- Fill 5, pour into 3, and 2 litres are left over.
- Move that 2 across, refill 5, top up the 3, and 4 remains.
- You can only reach amounts built from what both jug sizes share.
- Since 5 and 3 share only 1, every whole number up to 5 is reachable.