We will show that using only a 7‐liter bottle (“7‐jug”) and an 11‐liter bottle (“11‐jug”) along with an unlimited supply of water (the “bathtub”), it is possible to end up with exactly 2 liters in the 7‐liter jug. (All “pouring” is done until either the source is empty or the target is full. “Filling” a jug means filling it completely from the bathtub; “emptying” means discarding its contents back into the bathtub.)
One acceptable solution is as follows. In what follows the state is written as
( amount in 7‐jug, amount in 11‐jug )
Steps:
-
Fill the 7‐jug.
State: (7, 0)
-
Pour the 7‐jug into the 11‐jug.
The 11‐jug isn’t full, so pour all 7 liters over.
State: (0, 7)
-
Fill the 7‐jug again.
State: (7, 7)
-
Pour from the 7‐jug into the 11‐jug until the 11‐jug is full.
Since the 11‑jug already has 7 liters, it can take 4 more liters. Pour 4 liters, leaving 3 liters behind in the 7‑jug.
State: (3, 11)
-
Empty the 11‐jug.
State: (3, 0)
-
Pour the remaining water from the 7‐jug into the 11‐jug.
State: (0, 3)
-
Fill the 7‐jug.
State: (7, 3)
-
Pour from the 7‐jug into the 11‐jug.
The 11‑jug currently has 3 liters and can take 8 more; pour all 7 liters from the 7‑jug into it.
State: (0, 10)
-
Fill the 7‐jug.
State: (7, 10)
-
Pour from the 7‐jug into the 11‐jug until the 11‐jug is full.
The 11‐jug has 10 liters and needs only 1 liter. Pour 1 liter from the 7‑jug (leaving 6 liters in it).
State: (6, 11)
-
Empty the 11‐jug.
State: (6, 0)
-
Pour the remaining water from the 7‐jug into the 11‐jug.
State: (0, 6)
-
Fill the 7‐jug.
State: (7, 6)
-
Pour from the 7‐jug into the 11‐jug until the 11‐jug is full.
The 11‐jug currently holds 6 liters and needs 5 liters more. Pour 5 liters from the 7‑jug; this leaves exactly 2 liters in the 7‐jug.
State: (2, 11)
Now you have exactly 2 liters in the 7‐liter jug.
Explanation
This solution works by using the 7‑liter jug repeatedly both to “store” water and to subtract amounts when pouring into the 11‑liter jug (which acts as a temporary “measuring cup”). At key moments the remainder left in the 7‑liter jug (after filling the 11‑liter jug) gives you a measured quantity. By carefully sequencing fills, pours, and empties you finally isolate 2 liters.
Any solution that ends with 2 liters in the 7‑liter jug is acceptable. The sequence above is one clear procedure.
Feel free to ask if you’d like additional explanations or an alternative solution!