Problem

Source: 2023 Taiwan Mathematics Olympiad

Tags: Taiwan



Find all positive integers $n$ satisfying the following conditions simultaneously: (a) the number of positive divisors of $n$ is not a multiple of $8$; (b) for all integers $x$, we have \[x^n \equiv x \mod n.\] Proposed by usjl