Homepage › Solution manuals › Ivan Niven › An Introduction to the Theory of Numbers › Exercise 4.2.17 ($q$ is prime if and only if $\sigma(q) = q+1$)
Exercise 4.2.17 ($q$ is prime if and only if $\sigma(q) = q+1$)
Prove that an integer is prime if and only if .
Answers
Proof. Let be a positive integer.
If is prime, the only divisors of are and , where , thus .
Conversely, suppose that . Since , . Assume, for the sake of contradiction, that is not prime. Then, by definition of a prime number, has a divisor , where . Therefore
This contradicts . This proves that is prime.
In conclusion, is prime if and only if . □