Homepage › Solution manuals › Ivan Niven › An Introduction to the Theory of Numbers › Exercise 7.1.2 (Short continued fractions)
Exercise 7.1.2 (Short continued fractions)
Prove that the set (7.1) consists of exactly one equation if and only if . Under what circumstances is ?
Answers
Proof.
- (a)
-
If
then the Euclidean algorithm gives the unique equation
Since the remainder , there is no other equation.
If , the fist equation is
Since and , , therefore , so there is at least one more equation to finish the Euclidean algorithm.
The set of equations of the Euclidean algorithm consists of exactly one equation if and only if .
- (b)
-
If
, then
, where
, thus the remainder is
and the quotient is
.
Note that if , then , where and . This gives , which ends the algorithm, so .
Conversely, if and , then the first equation of the Euclidean algorithm gives
Therefore .
So if and only if .
(This is obvious if we know that .)