A bottle holds 20 litres of water. A jug holds 5 litres and a mug holds 1 litre. What is the minimum number of containers (jugs and mugs) required to fill the bottle exactly? Give the numbers of jugs and mugs in that minimum configuration.
Answer
4 containers: 4 jugs and 0 mugs
The correct answer is 4 containers: 4 jugs and 0 mugs — Any other choice of gives a larger value of (for example would require giving 8 containers). Hence 4 is minimal.
Step-by-step solution
- Let be the number of jugs and the number of mugs. The equation for the total volume is .
- Since a jug gives 5 litres, using as many jugs as possible will reduce the total number of containers. The greatest integer with is .
- With we have litres, so .
- The total number of containers is .
- Any other choice of gives a larger value of (for example would require giving 8 containers). Hence 4 is minimal.
Common mistake: Assuming more mugs are always needed instead of maximizing the use of jugs
Concept tested: Diophantine equations
Published · How this solution was prepared and checked
← All Jugs and Mugs questions