Poisoned Wine (Extension)
Previous puzzle in this series
Before the king gets to administer the bottles of wine to the prisoners, an advisor stops him. He says that if more than 8 prisoners die, the townspeople might get angry and revolt. How can the king administer the wine so that no more than 8 prisoners die?
Hint
You still need 10 prisoners. Look at the binary representations that would cause 9 or 10 prisoners to die.
Solution
Answer: Relabel certain bottles to avoid binary numbers with 9 or 10 ones.
From the previous puzzle, we know that a minimum of 10 prisoners are needed to find the poisoned bottle. But let’s notice the following 10-digit binary numbers.
0111111111210111111112110111111121110111111211110111112111110111121111110111211111110112111111110121111111110211111111112=511=767=895=959=991=1007=1015=1019=1021=1022=1023These are the only bottles of wine that are fed to 9 or 10 prisoners: 10 of these numbers would require that the corresponding bottle be administered to 9 prisoners, and 1 number requires all 10 prisoners.
Only 5 of our bottles (511, 767, 895, 959, and 991) are affected by this, so we can relabel them to another number that doesn’t break our new rule. A simple relabelling would be:
511 → 1001 (1111101001)
767 → 1002 (1111101010)
895 → 1003 (1111101011)
959 → 1004 (1111101100)
991 → 1005 (1111101101)
With this new strategy, the king can find the poisoned bottle, with at most 8 prisoners dying.
Try These Next
Counting Towns from a Tower
The evil king, no longer trusting his 2 wise men, wants to test their wisdom, so he locks them in a tall tower in the middle of his kingdom. One wise man is...
Chain Link 2
An apprentice is working for you, the village’s master blacksmith, for 21 days. For payment, you have agreed to give him a gold chain with 21 links, one link...
Guessing Hats 1
Angry with his three wise men, the evil king subjects them to an impossible task: they’ll have to guess the colour of the hats on their heads. If any one of...