The integers a and n>1 satisfy an−1≡1 (mod n) but am≢1 (mod n) for every divisor m of n−1, other than itself. Prove that n is prime.
The way I went about proving it was,
We know for every integer k≥1, ak≡1(mod n)⟺d | k, where d is the order of a.
Note an−1≡1 (mod n) and all divisors d | n−1 have ad≢1 (mod n). ⟹ n−1 is the order of a.
So we know {1,a,a2,...,an−1}⊆residue class mod n
So at least n−1 elements coprime to n⟹ n is prime
So assuming this proof is correct, I was wondering if anyone had a more formal justification / better explanation for the last two lines. My thought process was because we know the order of a is n−1, all powers of a are incongruent to each other and the set of incongruent n−1 elements forms a set of residues mod n.
And since there are n−1 elements less than and coprime to n, we get that n must be prime.
Is this correct? If not, does anyone know of a better proof (using only elementary number theory techniques)?
Answer
Well, if n−1 is the order of a, then n−1∣φ(n). Since φ(n)≤n−1, we know φ(n)=n−1. This means n is prime.
Not necessarily a better proof, but shorter, and I'd say simpler too.
No comments:
Post a Comment