MathDB
Writing numbers on a blackboard...

Source: Benelux Mathematical Olympiad 2011, Problem 4

May 7, 2011
combinatorics proposedcombinatorics

Problem Statement

Abby and Brian play the following game: They first choose a positive integer NN. Then they write numbers on a blackboard in turn. Abby starts by writing a 11. Thereafter, when one of them has written the number nn, the other writes down either n+1n + 1 or 2n2n, provided that the number is not greater than NN. The player who writes NN on the blackboard wins. (a) Determine which player has a winning strategy if N=2011N = 2011. (b) Find the number of positive integers N2011N\leqslant2011 for which Brian has a winning strategy.
(This is based on ISL 2004, Problem C5.)