Tag Archives: modular arithmetic

The Barrel of Beer

This is a great puzzle by H. E. Dudeney involving a very useful technique.

“A man bought an odd lot of wine in barrels and one barrel containing beer. These are shown in the illustration, marked with the number of gallons that each barrel contained. He sold a quantity of the wine to one man and twice the quantity to another, but kept the beer to himself. The puzzle is to point out which barrel contains beer. Can you say which one it is? Of course, the man sold the barrels just as he bought them, without manipulating in any way the contents.”

Answer.

See the Barrel of Beer for an answer.