Problem 1
Alice and Bob play a two-player game in which the numbers and are initially written on the whiteboard. Starting with Alice, the players take turns subtracting 1 or 2 from one of the current numbers written on the whiteboard. The first player to reach 0 as one of the numbers wins. Given that and are chosen randomly between 1 to 101 inclusive, what is the probability that and are so that Alice has a winning strategy?
Solution
Answer:
Call a position winning if the player to move can force a win. Any position with a coordinate equal to or is winning. Otherwise, a position is winning if some legal move reaches a losing position, and losing if every move reaches a winning position.
Induction gives that, when both coordinates are at least , the losing positions are exactly those with . Among , each residue class contains numbers, so there are losing ordered pairs.
