Word & Logic · Classic Math

Die Hard Jugs: Measure Exactly 4 Liters

Measure exactly 4 liters of water using only an unmarked 5-liter jug, a 3-liter jug, and an unlimited tap.

The Challenge Classic Math

You have an unlimited water tap, an unmarked 5-liter jug, and an unmarked 3-liter jug. How can you measure EXACTLY 4 liters of water in the 5-liter jug in as few pours as possible?

Hint 1: Think modulo arithmetic: pouring 5 liters into a 3-liter jug leaves 2 liters behind.
Hint 2: Once you isolate 2 liters inside the 3-liter jug, how much room remains in it when you fill the 5-liter jug again?
Full Solution: (1) Fill the 5L jug. (2) Pour into 3L jug, leaving 2L in the 5L jug. (3) Empty the 3L jug. (4) Pour those 2L into the 3L jug. (5) Fill the 5L jug completely. (6) Pour from 5L into 3L until full (takes 1L)—leaving exactly 4 liters in the 5L jug!
Advertisement

Why This Puzzle Matters: Intuition vs. Proof

Immortalized on screen in Die Hard with a Vengeance (1995) and analyzed centuries earlier by French mathematician Siméon Denis Poisson, jug-pouring puzzles are physical embodiments of Bézout's identity: because gcd(5, 3) = 1, any integer liter count between 1 and 5 is reachable!

Takeaway Pattern for Similar Teasers

Pause before calculating blindly when reading paradoxes like Die Hard Jugs: Measure Exactly 4 Liters. Check hidden invariants, information asymmetries, and edge boundaries—the exact habits that turn tough riddles into clear insights.