Homepage › Solution manuals › Ivan Niven › An Introduction to the Theory of Numbers › Exercise 2.8.12 (The congruence $x^n \equiv a \pmod p$ has a unique solution if $(n,p-1) = 1$)
Exercise 2.8.12 (The congruence $x^n \equiv a \pmod p$ has a unique solution if $(n,p-1) = 1$)
Prove that if is a prime, and , then has exactly one solution.
Answers
Proof. Consider a primitive root modulo . By hypothesis , thus for some integer . Since , then , so for some integer , where . Then
Since , this last congruence has exactly one solution modulo . Indeed, if is an inverse of modulo , i.e. , then
There is a unique such that , and so . Therefore
where is the unique solution of .
If is a prime such that and , then has exactly one solution.
(Note that has also a unique solution , so we can forget the condition .) □