2024 AIME I Problem 3
Problem 3 of 15EasierNumber TheoryCombinatoricsProblem-Solving Techniques
Alice and Bob play the following game. A stack of tokens lies before them. The players take turns with Alice going first. On each turn, the player removes token or tokens from the stack. The player who removes the last token wins. Find the number of positive integers less than or equal to such that there is a strategy that guarantees that Bob wins, regardless of Alice’s moves.
Your answer
Integer from 0 to 999
Show solution
Solution
Call a losing position if the player about to move loses with best play. We claim the losing positions are exactly or From such an removing or tokens leaves — never again or — while from any one move reaches a position or (remove tokens respectively). Since is a loss for the player to move, induction confirms the pattern.
Bob wins exactly when is a losing position for Alice. Among there are multiples of and values (from to ), for a total of
Tagged: combinatorial game · modular arithmetic · small cases