🔴 Riddle #78 of 240
You have a 6-litre jug and a 10-litre jug, unmarked, plus a tap and a drain. (a) Why can you never measure exactly 5 litres? (b) Measure exactly 8 litres.
Think about it first. When you're ready:
(a) only even amounts; (b) six moves
(a) Every fill, empty or pour keeps amounts multiples of gcd(6,10) = 2, so 5 is impossible; (b) fill 10, pour into 6, empty 6, pour the 4 across, fill 10 and top up 6, leaving 8 in the 10-litre jug in 6 moves (breadth-first search confirms the minimum).