Problem #WSP-5597

Problems Mathematical logic

Problem

You have a \(5\)-liter bucket and a \(3\)-liter bucket, along with an unlimited supply of water.

You are allowed to do only these moves:

  • fill a bucket completely from the water supply,

  • empty a bucket completely,

  • pour water from one bucket into the other until either the first bucket is empty or the second bucket is full.

Find two different ways to end up with exactly \(4\) liters of water (Adding extra steps that don’t change the situation, like filling a bucket and then immediately emptying it again, does not count as finding a new way).