Definition 5.4 (Periodic Continued Fraction)
A
periodic continued fraction is a continued
fraction
![$ [a_0, a_1, \ldots, a_n, \ldots]$](img1878.png)
such that
for some fixed positive integer

and all sufficiently large

.
We call the minimal such

the
period of the continued fraction.
Proof.
(

) First suppose that
is a periodic continued fraction. Set
![$ \alpha=[a_{n+1},a_{n+2}, \ldots]$](img1889.png)
. Then
so by Proposition
5.1.5
Here we use that

is the last partial quotient.
Thus,

satisfies a quadratic equation with coefficients
in

. Computing as in Example
5.4.4 and rationalizing
the denominators, and using that the

are
all integers, shows that
is of the form

, with

,
so
![$ [a_0, a_1, \ldots]$](img1897.png)
also satisfies a quadratic polynomial
over

.
The continued fraction procedure
applied to the value of an infinite simple continued fraction
yields that continued fraction back, so
by Proposition 5.2.12,
because it is the
value of an infinite continued fraction.
(
)
Suppose
is an irrational number that satisfies a quadratic equation
 |
(5.4.1) |
with

and

.
Let
![$ [a_0, a_1, \ldots]$](img1897.png)
be the continued fraction
expansion of

. For each

, let
so
We will prove periodicity by showing that the set of

's is
finite. If we have shown finiteness, then there exists

such that

, so
It remains to show there are only finitely many distinct
. We
have
Substituting this expression for

into the
quadratic equation (
5.4.1), we see that
where
Note that

, that

, and that
Recall from the proof of Theorem 5.2.10 that
Thus
so

with
Hence
Thus
Thus there are only finitely many possibilities for the integer

.
Also,

and
so there are only finitely many triples

,
and hence only finitely many possibilities for

as

varies, which completes the proof.
(The proof above closely follows [#!hardywright!#, Thm. 177, pg.144-145].)