This is a classic "poisoned wine and test subjects" logic puzzle, and the solution uses binary representation and clever testing with minimal resources.
🔍 Problem Summary:
- 1000 bottles of wine.
- 1 of them is poisoned.
- Poison is undetectable, but it kills exactly 3 weeks after ingestion.
- There are 10 servants available for testing.
- The party is in 1 month, so there's just enough time (4 weeks) to administer tests and see results after 3 weeks.
- Goal: Find the exact poisoned bottle using the fewest deaths (ideally none!), or at least 10 or fewer.
🧠 Strategy: Binary Representation!
Each of the 1000 bottles can be represented by a unique 10-digit binary number, since:
- ( 2^{10} = 1024 ) > 1000, so 10 digits is enough to represent all bottles uniquely.
Example:
- Bottle #1 → 0000000001
- Bottle #2 → 0000000010
- Bottle #900 → 1110000100
- Bottle #1000 → 1111101000
🧪 Step-by-Step Solution:
- Label all bottles from 0 to 999.
- Convert each bottle number into 10-bit binary.
- Assign each servant to one bit position: 1st servant handles the 1st bit, 2nd handles 2nd bit, ..., 10th handles 10th bit.
- For each bottle:
- If the k-th binary digit is 1, then that bottle is given to the k-th servant to drink.
- So, each servant ends up drinking from multiple bottles based on the position of 1's in their assigned bit.
- Wait 3 weeks.
- Check which servants die.
- Create a binary number based on which servants died:
- If a servant dies, it's a 1 in their position.
- If a servant lives, it's a 0.
- Combine these 10 bits into a binary number → this gives the number of the poisoned bottle!
😱 Example:
Let’s say the poisoned bottle is Bottle #837.
- Binary of 837 =
1101000101
- So you give this bottle to:
- Servants: 1st, 3rd, 7th, 9th, and 10th (since bits 1, 3, 7, 9, 10 are '1')
- After 3 weeks:
- Construct binary from which servants died:
- That gives you
1101000101 → Convert to decimal = 837, bam! 🎯
✅ Result:
- You only need one test round.
- You only need to observe which of the 10 servants die.
- You’ll definitely find the poisoned bottle.
- Worst-case scenario: up to 10 servants die.
- Best case: only a few die (depends on the poisoned bottle's binary digits).
🧠 TL;DR:
Use each servant to represent a binary digit of the bottle numbers. Let them drink from bottles based on bit positions. After 3 weeks, the pattern of who dies gives you the binary number of the poisoned bottle.
🎉 The prince gets his party, the poisoned wine is found, and minimal servants are disposed of. A job well done.