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 , 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
(The algorithm is terminated when .)
So
The convergents are given by formulas (7.6):
| -2 | -1 | 0 | 1 | 2 | 3 | 4 | 5 | 6 | 7 | |
| 8 | 1 | 1 | 5 | 5 | 1 | 1 | 16 | |||
| 0 | 1 | 8 | 9 | 17 | 94 | 487 | 581 | 1068 | ||
| 1 | 0 | 1 | 1 | 2 | 11 | 57 | 68 | 125 |
So by Theorem 7.22, , that is
(This solution is also obtained by the method “pell_fermat” given in Problem 7.8.9.) □