Homepage Solution manuals Ivan Niven An Introduction to the Theory of Numbers Exercise 7.8.12 ( If $p\equiv 1 \pmod 4$, then $x^2 - p y^2 = -1$ is solvable)

Exercise 7.8.12 ( If $p\equiv 1 \pmod 4$, then $x^2 - p y^2 = -1$ is solvable)

Suppose that p 1 ( mod 4 ) . Show that if x 2 p y 2 = 1 , then x is odd and y is even. Suppose that x 0 2 p y 0 2 = 1 with y 0 > 0 , y 0 minimal. Show that g.c.d. ( x 0 + 1 , x 0 1 ) = 2 . Deduce that one of two cases arises: Case 1. x 0 1 = 2 p u 2 , x 0 + 1 = 2 v 2 . Case 2. x 0 1 = 2 u 2 , x 0 + 1 = 2 p v 2 . Show that in Case 1, v 2 p u 2 = 1 with | u | < y 0 , a contradiction to the minimality of y 0 . Show that in Case 2, u 2 p v 2 = 1 . Conclude that if p 1 ( mod 4 ) then the equation x 2 p v 2 = 1 has an integral solution.

Answers

Proof. Suppose that x 2 p y 2 = 1 , where p 1 ( mod 4 ) . Then x 2 y 2 1 ( mod 4 ) , so x and y have distinct parity.

If x is even and y is odd, then x 2 0 ( mod 4 ) and y 2 1 ( mod 4 ) , so x 2 y 2 1 ( mod 4 ) , which is false. Therefore x is odd and y is even.

By Theorem 7.25, since p is not a perfect square, x 2 p y 2 = 1 has positive solutions. We define ( x 0 , y 0 ) as a positive solution with y 0 minimal.

Let d = g . c . d ( x 0 + 1 , x 0 1 ) . Then d 0 , d x 0 1 and d x 0 + 1 , thus d ( x 0 + 1 ) ( x 0 1 ) = 2 . Therefore d = 1 or d = 2 . moreover x 0 is odd, thus 2 x 0 1 and 2 x 0 + 1 , so 2 d . Hence d = 2 :

( x 0 + 1 ) ( x 0 1 ) = 2 . (1)

Since x 0 2 1 = p y 0 2 , p ( x 0 1 ) ( x 0 + 1 ) , thus p x 0 1 or p x 0 + 1 .

  • Case 1. If p x 0 1 , then

    ( x 0 1 2 p ) ( x 0 + 1 2 ) = ( y 0 2 ) 2 . (2)

    where x 0 1 2 p , x 0 + 1 2 , y 0 2 are integers. Moreover, by (1), x 0 1 2 x 0 + 1 2 = 1 , a fortiori

    x 0 1 2 p x 0 + 1 2 = 1 . (3)

    By (2) and (3), Lemma 5.4 p. 232 shows that there are integers u 0 , v 0 such that

    x 0 1 2 p = u 2 , x 0 + 1 2 = v 2 ,

    so

    x 0 1 = 2 p u 2 , x 0 + 1 = 2 v 2 , y 0 = 2 uv . (4)
  • Case 2. If p x 0 1 , then

    ( x 0 1 p ) ( x 0 + 1 2 p ) = ( y 0 2 ) 2 . (5)

    We obtain similarly

    x 0 1 = 2 u 2 , x 0 + 1 = 2 p v 2 . (6)

Consider the case 1. By (4), v 2 p u 2 = 1 . Moreover y 0 = 2 uv > 0 , thus 0 < u < y 0 , in contradiction with the minimality of y 0 . Therefore case 1 never occurs, and case 2 is true. By (6),

u 2 p v 2 = 1 .

This shows that x 2 p y 2 = 1 is solvable.

In conclusion, if p 1 ( mod 4 ) , then the equation x 2 p y 2 = 1 has an integral solution. □

User profile picture
2025-08-28 10:34
Comments