A pile starts with coins. Two players take turns removing , , , , or coins from the pile, and the player who takes the last coin wins. Decide which player has a winning strategy, give Player 1's winning first move if Player 1 wins, and prove by induction that for every integer , a pile of coins is a win for the second player to move.
What is the smallest pile size where every legal move ( through ) leaves a single-move win for the other player, and what multiple of that size lies just below ? Answer Player 1 has a winning strategy and should remove coins on the first turn, leaving coins for Player 2. (Watch out for two common slips here: do not divide by the maximum move to get and conclude that Player 2 wins, because the trap spacing is , not . And when dividing , remove the remainder to land on , not , which leaves and lets Player 2 take to trap you at .) Let be the statement that for a pile of coins (), the second player to move (Player 2) has a winning strategy. Base case (): The pile has coins. Player 1 must remove coins, leaving coins. Player 2 removes all remaining coins on the next turn and wins, so holds. Inductive step: Assume holds for some integer , so Player 2 has a winning strategy from coins. Consider a pile of coins. On the first turn, Player 1 must remove coins. Player 2 responds by removing coins, which is a legal move because . Together, the two moves remove coins: