Let be a positive integer. Alice and Bob play the following divisor game: starting with the set of positive divisors of , the players take turns removing some elements from the set. At a player's turn, he or she chooses a divisor that remains, and removes and any of the divisors of that remain. The player who moves last loses .
For example: . Alice chooses , so she removes and . The remaining set is . Bob chooses and so must also remove . The remaining set is . Alice takes , and now Bob is forced to take , so he loses.
Let be the largest positive integer such that if Alice and Bob play the divisor game for and both of them play optimally, the second player wins. Find . If no such exists, enter .
This section requires Javascript.
You are seeing this because something didn't load right. We suggest you, (a) try
refreshing the page, (b) enabling javascript if it is disabled on your browser and,
finally, (c)
loading the
non-javascript version of this page
. We're sorry about the hassle.
This is a simple application of the strategy-stealing argument.
Note that since n ≥ 2 , the game needs at least two moves, and thus the second player must make a move. Suppose the second player has a winning strategy. Consider the move m that the second player makes when the first player plays 1. By assumption, this move holds the win for the second player; that is, the player that is not moving. But now the first player can play on m immediately on the first move. This situation is identical as before (since playing 1 only removes 1, and playing m will remove all divisors of m which include 1), and thus the winner should be the player not to move. But since it's the first player that made the move m , it's the first player that is not to move, and thus the first player is winning, contradicting the assumption that the second player has a winning strategy. Thus the assumption that the second player has a winning strategy is false; the first player must win for all n ≥ 2 .
(Note that the above argument doesn't work if n = 1 , because the second player wins by not moving, and so the first player cannot steal this "move".)