Problem

Source: Romanian IMO Team Selection Test TST 1987, problem 7

Tags: algorithm, algebra solved, algebra



Determine all positive integers $n$ such that $n$ divides $3^n - 2^n$.