![$ [a_0, a_1, \ldots, a_n, \ldots]$](img1878.png) such that
 such that
 
for some fixed positive integer
 and all sufficiently large
 and all sufficiently large  .
We call the minimal such
.
We call the minimal such  the period of the continued fraction.
 the period of the continued fraction.
![$ [1,2,1,2,\ldots] = [\overline{1,2}]$](img1881.png) .
 What does it converge to?  We have
.
 What does it converge to?  We have
![$\displaystyle [\overline{1,2}] = 1+\frac{1}{\displaystyle 2+\frac{1}{\displaystyle 1+\frac{1}{\displaystyle 2+ \frac{1}{\displaystyle 1+\cdots}}}},$](img1882.png) 
so if
![$ \alpha=[\overline{1,2}]$](img1883.png) then
 then 
 
Thus
 , so
, so 
 
 ) First suppose that
) First suppose that 
![$\displaystyle [a_0, a_1, \ldots, a_n, \overline{a_{n+1},\ldots, a_{n+h}}]$](img1888.png) 
is a periodic continued fraction. Set
![$ \alpha=[a_{n+1},a_{n+2}, \ldots]$](img1889.png) .  Then
.  Then
![$\displaystyle \alpha = [a_{n+1},\ldots, a_{n+h}, \alpha],
$](img1890.png) 
so by Proposition 5.1.5
 
Here we use that
 is the last partial quotient.
Thus,
 is the last partial quotient.
Thus,  satisfies a quadratic equation with coefficients
in
 satisfies a quadratic equation with coefficients
in 
 .  Computing as in Example 5.4.4 and rationalizing
the denominators, and using that the
.  Computing as in Example 5.4.4 and rationalizing
the denominators, and using that the  are 
all integers, shows that
 are 
all integers, shows that
| ![$\displaystyle [a_0, a_1, \ldots ]$](img1892.png) | ![$\displaystyle = [a_0, a_1, \ldots, a_n, \alpha]$](img1893.png) | |
|  | 
 , with
, with 
 ,
so
,
so 
![$ [a_0, a_1, \ldots]$](img1897.png) also satisfies a quadratic polynomial 
over
 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.
 because it is the
value of an infinite continued fraction.
(
 ) 
Suppose
) 
Suppose 
 is an irrational number that satisfies a quadratic equation
 is an irrational number that satisfies a quadratic equation
 and
 and  .
Let
.
Let 
![$ [a_0, a_1, \ldots]$](img1897.png) be the continued fraction
expansion of
 be the continued fraction
expansion of  .  For each
.  For each  , let
, let
![$\displaystyle r_n = [a_n, a_{n+1}, \ldots],
$](img1902.png) 
so
![$\displaystyle \alpha = [a_0, a_1, \ldots, a_{n-1}, r_n].
$](img1903.png) 
We will prove periodicity by showing that the set of
 's is
finite.  If we have shown finiteness, then there exists
's is
finite.  If we have shown finiteness, then there exists  such that
such that 
 , so
, so
| ![$\displaystyle [a_0, \ldots, a_{n-1}, r_n]$](img1907.png) | ![$\displaystyle = [a_0, \ldots, a_{n-1}, a_n, \ldots, a_{n+h-1}, r_{n+h}]$](img1908.png) | |
| ![$\displaystyle = [a_0, \ldots, a_{n-1}, a_n, \ldots, a_{n+h-1}, r_{n}]$](img1909.png) | ||
| ![$\displaystyle = [a_0, \ldots, a_{n-1}, a_n, \ldots, a_{n+h-1}, a_n, \ldots, a_{n+h-1}, r_{n+h}]$](img1910.png) | ||
| ![$\displaystyle = [a_0, \ldots, a_{n-1}, \overline{a_n, \ldots, a_{n+h-1}}].$](img1911.png) | 
It remains to show there are only finitely many distinct  .  We
have
.  We
have
 
Substituting this expression for
 into the 
quadratic equation (5.4.1),  we see that
 into the 
quadratic equation (5.4.1),  we see that
 
where
|  |  | |
|  |  and | |
|  |  | 
 , that
, that 
 , and that
, and that
 
Recall from the proof of Theorem 5.2.10 that
 
Thus
 
so
 with
   with  
Hence
|  |  | |
|  | ||
|  | 
 
Thus there are only finitely many possibilities for the integer
 .
Also,
.
Also, 
 and
    and  
so there are only finitely many triples
 ,
and hence only finitely many possibilities for
,
and hence only finitely many possibilities for  as
 as  varies, which completes the proof. 
(The proof above closely follows [#!hardywright!#, Thm. 177, pg.144-145].)
 
varies, which completes the proof. 
(The proof above closely follows [#!hardywright!#, Thm. 177, pg.144-145].)
  
William 2007-06-01