Subcontests
(4)A combinatorial game strategy including number theory
Anton and Britta play a game with the set M={1,2,…,n−1} where n≥5 is an odd integer. In each step Anton removes a number from M and puts it in his set A, and Britta removes a number from M and puts it in her set B (both A and B are empty to begin with). When M is empty, Anton picks two distinct numbers x1,x2 from A and shows them to Britta. Britta then picks two distinct numbers y1,y2 from B. Britta wins if
(x1x2(x1−y1)(x2−y2))2n−1≡1modn
otherwise Anton wins. Find all n for which Britta has a winning strategy.