Jugs Riddle

Logic Level 3

I have 2 unmarked empty jugs of capacities 2 3 \frac{2}{3} liters and 5 4 \frac{5}{4} liters, as shown below left.

Because they are unmarked, I can only pour water from one jug to another until the initial jug is empty or the other is full. The unwanted water will be wasted into a sink, for there are no other containers.

After some pouring/filling/wasting, I measure exactly 1 liter of water in the bigger jug with the other empty, as shown.

Using the minimum amount of water to obtain the 1 liter, let x x be the number of times an empty jug is filled from the faucet, and let y y be the number of times a full jug is emptied into the sink. What is the value of x + y ? x+y?


The answer is 10.

This section requires Javascript.
You are seeing this because something didn't load right. We suggest you, (a) try refreshing the page, (b) enabling javascript if it is disabled on your browser and, finally, (c) loading the non-javascript version of this page . We're sorry about the hassle.

5 solutions

재환 하
Dec 24, 2017

If 1 12 \frac{1}{12} liters replace 1, 2 3 \frac{2}{3} liter is 8, 5 4 \frac{5}{4} liter is 15, and 1 liter is 12.

step 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20
8( 2 3 \frac{2}{3} liters) 0 0 8 0 7 7 8 0 8 0 6 6 8 0 8 0 5 5 8 0
15( 5 4 \frac{5}{4} liters) 0 15 7 7 0 15 14 14 6 6 0 15 13 13 5 5 0 15 12 12

x = 4 , y = 6 x=4,y=6

This is great!

Jerry McKenzie - 3 years, 5 months ago

Let us take 1/12 L as our unit. Therefore 2/3 L=8 unit. 5/4 L=15 unit and we desire 1 L=12 unit.
Now 2x8 - 15= 1 L, so if possible we can have 15 - 3=12 L. That is 15 -1 - 1 - 1. So there will - {3 2 8 - 3 15)= -3. -3 adding 15 =12.
Thus emptying 8 units 2
3 = 6 times. and filling 15 units 3+1 =4 times, x=6, y=4. x+y=10. Above this is shown in details.
We waisted 4 L to get 1 L.

Niranjan Khanderia - 3 years, 5 months ago

A little python3 script to play https://gist.github.com/franchesoni/09911815ca7b5361d6774bacbcc985fc

Franco Marchesoni - 3 years, 5 months ago

The left cup is most tiny than the right of 1

Derek Cruz - 3 years, 4 months ago

Since these jugs need full transfer and the numbers of fillings or wastings are integers n & m, we can write up equation:

2 n 3 + 5 m 4 = 1 \frac{2n}{3} + \frac{5m}{4} =1

Thus, 8 n + 15 m = 12 8n + 15m =12 .

Since m is an integer, 15 m = 12 8 n = 4 ( 3 2 n ) 15m = 12-8n = 4(3-2n) , then 4 m 4|m . Otherwise, n won't be an integer.

Similarly, we'll obtain 3 n 3|n .

Then we can rewrite the equation for some integers s,t:

24 s + 60 t = 12 24s + 60t = 12

2 s + 5 t = 1 2s+5t =1

The least possible absolute values are s = 2 s=-2 and t = 1 t=1 .

That means n = y = 6 n =y= -6 or 6 wastings and m = x = 4 m=x=4 or 4 fillings.

Therefore, x + y = 10 x+y=\boxed{10} .

Checking answers, ( 2 3 ) ( 6 ) + ( 5 4 ) ( 4 ) = 5 4 = 1 (\frac{2}{3})(-6)+(\frac{5}{4})(4) = 5-4 = 1 .

Another way to look at it is as follows:

In order to fill the 5/4 L jug to a minimum integer number, we will have to fill it up 4 (x) times, totalling 5 L. Remember this jug has to be full.

But it is given that the bigger jug is filled up to 1 L. In other words, 4 L has gone waste. This 4 L was generated from the 2/3 L jug. This means the smaller jug (2/3 L) was emptied 6 (y) times to get the required wasted volume of 4 L.

Adding x + y, we get the desired solution as 10.

We can even look at this problem like this: 5/4 L jug is 1 L + 1/4 L. Given 1 L is filled, 1/4 L went to waste.

As for the 2/3 L jug, emptying it twice, would mean a number greater than 5/4, that is, 4/3 > 5/4.

So the amount wasted would be (4/3 - 5/4) L = 1/12 L

This means 3 times 1/12 would give us the 1/4 L wasted, indicating that the 2/3 L jug was emptied 6 times.

A Former Brilliant Member - 3 years, 5 months ago

Log in to reply

Great thoughts!!

David Richner - 3 years, 5 months ago

These solutions and the required answer ignore a possible action available to the puzzler. It is possible to pour out exactly half of a symmetrical jug by pouring until the water surface touches the corner of the base and the rim of the jug.

Allowing this action you can fill the small jug, (1), waste half of it (2), transfer from the small to the big, fill the small jug (3) and then transfer it to the big jug. The first transfer provides 1/3 litre and the second 2/3 litre, summing to 1 litre.

In this case the answer would be 3.

Garry Slocombe - 3 years, 5 months ago

Log in to reply

My original image has the jugs of irregular shapes, so measuring half volume is ruled out.

Worranat Pakornrat - 3 years, 5 months ago

Nice problem and i want be annoying but if the jugs are transparent as shown in the description it would be practically easier to solve the problem as the theory shows.

Moki Jack - 3 years, 5 months ago
Brian Dearing
Dec 26, 2017

2/3 x + 5/4 y = 1 where each letter represents the number of fills or wastes for each jar.

Looking for an integer set answer of a point (x,y) so that the sum abs(x) + abs(y) = minimum.

The smallest integer pair on a coordinate grid is x = -6 and y = 4 (graph the equation from line 1).

Thus our minimum is 10.

The directions are unfair. There is no way to clarify what is meant by the extremely bizarre answering method. I calculated filling the large jar 4 times, and wasting 48/12ths of a liter or 4 liters, for a total of 8, which is somehow incorrect. The answer does not accurately depict the solution.

Ben Hankinson - 3 years, 5 months ago

Log in to reply

Wasting 48/12ths of water means emptying the 2/3-jar 6 times, not 4 times. So your total becomes 10, not 8.

Ron van den Burg - 3 years, 5 months ago

In the first step we fill the big jug from the faucet ( 5 4 l = 15 12 l ) (\frac54l=\frac{15}{12}l) and pour the water into the small jug until is filled up ( 2 3 l = 8 12 l ) (\frac23l=\frac8{12}l) , and emptied it, and pour the rest of the water from the big jug into the small jug ( 7 12 l ) (\frac7{12}l) ; so, x = 1 , y = 1 x=1, y=1 . In the second step we fill again the big jug from the faucet ( 15 12 l ) (\frac{15}{12}l) and fill up the small jug ( 1 12 l ) (\frac1{12}l) , then it is emptied. In the big jug there remains ( 14 12 l ) (\frac{14}{12}l) . A Part of this amount ( 8 12 l ) (\frac8{12}l) is poured into the small jug, then it is emptied, and pour the water from the big jug into the small one ( 6 12 l ) (\frac6{12}l) . Now x = 2 , y = 3 x=2, y=3 . In the third step we fill again the big jug from the faucet and fill up the small jug ( 2 12 l ) (\frac2{12}l) , then it is emptied. In the big jug there remains ( 13 12 l ) (\frac{13}{12}l) . A Part of this amount ( 8 12 l ) (\frac8{12}l) is poured into the small jug, then it is emptied, and pour the water from the big jug into the small one ( 5 12 l ) (\frac5{12}l) . Now x = 3 , y = 5 x=3, y=5 . In the fourth step we fill again the big jug from the faucet and fill up the small jug ( 3 12 l ) (\frac3{12}l) , then it is emptied. In the big jug there remains ( 12 12 l = 1 l ) (\frac{12}{12}l=1l) . So x = 4 , y = 6 x=4, y=6 , i.e. x + y = 10 x+y=10 .

Meneghin Mauro
Dec 30, 2017

Hello, I ran a simulation in python to find this out, I think the solution is 9, if we don't bother about emptying the last full jug with 2/3 and just use the 1 from the 5/4 jug. Otherwise it's 10

I can’t explain, but got the right answer: 8x + 15y = 12. X = -6, Y = 4. |X| + |Y| = 10. Is this just luck?

Alex Kulczycki - 2 years, 4 months ago

0 pending reports

×

Problem Loading...

Note Loading...

Set Loading...