2024 AIME I · Question 3
Problem outline
Players alternate removing either one or four tokens from one pile. The last move wins. For how many starting sizes can the second player force a win?
Show answer and methods 1 methods
Answer
809
Method 1 Determine losing residues
Topics usedGame theoryInduction
With zero tokens the player to move loses. Claim the losing residues modulo are . A move from either such residue leads to or . From or remove one to reach or ; from remove four to reach . These moves are legal even for the first block. Induction proves the claim.
The first positive sizes contain full blocks, contributing losses. Of the last four sizes only qualifies, giving .
Source and attribution
The outline and worked methods on this page were prepared for DR.WANG Mathematics.
Original question (external)