If you had an infinite supply of water and a 5 quart and 3 quart pails, how would you measure exactly 4 quarts? and What is the least number of steps you need?

1. Fill 5 quarter pill ( 5p - 5, 3p - 0)
2. Transfer to 3 quart pail (5p - 2, 3p - 3)
3. Empty 3 quarter pill ( 5p - 2, 3p - 0)
4. Transfer 2q from 5 pail to 3 pail (5p - 0, 3p - 2)
5. Fill 5 quarter pail(5p - 5, 3p - 2)
6. Transfer 1q from 5 pail to 3 pail(5p - 4, 3p - 3)

Discussion