Homepage › Solution manuals › Ivan Niven › An Introduction to the Theory of Numbers › Exercise 7.8.2 (If $x^2 - dy^2 = N$ has one solution, then it has infinitely many)

Exercise 7.8.2 (If $x^2 - dy^2 = N$ has one solution, then it has infinitely many)

Suppose that N is a nonzero integer. Prove that iIf x 2 − d y 2 = N has one solution, then it has infinitely many.

Answers

Proof. Here d is a positive integer which is not a perfect square.

Suppose that x 2 − d y 2 = N has an integer solution ( x , y ) ∈ ℤ × ℤ (then N ≠ 0 ). Since | x | 2 − d | y | 2 = N , we may assume that x ≥ 0 and y ≥ 0 (but ( x , y ) ≠ ( 0 , 0 ) ).

By Theorem 7.25, there exist positive integers x 1 and y 1 such that x 1 2 − y 1 2 d = 1 and x 1 > 1 . We define the integers x n and y n by x n + y n d = ( x 1 + y 1 d ) n . Then x n > 0 , y n > 0 and x n 2 − y n 2 d = 1 . Therefore

N = ( x n 2 − y n 2 d ) ( x 2 − y 2 d ) = [ ( x n + y n d ) ( x + y d ) ] [ ( x n − y n d ) ( x − y d ) ] = [ ( x n x + d y n y ) + ( ( y n x + x n y ) d ] [ ( x n x + d y n y ) − ( ( y n x + x n y ) d ] = ( x n x + d y n y ) 2 − ( y n x + x n y ) 2 d .

So

( X n , Y n ) = ( x n x + d y n y , y n x + x n y ) (1)

is a solution of x 2 − d y 2 = N for every n ≥ 1 .

We must prove that there are infinitely many such solutions.

Since x n + 1 + y n + 1 d = ( x n + y n d ) ( x 1 + y 1 d ) , we obtain

x n + 1 = x n x 1 + d y n y 1 , y n + 1 = y n x 1 + x n y 1 .

Here y 1 > 0 , x n > 0 , y n > 0 , d > 0 and x 1 > 1 , thus for every n > 0 ,

x n + 1 > x n , y n + 1 > y n ,

so the sequences ( x n ) n ∈ ℕ ∗ and ( y n ) n ∈ ℕ ∗ are strictly increasing.

Let n , m be two positive integers such that n > m , and assume for the sake of contradiction that ( X n , Y n ) = ( X m , Y m ) . By (1),

X n = x n x + d y n y = x m x + d y m y = X m , Y n = y n x + x n y = y m x + x m y = Y m ,

therefore

( x n − x m ) x + d ( y n − y m ) y = 0 , ( y n − y m ) x + ( x n − x m ) y = 0 .

Moreover x 2 − d y 2 = N , so ( x , y ) ≠ ( 0 , 0 ) . Hence

| x n − x m d ( y n − y m ) y n − y m x n − x m | = 0 ,

that is

( x n − x m ) 2 = d ( y n − y m ) 2 .

If y n − y m ≠ 0 , then the integer d is the square of a rational number, hence d is a perfect square, in contradiction with the hypothesis. Hence y n − y m = 0 and x n − x m = d ( y n − y m ) 2 = 0 , so ( x n , y n ) = ( x m , y m ) .

But the sequences ( x n ) n ∈ ℕ ∗ and ( y n ) n ∈ ℕ ∗ are strictly increasing thus x n > x m and y n > y m . This contradiction shows that

n > m ⇒ ( X n , Y n ) ≠ ( X m , Y m ) .

Therefore the solutions ( X n , Y n ) of x 2 − d y 2 = N are distinct.

If x 2 − d y 2 = N has one solution, then it has infinitely many. □

User profile picture
2025-08-24 08:26
Comments