Skip to main content
OlympiadHQ

Browse · MathNet

Print

XX OBM

Brazil counting and probability

Problem

Two mathematicians, lost in Berlin, arrived on the corner of Barbarossa street with Martin Luther street and need to arrive on the corner of Meininger street with Martin Luther street. Unfortunately they don't know which direction to go along Martin Luther Street to reach Meininger Street nor how far it is, so they must go forwards and backwards along Martin Luther street until they arrive at their destination. What is the smallest value for a positive integer so that they can be sure that if there are blocks between Barbarossa street and Meininger street then they can arrive at their destination by walking no more than blocks (no matter what turns out to be)? The mathematicians always walk together.
Solution
Since the mathematicians didn't know which side and at what distance their destination was, they should adopt the following strategy: walk blocks on one side (say, left), then go back to the starting point and walk blocks to the right, then go back again and walk blocks to the left, and so on, with and until they find their destination. The worst cases happen when the destination is blocks to the left or blocks to the right. In these cases, there are blocks between the starting point and the destination and the mathematicians walk a total of blocks until they reach their destination. So or for all naturals , where . For there are strategies satisfying the conditions of the problem: for example, consider . Notice that for all naturals . Now we prove that cannot be less than 9. If then . Since we have for all naturals . Let so that . Since , for all and if for , for all and , from which for all . On the other hand, for all we have for and so for all , a contradiction because the right hand side is negative for .
Final answer
9

Techniques

AlgorithmsGames / greedy algorithmsCombinatorial optimizationRecurrence relations