Exercise 2.1.36 (Solutions of $(p-1)!+1 = p^k$.)

If p is a prime, prove that ( p 1 ) ! + 1 is a power of p if and only if p = 2 , 3 , or 5 .

Hint: If p > 5 , ( p 1 ) ! has factors 2 , p 1 and ( p 1 ) 2 , and so ( p 1 ) ! is divisible by ( p 1 ) 2 . Then recall Problem 32 in Section 1.2.

Answers

Proof. If p = 2 , ( p 1 ) ! + 1 = 2 1 . If p = 3 , ( p 1 ) ! + 1 = 3 1 , and if p = 5 , ( p 1 ) ! + 1 = 5 2 .

Now assume that p > 5 , where p is prime, and assume for contradiction that

( p 1 ) ! + 1 = p k ,  where  k 1 .

Then 2 < p 1 2 < p 1 , hence ( p 1 ) 2 = 2 p 1 2 ( p 1 ) divides ( p 1 ) ! = p k 1 . Therefore

( p 1 ) 2 p k 1 .

Hence

p 1 p k 1 p 1 = 1 + p + p 2 + + p k 1

If we reduce modulo p 1 , then p 1 ( mod p 1 ) , therefore

0 1 + p + p 2 + + p k 1 ( mod p 1 ) 1 + 1 + + 1 = k ( mod p 1 ) .

This shows that p 1 k , so k = ( p 1 ) q for some integer q . Thus

( p 1 ) ! = p ( p 1 ) q 1 .

Since p p 1 1 is a divisor of p ( p 1 ) q 1 (because p ( p 1 ) q 1 = ( p p 1 1 ) k = 0 q 1 p ( p 1 ) k ), we obtain

p p 1 1 ( p 1 ) ! ,

a fortiori

p p 1 1 ( p 1 ) ! .

But, since every i [ [ 2 , p 1 ] ] is such that i p

( p 1 ) ! = 2 3 ( p 1 ) p p 2 < p p 1 1 ,

because p p 1 p p 2 = p p 2 ( p 1 ) > 1 .

Since p p 1 1 ( p 1 ) ! and ( p 1 ) ! < p p 1 1 gives a contradiction, ( p 1 ) ! + 1 is never a power of p for p > 5 . □

User profile picture
2024-07-31 14:22
Comments