Explanation
A 5 L jug, a 3 L jug, a tap
You have a five-litre jug, a three-litre jug and a tap. No markings on the jugs.
Can you measure exactly four litres?
A 5 L jug, a 3 L jug, a tap. Target: exactly 4 L
Three moves
You're only allowed three moves. Fill a jug to the top.
Empty a jug. Or pour from one into the other until the first is empty or the second is full.
Three moves: fill · empty · pour until one is full or empty
(5, 0)
Write every step as a pair: five-litre jug, three-litre jug. Fill the five: five, zero.
Pour into the three: two, three. Empty the three: two, zero.
Pour the two across: zero, two.
(5, 0) → (2, 3) → (2, 0) → (0, 2)
(5, 2)
Fill the five again: five, two. Pour into the three until it's full; it only takes one litre.
Four, three. Four litres in the big jug.
Six moves.
(5, 2) → (4, 3) ✓
Possible amounts = multiples of the HCF of the…
Can you always do it? Only for multiples of the highest common factor of the two sizes.
Three and five share one, so any whole number up to five works. Four and six share two, so you can never get three.
Possible amounts = multiples of the HCF of the two sizes
Worked example
Share 8 litres equally using full 8 L, empty 5 L and empty 3 L jugs, as (8 L, 5 L, 3 L): (8,0,0) → (3,5,0) → (3,2,3) → (6,2,0) → (6,0,2) → (1,5,2) → (1,4,3) → (4,4,0). Seven pours.