Question 7
Logic · Number theory BDMO 2020 National
Shakur and Tiham play a game with coins. There are coins on a table where is a positive integer. The players take turns removing a number of coins that is an integer power of 2 (such as ). The person who removes the last coin from the table wins. If Shakur goes first and is a positive integer less than 1000, for how many values of does Shakur have a winning strategy (if Tiham plays perfectly)?