How many different ways can a bottle that holds 25 liters be filled exactly using jugs that hold 5 liters and mugs that hold 3 liters?
Answer
2
The correct answer is 2 — Thus there are two valid combinations: and .
Step-by-step solution
- Let the number of jugs be and mugs be . The equation is .
- Test integer values of from 0 to 5.
- gives not integer.
- gives not integer.
- gives , valid.
- gives not integer.
- gives not integer.
- gives , valid.
- Thus there are two valid combinations: and .
Common mistake: Missing a valid combination by stopping early
Concept tested: Linear Diophantine equations
Published · How this solution was prepared and checked
← All Jugs and Mugs questions