Proof of Korselt criterion
ID: proof-of-korselt-criterion
If every integer satisfies , taking shows that cannot divide . Taking a primitive root modulo each prime divisor shows . Conversely, these divisibilities and squarefreeness let Fermat's little theorem prove the congruence modulo each prime divisor, and coprimality of those divisors combines it modulo .
New to topics? Read the docs here!