MathDB
Math contest

Source: Lusophon Math Olympiad 2012

January 9, 2018
number theorycombinatorics

Problem Statement

5)Players AA and BB play the following game: a player writes, in a board, a positive integer nn, after this they delete a number in the board and write a new number where can be: i)The last number pp, where the new number will be p2kp - 2^k where kk is greatest number such that p2kp\ge 2^k ii) The last number pp, where the new number will be p2\frac{p}{2} if pp is even. The players play alternately, a player win(s) if the new number is equal to 00 and player AA starts.
a)Which player has the winning strategy with n=40n = 40?? b)Which player has the winning strategy with n=2012n = 2012??