A king has 1000 bottles of wine and one has been poisoned. Even a sip of the poisoned wine is enough to kill a person.
The king asks the royal jailor to identify the poisoned wine bottle by testing them on the prisoners.
It takes up to 24 hours for the poison to take effect. There are unlimited number of prisoners at the jailer’s disposal. What is the minimum number of prisoners the jailer needs to identify the poisoned wine bottle in 24 hours?
Answers
Binary Maths is needed to solve this puzzle. Below is an example on how you use binary logic to find the number of prisoners for 8 bottles of wine.

Assume the wine bottles are named W1, W2, W3…W8. The prisoners are named P1, P2 and P3.
The above chart summarises which prisoner has to drink from which wine bottle. ‘1’ indicates that the prisoner has to drink from that bottle. Bottle W1 is not fed to any prisoner. Bottle W2 is fed to prisoner P3. Bottle W3 is fed to prisoner P2 and so on.
If no one dies, then wine bottle W1 is poisoned.
If only prisoner P3 dies, bottle W2 is poisoned.
If only prisoner P2 dies, bottle W3 is poisoned.
If both prisoners P2 and P3 die, bottle W4 is poisoned.
If only prisoner P1 dies, bottle W5 is poisoned.
If both prisoners P1 and P3 die, bottle W6 is poisoned.
If both prisoners P1 and P2 die, bottle W7 is poisoned.
If all 3 prisoners die, bottle W8 is poisoned.
So to test 1000 bottles of wine, 10 prisoners are sufficient as that will allow (2^10) 1024 unique combinations.

Answer:
Think in terms of binary numbers. (now don’t read the solution, give a try).
Number the bottles 1 to 1000 and write the number in binary format.
bottle 1 = 0000000001 (10 digit binary)
bottle 2 = 0000000010
bottle 500 = 0111110100
bottle 1000 = 1111101000
Now take 10 prisoners and number them 1 to 10, now let prisoner 1 take a sip from every bottle that has a 1 in its least significant bit. Let prisoner 10 take a sip from every bottle with a 1 in its most significant bit. etc.
prisoner = 10 9 8 7 6 5 4 3 2 1
bottle 924 = 1 1 1 0 0 1 1 1 0 0
For instance, bottle no. 924 would be sipped by 10,9,8,5,4 and 3. That way if bottle no. 924 was the poisoned one, only those prisoners would die.
For instance, bottle no. 924 would be sipped by 10,9,8,5,4 and 3. That way if bottle no. 924 was the poisoned one, only those prisoners would die.After four weeks, line the prisoners up in their bit order and read each living prisoner as a 0 bit and each dead prisoner as a 1 bit. The number that you get is the bottle of wine that was poisoned.
1000 is less than 1024 (2^10). If there were 1024 or more bottles of wine it would take more than 10 prisoners.
- hope it helps you...
- please mark it as a brainlist answer...
- also please rate thanks and follow me...
- stay home STAY SAFE...