Skip to content

Problem 1

Alice and Bob play a two-player game in which the numbers aa and bb 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 aa and bb are chosen randomly between 1 to 101 inclusive, what is the probability that aa and bb are so that Alice has a winning strategy?

Solution

Answer: 693410201\frac{6934}{10201}

Call a position (x,y)(x,y) winning if the player to move can force a win. Any position with a coordinate equal to 11 or 22 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 33, the losing positions are exactly those with x≡y(mod3)x\equiv y\pmod3. Among 3,4,…,1013,4,\ldots,101, each residue class contains 3333 numbers, so there are 3⋅332=32673\cdot33^2=3267 losing ordered pairs.

Pr⁡(Alice wins)=1−32671012=693410201.\Pr(\text{Alice wins})=1-\frac{3267}{101^2}=\frac{6934}{10201}.