How to measure exactly 4 gallon of water from 3 gallon and 5 gallon jars, given, you have unlimited water supply from a running tap.
Step 1. Fill 3 gallon jar with water. ( 5p – 0, 3p – 3)
Step 2. Pour all its water into 5 gallon jar. (5p – 3, 3p – 0)
Step 3. Fill 3 gallon jar again. ( 5p – 3, 3p – 3)
Step 4. Pour its water into 5 gallon jar untill it is full. Now you will have exactly 1 gallon water remaining in 3 gallon jar. (5p – 5, 3p – 1)
Step 5. Empty 5 gallon jar, pour 1 gallon water from 3 gallon jar into it. Now 5 gallon jar has exactly 1 gallon of water. (5p – 1, 3p – 0)
Step 6. Fill 3 gallon jar again and pour all its water into 5 gallon jar, thus 5 gallon jar will have exactly 4 gallon of water. (5p – 4, 3p – 0)
143547
Explanations:
Multiplication of the 1st & 2nd numbers, 5*3 = 15; 9*2 = 18…thusly, 7*2 = 14
Multiplication of the 1st & 3rd numbers, 5*2 = 10; 9*4 = 36…thusly, 7*5 = 35;
Multiplication of the 1st & the sum of the 2nd & 3rd numbers. The generated result is reduced by the value of the 2nd number, …thusly, 7*(2+5) = 49 - 2 = 47