Cut the knot: learn to enjoy mathematics
A math books store at a unique math study site. Learn to enjoy mathematics.
Google
Web CTK
Best sites for teachers
Sites for teachers
Sites for parents
Terms of use
Awards

Interactive Activities
CTK Exchange
CTK Insights - a blog

Games & Puzzles
What Is What
Arithmetic/Algebra
Geometry
Probability
Outline Mathematics
Make an Identity
Book Reviews
Eye Opener
Analog Gadgets
Inventor's Paradox
Did you know?...
Proofs
Math as Language
Things Impossible
Visual Illusions
My Logo
Math Poll
Cut The Knot!
MSET99 Talk
Other Math sites
Front Page
Movie shortcuts
Personal info
Reciprocal links
Privacy Policy

Guest book
News sites

Recommend this site

Best sites for teachers
Sites for teachers
Sites for parents

Education & Parenting

Manifesto: what CTK is about Search CTK Buying a book is a commitment to learning Table of content Things you can find on CTK Chronology of updates Email to Cut The Knot Recommend this page

2 Pails Puzzle

A farm hand was sent to a nearby pond to fetch 8 gallons of water. He was given two pails - one 11, the other 6 gallons. How can he measure the requested amount of water?

(Two containers and a pond are depicted in the right-hand side of the applet. To pour water, first click on the "source" and then on the "receiver" object.

The grid in the left-hand side of the applet is to help you solve the problem. A = 11 and B = 6. Every possible distribution of water in the two pails is described by a grid point (x, y), where x stands for the quantity of water in the first pail, y that in the second.)

alt="Your browser understands the <APPLET> tag but isn't running the applet, for some reason." Your browser is completely ignoring the <APPLET> tag!

This applet requires Sun's Java VM 2 which your browser may perceive as a popup. Which it is not. If you want to see the applet work, visit Sun's website at http://www.java.com/en/download/index.jsp, download and install Java VM and enjoy the applet.


  1. 3 Glasses Puzzle: Experimental Mathematics
  2. Puzzle Investigation
  3. Application of Graph Theory
  4. The puzzle in barycentric coordinates
  5. Three Jugs Problem.
  6. Two Pails Puzzle.

Copyright © 1996-2008 Alexander Bogomolny

 

 

 

 

 

 

 

 

 

 

 

 

 

This puzzle is no different from the 3 Jugs Problem. Indeed, the problem with two containers of capacities 11 and 6 is the same as the problem with 3 containers of capacities 11, 6, and 17 ( = 11 + 6). Which shows that, to solve our original problem all we need is 17 gallons of water. Of course having a pond - thought of as an unlimited source and also as a bottomless receiver of water - is a convenience in practical terms, but is irrelevant to solving the puzzle.

From the analysis of the 3 Jugs Problem, we already know that the more general problem with integer capacities A and B always has a solution iff A and B are mutually prime.

However the argument there made a heavy use of the third quantity C - capacity of the third container. This is not necessary as we may directly work in Cartesian coordinates, instead of the barycentrics. Let A > B be mutually prime. As the basic step we consider pouring from the pond to B and from B to A. Sooner or later, A will become full, at which stage we apply the secondary step by emptying A into the pond and pouring the content of B into A. The secondary step is applied only when A becomes full. If A = qB + r, then the first time this happens container B will be left with (B - r) units of water. Completing the basic step followed by one secondary step, we get (B - r) gallons in the first container with the second one empty. In coordinates: (B - r, 0). It's a great convenience to consider each coordinate modulo A. Using arithmetic modulo A, we conclude that every sequence of basic steps that fills up the first container, followed by one secondary step, changes the pair (x, 0) by a vector (B - r, 0). Several such sequences will produce pairs (B - r, 0), (2(B - r), 0), (3(B - r), 0), and so on. Since B - r = (q + 1)B - A, and B and A are assumed to be mutually prime, so are A and B - r, and the sequence of the first coordinates becomes

(B - r) (mod A), 2(B - r) (mod A), 3(B-r) (mod A), ...

which, as we know, fills the entire set {0, 1, 2, ..., A-1}.

In addition, once a quantity from the set {0, 1, 2, ..., A-1} is secured in container A, we may fill container B to deliver any quantity of water that does not exceed A + B. (A + B is obtained in a trivial manner by just fillng both containers.)

  1. 3 Glasses Problem
  2. Puzzle Investigation
  3. Application of Graph Theory
  4. The puzzle in barycentric coordinates
  5. Three Jugs Problem.
  6. Two Pails Puzzle.

Copyright © 1996-2008 Alexander Bogomolny

28739302Page copy protected against web site content infringement by Copyscape


Search:
Keywords:


Latest on CTK Exchange
Math
Posted by Laura
2 messages
06:56 AM, Apr-15-08

Divisibility rules - Jargon buste ...
Posted by Carolyn
2 messages
08:35 AM, Apr-04-08

drawing puzzle
Posted by martin gran
31 messages
06:53 PM, May-09-08

conway's game of life
Posted by frequency
0 messages
11:52 PM, May-12-08

Mistake on the page (an aside, Be ...
Posted by Max
4 messages
10:28 AM, Feb-28-08

Deriving functions based on diffe ...
Posted by ke_45
1 messages
12:47 PM, May-10-08

Josephus Flavius (correction)
Posted by David Turner
1 messages
09:42 AM, May-14-08