Tuesday, September 15, 2009

Cointainers again

You have a 37-pint container full of a refreshing drink. N thirsty customers
arrive, one having an 11-pint container and another having a 2Npint
container. How will you most efficiently measure out 1 pint of drink
for each customer to drink in turn and end up with N pints in the 11-pint
container and 37-2N pints in the 37-pint container if
(a) N = 3;
(b) N = 5?

No comments: