Homepage Solution manuals Ivan Niven An Introduction to the Theory of Numbers Exercise 2.1.56* (If $x^2 \equiv -2 \pmod p$, then $a^2 + 2b^2=p$ or $a^2 + 2b^2 = 2p$ has a solution)

Exercise 2.1.56* (If $x^2 \equiv -2 \pmod p$, then $a^2 + 2b^2=p$ or $a^2 + 2b^2 = 2p$ has a solution)

Let p be a prime number, and suppose that x is an integer such that x 2 2 ( mod p ) . By considering the numbers u + xv for various pairs ( u , v ) , show that at least one of the equations a 2 + 2 b 2 = p , a 2 + 2 b 2 = 2 p has a solution.

Answers

Proof. (similar to the proof of Lemma 2.13.)

Let p be a prime number, and suppose that x is an integer such that x 2 2 ( mod p ) .

We consider the set A of ordered pairs ( u , v ) of integers for which u p , 0 v p :

A = { ( u , v ) 2 0 u p , 0 v p } = [ [ 0 , p ] ] 2 ,

where

p p < p + 1 , p ,

and define

f { A pℤ ( u , v ) [ u + xv ] p ,

where [ a ] p denotes the class of a in pℤ .

The cardinality of A = [ [ 0 , p ] ] 2 is

| A | = ( p + 1 ) 2 > p = | pℤ | ,

therefore f cannot be injective (one to one). So there are two distinct ordered pairs ( u 1 , v 1 ) and ( u 2 , v 2 ) in A such that f ( u 1 , v 1 ) = f ( u 2 , v 2 ) (this is the pigeonhole principle described in the proof of lemma 2.13).

Then u 1 + x v 1 u 2 + x v 2 ( mod p ) , where 0 u 1 p , 0 u 2 p . Take a = u 1 u 2 and b = v 1 v 2 . Then a xb ( mod p ) , thus a 2 x 2 b 2 ( mod p ) , so a 2 + 2 b 2 0 ( mod p ) since x 2 2 ( mod p ) .

Since ( u 1 , v 1 ) ( u 2 , v 2 ) , it follows that not both a and b vanish, so that a 2 + 2 b 2 > 0 .

Moreover, u 1 p and u 2 0 , thus a = u 1 u 2 p . On the other hand, u 1 0 and u 2 p , thus a = u 1 u 2 p . This shows that | a | p . We obtain similarly | b | p .

But p is never an integer, so p < p , therefore

| a | < p , | b | < p .

This gives a 2 < p , b 2 < p , thus a 2 + 2 b 2 < 3 p :

0 < a 2 + 2 b 2 < 3 p  and  p a 2 + 2 b 2 .

This implies

a 2 + 2 b 2 = p  or  a 2 + 2 b 2 = 2 p .

At least one of the equations a 2 + 2 b 2 = p , a 2 + 2 b 2 = 2 p has a solution. □

User profile picture
2024-08-07 08:22
Comments