Problem

Source: Russian TST 2016, Day 10 P1 (Group NG)

Tags: number theory, Divisibility



Find all natural $n{}$ such that for every natural $a{}$ that is mutually prime with $n{}$, the number $a^n - 1$ is divisible by $2n^2$.