Homepage Solution manuals Ivan Niven An Introduction to the Theory of Numbers Exercise 7.9.1 (Continued fraction expansion of $\sqrt{73}$)

Exercise 7.9.1 (Continued fraction expansion of $\sqrt{73}$)

Continue the calculations started above for 73 , and verify the continued fraction expansion given in Example 3 in the preceding section.

Answers

Proof. Using the method “continued_fraction” given in Problem 7.7.3, and adding some instructions “print”, we obtain

m 0 = 0 , q 0 = 1 , a 0 = 8 , m 1 = 8 , q 1 = 9 , a 1 = 1 , m 2 = 7 , q 2 = 3 , a 2 = 5 , m 3 = 8 , q 3 = 3 , a 3 = 5 , m 4 = 7 , q 4 = 8 , a 4 = 1 , m 5 = 1 , q 5 = 9 , a 5 = 1 , m 6 = 8 , q 6 = 1 , a 6 = 1 , a 7 = 16 .

(The algorithm is terminated when q 6 = 1 .)

So

73 = 8 , 1 , 1 , 5 , 5 , 1 , 1 , 16 ¯ .

The convergents are given by formulas (7.6):

i -2 -1 0 1 2 3 4 5 6 7
a i 8 1 1 5 5 1 1 16
h i 0 1 8 9 17 94 487 581 1068
k i 1 0 1 1 2 11 57 68 125

So by Theorem 7.22, h 6 2 73 k 6 2 = 1 , that is

106 8 2 73 12 5 2 = 1 .

(This solution is also obtained by the method “pell_fermat” given in Problem 7.8.9.) □

User profile picture
2025-09-01 09:11
Comments