Suppose A has two unmarked containers, one holds 19 liters and the other holds 51 liters. Explain how A can use his two containers to measure exactly one liter?
This is the problem.
I use gcd(19,51)=1 to back trace it. Then I get 3 * 51 - 8 *19 = 1.
But if I have only this two containers, is there any way to get exactly 1 litre. That means I cannot use other containers.
Thank you in advance.