Browse · MathNet
Print75th Romanian Mathematical Olympiad
Romania counting and probability
Problem
Let be a positive integer. On a board, we initially have two numbers: a red and a blue . We define the following procedure:
At each step, a natural number is chosen (not necessarily distinct from previous choices). Let be the blue number and the red number. Replace them with: and color the new values blue and red, respectively. This process continues until the blue number is at least . Determine the minimum possible value of the red number at the end of the process.
At each step, a natural number is chosen (not necessarily distinct from previous choices). Let be the blue number and the red number. Replace them with: and color the new values blue and red, respectively. This process continues until the blue number is at least . Determine the minimum possible value of the red number at the end of the process.
Solution
Let denote the move that increases the blue number by and the red number by . We show that for any , the move can be replaced by moves involving only and in such a way that the total increase in the blue number is the same, but the red number increases by less than .
Case 1: is odd. Then increases the blue number by and the red number by . Instead, moves of type increase the blue number also by , but the red number increases by . Since , for all , we can replace with moves of .
Case 2: is even. Then increases the blue number by , and the red number by . Alternatively, moves of and one move of increase the blue number by and the red number by . Since , for all , we conclude that can be replaced by moves of and one . Moreover, observe that two moves of can be replaced by one move of , with a smaller increase in the red number: instead of .
Thus, using only and , and minimizing the use of , yields the minimal red number. To make the blue number at least , the best strategy is to use only moves of type (which increase blue by and red by ), plus at most one (if needed).
If is even: we can use moves of , increasing red by .
If is odd: we can use moves of and one move of , leading to red increasing by .
Hence, the minimal possible value of the red number is .
Case 1: is odd. Then increases the blue number by and the red number by . Instead, moves of type increase the blue number also by , but the red number increases by . Since , for all , we can replace with moves of .
Case 2: is even. Then increases the blue number by , and the red number by . Alternatively, moves of and one move of increase the blue number by and the red number by . Since , for all , we conclude that can be replaced by moves of and one . Moreover, observe that two moves of can be replaced by one move of , with a smaller increase in the red number: instead of .
Thus, using only and , and minimizing the use of , yields the minimal red number. To make the blue number at least , the best strategy is to use only moves of type (which increase blue by and red by ), plus at most one (if needed).
If is even: we can use moves of , increasing red by .
If is odd: we can use moves of and one move of , leading to red increasing by .
Hence, the minimal possible value of the red number is .
Final answer
N + floor((N+1)/2)
Techniques
Games / greedy algorithmsInvariants / monovariantsCombinatorial optimization