MathDB
A combinatorial game strategy including number theory

Source: 2022 Nordic Mathematical Olmpiad

April 16, 2022
combinatorial game theorynumber theory

Problem Statement

Anton and Britta play a game with the set M={1,2,,n1}M=\left \{ 1,2,\dots,n-1 \right \} where n5n \geq 5 is an odd integer. In each step Anton removes a number from MM and puts it in his set AA, and Britta removes a number from MM and puts it in her set BB (both AA and BB are empty to begin with). When MM is empty, Anton picks two distinct numbers x1,x2x_1, x_2 from AA and shows them to Britta. Britta then picks two distinct numbers y1,y2y_1, y_2 from BB. Britta wins if (x1x2(x1y1)(x2y2))n121modn(x_1x_2(x_1-y_1)(x_2-y_2))^{\frac{n-1}{2}}\equiv 1\mod n otherwise Anton wins. Find all nn for which Britta has a winning strategy.