The Great Elephant Race
Problem
There are 900 elephants in a race. Bob and Charlie know which elephants are in 1st and 2nd place.
You are allowed to ask Bob a question about the race that he will respond to with a number from 1 to . After that Charlie will give you the number of either the 1st or 2nd place elephant.
You have to use Bob's answer to determine whether Charlie's number is the 1st or 2nd place elephant.
What is the lowest upper bound of Bob can give you so that you can determine if the elephant Charlie gave you finished in 1st or 2nd?
Clarifications
Can you ask Bob which elephant got first place?
Yes, if you ask Bob who got first place, you can use his answer to determine whether the elephant Charlie gives placed 1st or 2nd. However the upper bound for in this case is 900 (there are better answers).
Can Bob answer with fractions or decimals?
No, he must either answer with whole numbers or have the ability to map his possible answers to whole numbers.
Can you ask Bob multiple questions?
You can make the question you ask Bob as long as you want. However, Bob is only allowed to answer with a single number. You are allowed to make each digit depend on a sub-question, but then the lowest upper bound would be the range of possibilities that Bob would answer with.
For example, you could ask Bob 2 yes or no questions and have him answer with a 2 digit number (1 digit per question) where 1 means yes and 2 means no. Since there would be 4 possible answers Bob could give (11,12,21,22), the upper bound for would be 4.
This Sounds Like a Math Problem?
What problem isn't a math problem! Here's a version of the riddle formatted as a math question:
- Let = The set of answers Bob can give
- Let = The set of unique elephants in the race
- Let be the set of questions you can ask Bob where:
- if elephants and can be distinguished using Bob's answer
- otherwise
Find the minimum possible such that:
Solution
Read my writeup or send me an email at [email protected]!