Puzzle 5 | (Finding the poisoned wine)
You have 240 barrels of wine, one of which has been poisoned. After drinking the poisoned wine, one dies exactly 24 hours. You have 5 slaves whom you are willing to sacrifice in order to determine which barrel contains the poisoned wine. How do you achieve this in 48 hours?
Let us number the barrels with 5 digit numbers consisting of 0, 1 and 2. Let us number the slaves as 1, 10, 100, 1000, 10000.
Number 0 on a barrel represents the wine in the barrel will not be taken by the slave.
Number 1 on a barrel represents the wine in the barrel will taken by the slave on 1st day.
Number 2 on a barrel represents the wine in the barrel will be taken by the slave on 2nd day(after 24 hours).
The action corresponding to the digit in the unit place will be executed by slave numbered 1.
The action corresponding to the digit in the tenth place will be executed by slave numbered 10.
The action corresponding to the digit in the 100th place will be executed by slave numbered 100.
The action corresponding to the digit in the 1000th place will be executed by slave numbered 1000.
The action corresponding to the digit in the 10000th place will be executed by slave numbered 10000.
Example: Let us say the barrel is numbered 11201. The wine in this barrel is taken on the first day by the slave numbered 10000, 1000 and 1. It is taken on the second day by slave numbered 100. And it is not taken by the slave numbered 10.
So if the slave numbered 10000, 1000 and 1 die within first 24 hours, slave numbered 100 dies in the next 24 hours and the slave numbered 10 does not die, then the poisoned barrel has to be 11201.
This way total number possible is 3 * 3 * 3 * 3 * 3 = 3^5 = 243 barrels!! So with the help of 5 slaves and within 48 hours we will be able to find a poisoned barrel among 243 barrels.
Source: https://www.geeksforgeeks.org/forums/topic/finding-the-poisoned-wine/
Please write comments if you find anything incorrect, or you want to share more information about the topic discussed above
Recommended Posts:
- Puzzle 1 | (How to Measure 45 minutes using two identical wires?)
- Puzzle 2 | (Find ages of daughters)
- Puzzle 3 | (Calculate total distance travelled by bee)
- Puzzle 4 | (Pay an employee using a 7 units gold rod?)
- Puzzle 13 | (100 Prisoners with Red/Black Hats)
- Puzzle 6 | (Monty Hall problem)
- Puzzle 7 | (3 Bulbs and 3 Switches)
- Puzzle 8 | (Find the Jar with contaminated pills)
- Puzzle 9 | (Find the fastest 3 horses)
- Puzzle 10 | (A Man with Medical Condition and 2 Pills)
- Puzzle 11 | (1000 Coins and 10 Bags)
- Puzzle 12 | (Maximize probability of White Ball)
- Puzzle 14 | (Strategy for a 2 Player Coin Game)
- Puzzle 15 | (Camel and Banana Puzzle)
- Puzzle 17 | (Ratio of Boys and Girls in a Country where people want only boys)
Improved By : SHREYAS6652