Homepage Solution manuals Ivan Niven An Introduction to the Theory of Numbers Exercise 3.1.10 (When the congruence $x^2 \equiv 2 \pmod p$ has solutions?)

Exercise 3.1.10 (When the congruence $x^2 \equiv 2 \pmod p$ has solutions?)

Prove that if p is an odd prime then x 2 2 ( mod p ) has solutions if and only if p 1 or 7 ( mod 8 ) .

Answers

Proof. Let p be an odd prime. Then p = 8 k + r , where k is an integer, and r { 1 , 3 , 5 , 7 } . By Theorem 3.3,

( 2 p ) = ( 1 ) ( p 2 1 ) 8 .

  • If the congruence x 2 2 ( mod p ) has solutions, then ( 2 p ) = ( 1 ) ( p 2 1 ) 8 = 1 , thus p 2 1 8 is even. Therefore

    16 p 2 1 = ( 8 k + r ) 2 1 = 64 k 2 + 16 kr + r 2 1 ,

    which gives 16 r 2 1 . Since 16 3 2 1 = 8 and 16 5 2 1 = 24 , we obtain r = 1 or r = 7 , so

    p 1  or  p 7 ( mod 8 ) .

  • Conversely if p 1  or  p 7 ( mod 8 ) , then r = 1 or r = 7 . Since 16 1 2 1 , and 16 7 2 1 = 48 , in both cases 16 r 2 1 , therefore

    16 ( 8 k + r ) 2 1 = p 2 1 ,

    thus 2 p 2 1 8 , so that

    ( 2 p ) = ( 1 ) ( p 2 1 ) 8 = 1 .

    This shows that the congruence x 2 2 ( mod p ) has solutions.

To conclude, if p is an odd prime then x 2 2 ( mod p ) has solutions if and only if p 1 or 7 ( mod 8 ) . □

User profile picture
2024-10-18 07:26
Comments