Exercise 542Number theory › PrimesHigh schoolAdded 3 Nov 2026
Coprimality with primes
#coprime#prime#divisibility
Statement
Show that for a prime and integer : either or .
Hint
The only positive divisors of are and .
Show solutionHide solution
Solution
Divisors. divides , so .
Case . .
Case . .
Conclusion. Either or (mutually exclusive).
Corollary. For prime and , is invertible mod .