Problem

Source: Turkey National Olympiad 2015 P6

Tags: number theory, number theory proposed



Find all positive integers $n$ such that for any positive integer $a$ relatively prime to $n$, $2n^2 \mid a^n - 1$.