Problem

Source: 2021 Taiwan Mathematics Olympiad

Tags: quadratics, arithmetic sequence, number theory, Taiwan



Find all integers $n=2k+1>1$ so that there exists a permutation $a_0, a_1,\ldots,a_{k}$ of $0, 1, \ldots, k$ such that \[a_1^2-a_0^2\equiv a_2^2-a_1^2\equiv \cdots\equiv a_{k}^2-a_{k-1}^2\pmod n.\] Proposed by usjl