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
Unbiasing a Biased Coin
You and a friend need to settle a dispute with a coin toss, but the only coin available is one you’re certain is biased — it lands heads more often than tails....
Complex Number Multiplication
Consider computing the product of two complex numbers (a + bi) and (c + di) . Using the standard method we learned in school, we get: [Math: (a + bi)(c + di) =...
Planting Trees 2
A few weeks after your first job, the mathematics professor calls you back. She was so pleased with your creative solution to the four-tree problem that she...