Problem

Source:

Tags: induction, combinatorics unsolved, combinatorics



Let $N$ be a positive integer. Alberto and Barbara write numbers on a blackboard taking turns, according to the following rules. Alberto starts writing $1$, and thereafter if a player has written $n$ on a certain move, his adversary is allowed to write $n+1$ or $2n$ as long as he/she does not obtain a number greater than $N$. The player who writes $N$ wins. $(a)$ Determine which player has a winning strategy for $N=2005$. $(b)$ Determine which player has a winning strategy for $N=2004$. $(c)$ Find for how many integers $N\le 2005$ Barbara has a winning strategy.