Homepage Solution manuals Ivan Niven An Introduction to the Theory of Numbers Exercise 7.8.8 (Least positive solution of $x^2 - 18y^2 = \pm 1$)

Exercise 7.8.8 (Least positive solution of $x^2 - 18y^2 = \pm 1$)

Given 18 = 4 , 4 , 8 ¯ , find the least positive solution of x 2 18 y 2 = 1 (if any) and of x 2 18 y 2 = 1 .

Answers

Proof. Using (7.13), we obtain

m i + 1 = a i q i m i , q i + 1 = d m i + 1 2 q i , a i = m i + d q i ,

where d = 18 = 4 , m 0 = 0 , q 0 = 1 ,

m 0 = 0 , q 0 = 1 , a 0 = 4 , m 1 = 4 , q 1 = 2 , a 1 = 4 , m 2 = 4 , q 2 = 1 , a 2 = 8 .

Since q 2 = 1 , the algorithm is done, which gives

18 = 4 , 4 , 8 ¯ .

Since the length r = 2 of the period is even, we know by Theorem 7.25 that x 2 18 y 2 = 1 is not solvable.

We find the convergents by 7.6:

i -2 -1 0 1 2
a i 4 4 8
h i 0 1 4 17
k i 1 0 1 4

Since r = 2 , by Theorem 7.25, the least positive solution of x 2 18 y 2 = 1 is ( h r 1 , k r 1 ) = ( h 1 , k 1 ) = ( 17 , 4 ) :

1 7 2 18 4 2 = 1 .

(See Problem 9 for a Python program). □

User profile picture
2025-08-27 10:47
Comments