Problem 5
Given , players A and B choose integers alternately. Knowing , A chooses with . Knowing , B chooses such that for a prime and integer . A wins by choosing , and B wins by choosing . Classify the initial values according to which player has a winning strategy or neither does.
Step 5 of 6: The position 6 reduces to 30
Detailed analysis
For n0=6, choices through 29 lose by the preceding bounds. If A chooses 31,32,33,34,35, or 36, B can choose respectively 1,1,3,2,5,4. Thus A's only nonlosing move is 30. From 30, B can choose 6,10, or 15; choosing 10 or 15 loses by the preceding analysis, so optimal B chooses 6.