Homepage › Solution manuals › Ivan Niven › An Introduction to the Theory of Numbers › Exercise 2.1.36 (Solutions of $(p-1)!+1 = p^k$.)
Exercise 2.1.36 (Solutions of $(p-1)!+1 = p^k$.)
If is a prime, prove that is a power of if and only if , or .
Hint: If , has factors and , and so is divisible by . Then recall Problem 32 in Section 1.2.
Answers
Proof. If , . If , , and if , .
Now assume that , where is prime, and assume for contradiction that
Then , hence divides . Therefore
Hence
If we reduce modulo , then , therefore
This shows that , so for some integer . Thus
Since is a divisor of (because ), we obtain
a fortiori
But, since every is such that
because .
Since and gives a contradiction, is never a power of for . □