<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<?xml-stylesheet type="text/css"
   href="/~hammond/style/gellmuart.css"?>
<!DOCTYPE article
  PUBLIC "-//GNU GPL: William F. Hammond//DTD GELLMU XML 0.7.5L//EN"
  "http://www.albany.edu/~hammond/gellmu/xml/axgellmu.dtd">
<article stem="confrac"
><preamble
><title
>Continued Fractions and the Euclidean Algorithm</title><author
>William F. Hammond</author><subtitle
>Lecture notes prepared for MATH 326, Spring 1997<brk
/> Department of Mathematics and Statistics<brk
/> University at Albany</subtitle><nul
/><nul
/><nul
/><nul
/><nul
/><nul
/><nul
/><nul
/><nul
/><nul
/><nul
/><nul
/><nul
/><nul
/><nul
/><nul
/><nul
/><nul
/><nul
/><nul
/><nul
/><nul
/><nul
/><nul
/><nul
/><nul
/><mathsym
>Z</mathsym><mathsym
>GL</mathsym><nul
/><nul
/><nul
/><nul
/><nul
/><nul
/><nul
/><nul
/><nul
/></preamble><body
><tableofcontents
/><section
>Introduction</section><parb
>Continued fractions offer a means of concrete representation for
arbitrary real numbers<eos
/>   The continued fraction expansion of a real
number is an alternative to the representation of such a number as
a (possibly infinite) decimal<eos
/></parb><parb
>The reasons for including this topic in the course on Classical Algebra
are:
<menu
><item
><itemlabel
>(i)</itemlabel><itembody
>The subject provides many applications of the method of
recursion<eos
/></itembody></item><item
><itemlabel
>(ii)</itemlabel><itembody
>It is closely related to the Euclidean algorithm and, in
particular, to <quophrase
>Bezout<apos
/>s Identity</quophrase><eos
/></itembody></item><item
><itemlabel
>(iii)</itemlabel><itembody
>It provides an opportunity to introduce the subject of
<emph
>group theory</emph> via the <tmath
>2</tmath><hyp
/>dimensional unimodular group
<tmath
><Sym key="GL"
><mbox
>GL</mbox></Sym><sub
>2</sub>(<Sym key="Z"
><regch
><bold
>Z</bold></regch></Sym>)</tmath><aos
/></itembody></item></menu>
</parb><section
>The continued fraction expansion of a real number</section><parb
>Every real number <tmath
>x</tmath> is represented by a point on the real line
and, as such, falls between two integers<eos
/>   For example, if <tmath
>n</tmath> is
an integer and
<displaymath
> n <spc
/><leq
/> <spc
/>x <spc
/><ltc
/> <spc
/>n <plu
/> 1 <spc
/>, </displaymath>
<tmath
>x</tmath> falls between <tmath
>n</tmath> and <tmath
>n<plu
/>1</tmath><aoc
/> <spc
/>and there is one and only one
such integer <tmath
>n</tmath> for any given real <tmath
>x</tmath><aos
/>   In the case where <tmath
>x</tmath>
itself is an integer, one has <hsp
/><tmath
> n <eqs
/> x</tmath><aos
/>   The integer <tmath
>n</tmath> is
sometimes called the <emph
>floor</emph> of <tmath
>x</tmath><aoc
/> <spc
/>and one often introduces
a notation for the floor of <tmath
>x</tmath> such as
<displaymath
> n <spc
/><eqs
/> <spc
/>[x] <eos
/></displaymath></parb><parb
><bold
>Examples:</bold>
<menu
><item
><itemlabel
>1.</itemlabel><itembody
><displaymath
> <hyp
/>2 <spc
/><eqs
/> <spc
/>[<hyp
/>1.5] </displaymath></itembody></item><item
><itemlabel
>2.</itemlabel><itembody
><displaymath
>  3 <spc
/><eqs
/> <spc
/>[<pi
/>]  </displaymath></itembody></item></menu></parb><parb
>For any real <tmath
>x</tmath> with <math
> n <eqs
/> [x] </math> the number
<math
> u <eqs
/> x <hyp
/> n </math> falls in the <emph
>unit interval</emph>
<tmath
>I</tmath> consisting of all real numbers <tmath
>u</tmath> for which <hsp
/><tmath
> 0 <leq
/> u <ltc
/> 1</tmath><aos
/></parb><parb
>Thus, for given real <tmath
>x</tmath> there is a unique decomposition
<displaymath
> x <spc
/><eqs
/> <spc
/>n <plu
/> u </displaymath>
where <tmath
>n</tmath> is an integer and <tmath
>u</tmath> is in the unit interval<eos
/>
<spc
/>Moreover, <tmath
>u <eqs
/> 0</tmath> if and only if <tmath
>x</tmath> is an integer<eos
/>   This
decomposition is sometimes called the <emph
>mod one decomposition</emph>
of a real number<eos
/>   It is the first step in the process
of expanding <tmath
>x</tmath> as a continued fraction<eos
/></parb><parb
>The process of finding the continued fraction expansion of a real
number is a recursive process that procedes one step at a time<eos
/>
<spc
/>Given <tmath
>x</tmath> one begins with the mod one decomposition
<displaymath
> x <spc
/><eqs
/> <spc
/>n<sub
>1</sub> <plu
/> u<sub
>1</sub> <spc
/>, </displaymath>
where <tmath
>n<sub
>1</sub></tmath> is an integer and <hsp
/><tmath
>0 <leq
/> u<sub
>1</sub> <ltc
/> 1</tmath><aos
/></parb><parb
>If <hsp
/><tmath
> u<sub
>1</sub> <eqs
/> 0</tmath><aoc
/> <spc
/>which happens if and only if <tmath
>x</tmath> is an integer,
the recursive process terminates with this first step<eos
/>  <spc
/>The idea
is to obtain a sequence of integers that give a precise determination
of <tmath
>x</tmath><aos
/></parb><parb
>If <hsp
/><tmath
> u<sub
>1</sub> <gtc
/> 0</tmath><aoc
/> <spc
/>then the reciprocal <math
>1<sol mml="mo"
/>u<sub
>1</sub></math> of <tmath
>u<sub
>1</sub></tmath> satisfies
<math
> 1<sol mml="mo"
/>u<sub
>1</sub> <gtc
/> 1 </math> since <tmath
>u<sub
>1</sub></tmath> is in <tmath
>I</tmath> and, therefore, <hsp
/><tmath
> u<sub
>1</sub> <ltc
/> 1</tmath><aos
/>
In this case the second step in the recursive determination of the
continued fraction expansion of <tmath
>x</tmath> is to apply the mod one
decomposition to <hsp
/><tmath
> 1<sol mml="mo"
/>u<sub
>1</sub></tmath><aos
/>  One writes
<displaymath
> 1<sol mml="mo"
/>u<sub
>1</sub> <spc
/><eqs
/> <spc
/>n<sub
>2</sub> <plu
/> u<sub
>2</sub> <spc
/>, </displaymath>
where <tmath
>n<sub
>2</sub></tmath> is an integer and <hsp
/><tmath
> 0 <leq
/> u<sub
>2</sub> <ltc
/> 1</tmath><aos
/>  Combining the
equations that represent the first two steps, one may write
<displaymath
> x <eqs
/> n<sub
>1</sub> <plu
/> <frac
><numr
>1</numr><denm
>n<sub
>2</sub> <plu
/> u<sub
>2</sub></denm></frac> <eos
/></displaymath></parb><parb
>Either <hsp
/><tmath
> u<sub
>2</sub> <eqs
/> 0</tmath><aoc
/> <spc
/>in which case the process ends with the
expansion
<displaymath
> x <eqs
/> n<sub
>1</sub> <plu
/> <frac
><numr
>1</numr><denm
>n<sub
>2</sub></denm></frac> <spc
/>, </displaymath>
or <hsp
/><tmath
> u<sub
>2</sub> <gtc
/> 0</tmath><aos
/>  In the latter case one does to <tmath
>u<sub
>2</sub></tmath> what had just
been done to <tmath
>u<sub
>1</sub></tmath> above under the assumption <hsp
/><tmath
> u<sub
>1</sub> <gtc
/> 0</tmath><aos
/>
<spc
/>One writes
<displaymath
> 1<sol mml="mo"
/>u<sub
>2</sub> <spc
/><eqs
/> <spc
/>n<sub
>3</sub> <plu
/> u<sub
>3</sub> <spc
/>, </displaymath>
where <tmath
>n<sub
>3</sub></tmath> is an integer and <hsp
/><tmath
> 0 <leq
/> u<sub
>3</sub> <ltc
/> 1</tmath><aos
/>  Then combining
the equations that represent the first three steps, one may write
<displaymath
> x <eqs
/> n<sub
>1</sub> <plu
/> <frac
><numr
>1</numr><denm
>n<sub
>2</sub> <plu
/> <frac
><numr
>1</numr><denm
>n<sub
>3</sub> <plu
/> u<sub
>3</sub></denm></frac></denm></frac> <eos
/></displaymath></parb><parb
>After <tmath
>k</tmath> steps, if the process has gone that far, one has integers
<math
>n<sub
>1</sub>, n<sub
>2</sub>, <ldots
/>, n<sub
>k</sub></math> and real numbers
<math
>u<sub
>1</sub>, u<sub
>2</sub>, <ldots
/>, u<sub
>k</sub></math> that are members of the unit interval
<tmath
>I</tmath> with <math
>u<sub
>1</sub>, u<sub
>2</sub>, <ldots
/>, u<sub
>k<hyp
/>1</sub></math> all positive<eos
/>
One may write
<displaymath
> x <eqs
/> n<sub
>1</sub> <plu
/> <frac
><numr
>1</numr><denm
>n<sub
>2</sub> <plu
/> <frac
><numr
>1</numr><denm
>n<sub
>3</sub> <plu
/>
    <frac
><numr
>1</numr><denm
><ldots
/> <plu
/> <frac
><numr
>1</numr><denm
>n<sub
>k</sub> <plu
/> u<sub
>k</sub></denm></frac></denm></frac></denm></frac></denm></frac> <eos
/></displaymath>
Alternatively, one may write
<displaymath
> x <eqs
/> [ n<sub
>1</sub>, n<sub
>2</sub>, n<sub
>3</sub>, <ldots
/>, n<sub
>k</sub> <plu
/> u<sub
>k</sub> ] <eos
/></displaymath>
If <hsp
/><tmath
>u<sub
>k</sub> <eqs
/> 0</tmath><aoc
/> the process ends after <tmath
>k</tmath> steps<eos
/>  Otherwise,
the process continues at least one more step with
<displaymath
> 1<sol mml="mo"
/>u<sub
>k</sub> <spc
/><eqs
/> <spc
/>n<sub
>k<plu
/>1</sub> <plu
/> u<sub
>k<plu
/>1</sub> <eos
/></displaymath></parb><parb
>In this way one associates with any real number <tmath
>x</tmath> a sequence,
which could be either finite or infinite, <math
>n<sub
>1</sub>, n<sub
>2</sub>, <ldots
/></math>
of integers<eos
/>  This sequence is called the <emph
>continued fraction
expansion of</emph> <tmath
>x</tmath><aos
/>

<assertion
><assthead
><asstkey
></asstkey><asstser
>convention</asstser><asstname
>Convention</asstname><asstid
><empty
/></asstid></assthead><asstbody
>When <math
>[n<sub
>1</sub>, n<sub
>2</sub>, ...]</math> is called a
<bold
>continued fraction</bold>, it is understood that all of the numbers
<tmath
>n<sub
>j</sub></tmath> are integers and that <math
>n<sub
>j</sub> <geq
/> 1</math> for <hsp
/><tmath
>j <geq
/> 2</tmath><aos
/></asstbody></assertion>
</parb><section
>First examples</section><parb
><eqnarray nonum="true"
><eqnabody
><eqnrow
><eqnleft
><spc
/>   <frac
><numr
>15</numr><denm
>11</denm></frac> </eqnleft><tabampcell
>  <eqs
/> </tabampcell><tabampcell
>  1 <plu
/> <frac
><numr
>4</numr><denm
>11</denm></frac> </tabampcell></eqnrow><eqnrow
><firstcell
><spc
/>     </firstcell><tabampcell
>  <eqs
/> </tabampcell><tabampcell
>  1 <plu
/> <frac
><numr
>1</numr><denm
><frac
><numr
>11</numr><denm
>4</denm></frac></denm></frac> </tabampcell></eqnrow
><eqnrow
><firstcell
><spc
/>     </firstcell><tabampcell
>  <eqs
/> </tabampcell><tabampcell
>  1 <plu
/> <frac
><numr
>1</numr><denm
>2 <plu
/> <frac
><numr
>3</numr><denm
>4</denm></frac></denm></frac> </tabampcell></eqnrow
><eqnrow
><firstcell
><spc
/>     </firstcell><tabampcell
>  <eqs
/> </tabampcell><tabampcell
>  1 <plu
/> <frac
><numr
>1</numr><denm
>2 <plu
/> <frac
><numr
>1</numr><denm
><frac
><numr
>4</numr><denm
>3</denm></frac></denm></frac></denm></frac> </tabampcell></eqnrow
><eqnrow
><firstcell
><spc
/>     </firstcell><tabampcell
>  <eqs
/> </tabampcell><tabampcell
>  1 <plu
/> <frac
><numr
>1</numr><denm
>2 <plu
/> <frac
><numr
>1</numr><denm
>1 <plu
/> <frac
><numr
>1</numr><denm
>3</denm></frac></denm></frac></denm></frac> </tabampcell></eqnrow
><eqnrow
><firstcell
><spc
/>     </firstcell><tabampcell
>  <eqs
/> </tabampcell><tabampcell
>  [1, 2, 1, 3] <spc
/><eos
/></tabampcell></eqnrow
></eqnabody></eqnarray></parb><parb
><eqnarray nonum="true"
><eqnabody
><eqnrow
><eqnleft
><spc
/><sqrt
>10</sqrt> </eqnleft><tabampcell
>  <eqs
/> </tabampcell><tabampcell
>  3 <plu
/> <frac
><numr
>1</numr><denm
><frac
><numr
>1</numr><denm
><sqrt
>10</sqrt><hyp
/>3</denm></frac></denm></frac> </tabampcell></eqnrow><eqnrow
><firstcell
><spc
/>     </firstcell><tabampcell
>  <eqs
/> </tabampcell><tabampcell
>  3 <plu
/> <frac
><numr
>1</numr><denm
><sqrt
>10</sqrt><plu
/>3</denm></frac> </tabampcell></eqnrow
><eqnrow
><firstcell
><spc
/>     </firstcell><tabampcell
>  <eqs
/> </tabampcell><tabampcell
>  3 <plu
/> <frac
><numr
>1</numr><denm
>6 <plu
/> <frac
><numr
>1</numr><denm
><frac
><numr
>1</numr><denm
><sqrt
>10</sqrt><hyp
/>3</denm></frac></denm></frac></denm></frac> </tabampcell></eqnrow
><eqnrow
><firstcell
><spc
/>     </firstcell><tabampcell
>  <eqs
/> </tabampcell><tabampcell
>  3 <plu
/> <frac
><numr
>1</numr><denm
>6 <plu
/> <frac
><numr
>1</numr><denm
><sqrt
>10</sqrt><plu
/>3</denm></frac></denm></frac> </tabampcell></eqnrow
><eqnrow
><firstcell
><spc
/>     </firstcell><tabampcell
>  <eqs
/> </tabampcell><tabampcell
>  3 <plu
/> <frac
><numr
>1</numr><denm
>6 <plu
/> <frac
><numr
>1</numr><denm
>6 <plu
/> <frac
><numr
>1</numr><denm
><ldots
/></denm></frac></denm></frac></denm></frac> </tabampcell></eqnrow
><eqnrow
><firstcell
><spc
/>     </firstcell><tabampcell
>  <eqs
/> </tabampcell><tabampcell
>  [3, 6, 6, 6, <ldots
/>] <spc
/><eos
/></tabampcell></eqnrow
></eqnabody></eqnarray></parb><parb
><eqnarray nonum="true"
><eqnabody
><eqnrow
><eqnleft
><spc
/>[2, 3, 5, 2 ] </eqnleft><tabampcell
>  <eqs
/> </tabampcell><tabampcell
>  2 <plu
/> <frac
><numr
>1</numr><denm
>[3, 5, 2]</denm></frac> </tabampcell></eqnrow><eqnrow
><firstcell
><spc
/>     </firstcell><tabampcell
>  <eqs
/> </tabampcell><tabampcell
>  2 <plu
/> <frac
><numr
>1</numr><denm
>3 <plu
/> <frac
><numr
>1</numr><denm
>[5, 2]</denm></frac></denm></frac> </tabampcell></eqnrow
><eqnrow
><firstcell
><spc
/>     </firstcell><tabampcell
>  <eqs
/> </tabampcell><tabampcell
>  2 <plu
/> <frac
><numr
>1</numr><denm
>3 <plu
/> <frac
><numr
>1</numr><denm
>5 <plu
/> <frac
><numr
>1</numr><denm
>2</denm></frac></denm></frac></denm></frac> </tabampcell></eqnrow
><eqnrow
><firstcell
><spc
/>     </firstcell><tabampcell
>  <eqs
/> </tabampcell><tabampcell
>  2 <plu
/> <frac
><numr
>1</numr><denm
>3 <plu
/> <frac
><numr
>1</numr><denm
><frac
><numr
>11</numr><denm
>2</denm></frac></denm></frac></denm></frac> </tabampcell></eqnrow
><eqnrow
><firstcell
><spc
/>     </firstcell><tabampcell
>  <eqs
/> </tabampcell><tabampcell
>  2 <plu
/> <frac
><numr
>1</numr><denm
>3 <plu
/> <frac
><numr
>2</numr><denm
>11</denm></frac></denm></frac> </tabampcell></eqnrow
><eqnrow
><firstcell
><spc
/>     </firstcell><tabampcell
>  <eqs
/> </tabampcell><tabampcell
>  2 <plu
/> <frac
><numr
>1</numr><denm
><frac
><numr
>35</numr><denm
>11</denm></frac></denm></frac> </tabampcell></eqnrow
><eqnrow
><firstcell
><spc
/>     </firstcell><tabampcell
>  <eqs
/> </tabampcell><tabampcell
>  2 <plu
/> <frac
><numr
>11</numr><denm
>35</denm></frac> </tabampcell></eqnrow
><eqnrow
><firstcell
><spc
/>     </firstcell><tabampcell
>  <eqs
/> </tabampcell><tabampcell
>  <frac
><numr
>81</numr><denm
>35</denm></frac> <spc
/><eos
/></tabampcell></eqnrow
></eqnabody></eqnarray></parb><parb
>Let
<displaymath
> x <eqs
/> 1<plu
/><frac
><numr
>1</numr><denm
>2<plu
/><frac
><numr
>1</numr><denm
>3<plu
/><frac
><numr
>1</numr><denm
>2<plu
/><frac
><numr
>1</numr><denm
>3<plu
/><frac
><numr
>1</numr><denm
>2<plu
/><ldots
/></denm></frac></denm></frac></denm></frac></denm></frac></denm></frac>
<eos
/></displaymath>
In this case one finds that
<displaymath
> x <eqs
/> 1 <plu
/> <frac
><numr
>1</numr><denm
>y</denm></frac> <spc
/>, </displaymath>
where
<displaymath
> y <eqs
/> 2<plu
/><frac
><numr
>1</numr><denm
>3<plu
/><frac
><numr
>1</numr><denm
>2<plu
/><frac
><numr
>1</numr><denm
>3<plu
/><frac
><numr
>1</numr><denm
>2<plu
/><ldots
/></denm></frac></denm></frac></denm></frac></denm></frac> <eos
/></displaymath>
Further reflection shows that the continued fraction structure for
<tmath
>y</tmath> is self<hyp
/>similar:
<displaymath
> y <eqs
/> 2<plu
/><frac
><numr
>1</numr><denm
>3<plu
/><frac
><numr
>1</numr><denm
>y</denm></frac></denm></frac> <eos
/></displaymath>
This simplifies to
<displaymath
> y <eqs
/> <frac
><numr
>7y<plu
/>2</numr><denm
>3y<plu
/>1</denm></frac> </displaymath>
and leads to the quadratic equation
<displaymath
> 3y<sup
>2</sup> <hyp
/> 6y <hyp
/> 2 <eqs
/> 0 </displaymath>
with discriminant <tmath
>60</tmath><aos
/> <spc
/>Since <hsp
/><tmath
>y <gtc
/> 2</tmath><aoc
/> <spc
/>one of the two
roots of the quadratic equation cannot be <tmath
>y</tmath><aoc
/> <spc
/>and, therefore,
<displaymath
> y <eqs
/> <frac
><numr
>3 <plu
/> <sqrt
>15</sqrt></numr><denm
>3</denm></frac> <eos
/></displaymath>
Finally,
<displaymath
> x <eqs
/> <frac
><numr
><sqrt
>15</sqrt><hyp
/>1</numr><denm
>2</denm></frac> <eos
/></displaymath></parb><parb
>The idea of the calculation above leads to the conclusion that any
continued fraction <math
> [n<sub
>1</sub>, n<sub
>2</sub>, <ldots
/>] </math> that eventually repeats
is the solution of a quadratic equation with positive discriminant
and integer coefficients<eos
/>    The converse of this statement is also
true, but a proof requires further consideration<eos
/>
</parb><section
>The case of a rational number</section><parb
>The process of finding the continued fraction expansion of a rational
number is essentially identical to the process of applying the
Euclidean algorithm to the pair of integers given by its numerator and
denominator<eos
/></parb><parb
>Let <hsp
/><tmath
>x <eqs
/> a<sol mml="mo"
/>b, <spc
/>b <gtc
/> 0</tmath><aoc
/> <spc
/> be a representation of a rational number
<tmath
>x</tmath> as a quotient of integers <tmath
>a</tmath> and <tmath
>b</tmath><aos
/>   The mod one decomposition
<displaymath
> <frac
><numr
>a</numr><denm
>b</denm></frac> <eqs
/> n<sub
>1</sub> <plu
/> u<sub
>1</sub> <hsp
/> , <spc
/><spc
/>u<sub
>1</sub> <eqs
/> <frac
><numr
>a <hyp
/> n<sub
>1</sub> b</numr><denm
>b</denm></frac> </displaymath>
shows that <hsp
/><tmath
> u<sub
>1</sub> <eqs
/> r<sub
>1</sub><sol mml="mo"
/>b</tmath><aoc
/> <spc
/>where <tmath
>r<sub
>1</sub></tmath> is the remainder for
division of <tmath
>a</tmath> by <tmath
>b</tmath><aos
/>   The case where <math
>u<sub
>1</sub> <eqs
/> 0</math> is the case
where <tmath
>x</tmath> is an integer<eos
/>  Otherwise <hsp
/><tmath
>u<sub
>1</sub> <gtc
/> 0</tmath><aoc
/> <spc
/>and the mod one
decomposition of <math
>1<sol mml="mo"
/>u<sub
>1</sub></math> gives
<displaymath
> <frac
><numr
>b</numr><denm
>r<sub
>1</sub></denm></frac> <eqs
/> n<sub
>2</sub> <plu
/> u<sub
>2</sub> <hsp
/> , <spc
/><spc
/>u<sub
>2</sub> <eqs
/> <frac
><numr
>b <hyp
/> n<sub
>2</sub> r<sub
>1</sub></numr><denm
>r<sub
>1</sub></denm></frac> <eos
/></displaymath>
This shows that <hsp
/><tmath
> u<sub
>2</sub> <eqs
/> r<sub
>2</sub><sol mml="mo"
/>r<sub
>1</sub></tmath><aoc
/> where <tmath
>r<sub
>2</sub></tmath> is the remainder for
division of <tmath
>b</tmath> by <tmath
>r<sub
>1</sub></tmath><eos
/>   Thus, the successive quotients in Euclid<apos
/>s
algorithm are the integers <math
>n<sub
>1</sub>, n<sub
>2</sub>, <ldots
/></math> occurring in the
continued fraction<eos
/>  Euclid<apos
/>s algorithm terminates after a finite
number of steps with the appearance of a zero remainder<eos
/>  Hence, the
continued fraction expansion of every rational number is finite<eos
/>

<assertion
><assthead
><asstkey
></asstkey><asstser
>theorems</asstser><asstname
>Theorem</asstname><asstid
><evalref
><popkey
/></evalref></asstid></assthead><asstbody
>The continued fraction expansion of a real number is
finite if and only if the real number is rational<eos
/></asstbody></assertion></parb><parb
><emph
>Proof.</emph><spc
/>  It has just been shown that if <tmath
>x</tmath> is rational, then
the continued fraction expansion of <tmath
>x</tmath> is finite because its calculation
is given by application of the Euclidean algorithm to the numerator
and denominator of <tmath
>x</tmath><aos
/>   The converse statement is the statement
that every finite continued fraction represents a rational number<eos
/>
That statement will be demonstrated in the following section<eos
/>
</parb><section
>The symbol <hsp
/><tmath
>[t<sub
>1</sub>, <hsp
/>t<sub
>2</sub>, <hsp
/><ldots
/>, <hsp
/>t<sub
>r</sub>]</tmath></section><parb
>For arbitrary real numbers <math
>t<sub
>1</sub>, t<sub
>2</sub>, <ldots
/>, t<sub
>r</sub></math>
with each <math
>t<sub
>j</sub> <geq
/> 1</math> for <math
>j <geq
/> 2</math>
the symbol <math
> [ t<sub
>1</sub>, t<sub
>2</sub>, <ldots
/>, t<sub
>r</sub> ] </math> is defined recursively
by:
<displaymath
> [ t<sub
>1</sub> ] <spc
/><eqs
/> <spc
/>t<sub
>1</sub> </displaymath>
<equation nonum="false"
><eqnkey
>t<hyp
/>rec</eqnkey><eqnser
>eqn</eqnser><eqnline
>[t<sub
>1</sub>,t<sub
>2</sub>,<ldots
/>,t<sub
>r</sub> ]<spc
/><eqs
/><spc
/>t<sub
>1</sub><plu
/><frac
><numr
>1</numr><denm
>[t<sub
>2</sub>,<ldots
/>,t<sub
>r</sub> ]</denm></frac><spc
/><eos
/></eqnline></equation>
In order for this definition to make sense one needs to know that
the denominator in the right<hyp
/>hand side of (<anch
><anchref
>iref="t<hyp
/>rec"</anchref><anchv
><ref
>t<hyp
/>rec</ref></anchv></anch>) is non<hyp
/>zero<eos
/>
The condition <math
>t<sub
>j</sub> <geq
/> 1</math> for <math
>j <geq
/> 2</math> guarantees, in
fact, that <hsp
/><tmath
> [t<sub
>2</sub>,<ldots
/>,t<sub
>r</sub> ] <gtc
/> 0</tmath><aoc
/> <spc
/>as one may prove using
induction<eos
/></parb><parb
>It is an easy consequence of mathematical induction that the symbol
<math
>[t<sub
>1</sub>, t<sub
>2</sub>, <ldots
/>, t<sub
>r</sub>]</math> is a rational number if each <tmath
>t<sub
>j</sub></tmath> is
rational<eos
/>   In particular, each finite continued fraction is a
rational number<eos
/>   (Note that the symbol <math
>[t<sub
>1</sub>, t<sub
>2</sub>, <ldots
/>, t<sub
>r</sub>]</math>
is to be called a continued fraction, according to the convention of
the first section, only when each <tmath
>t<sub
>j</sub></tmath> is an integer.)</parb><parb
>Observe that the recursive nature of the symbol <math
>[t<sub
>1</sub>, <ldots
/>, t<sub
>r</sub>]</math>
suggests that the symbol should be computed in a particular case working
from right to left<eos
/>   Consider again, for example, the computation above
showing that <hsp
/><tmath
>[2, 3, 5, 2] <eqs
/> 81<sol mml="mo"
/>35</tmath><aos
/>   Working from right to left one
has:
<eqnarray nonum="true"
><eqnabody
><eqnrow
><eqnleft
><spc
/>         [2] </eqnleft><tabampcell
>  <eqs
/> </tabampcell><tabampcell
>  2</tabampcell></eqnrow><eqnrow
><firstcell
><spc
/>      [5, 2] </firstcell><tabampcell
>  <eqs
/> </tabampcell><tabampcell
>  5<plu
/><frac
><numr
>1</numr><denm
>[2]</denm></frac> <eqs
/> 5<plu
/><frac
><numr
>1</numr><denm
>2</denm></frac> <eqs
/> <frac
><numr
>11</numr><denm
>2</denm></frac></tabampcell></eqnrow
><eqnrow
><firstcell
><spc
/>   [3, 5, 2] </firstcell><tabampcell
>  <eqs
/> </tabampcell><tabampcell
>  3<plu
/><frac
><numr
>1</numr><denm
>[5, 2]</denm></frac> <eqs
/> 3<plu
/><frac
><numr
>2</numr><denm
>11</denm></frac>
                                                 <eqs
/> <frac
><numr
>35</numr><denm
>11</denm></frac></tabampcell></eqnrow
><eqnrow
><firstcell
><spc
/>[2, 3, 5, 2] </firstcell><tabampcell
>  <eqs
/> </tabampcell><tabampcell
>  2<plu
/><frac
><numr
>1</numr><denm
>[3, 5, 2]</denm></frac> <eqs
/> 2<plu
/><frac
><numr
>11</numr><denm
>35</denm></frac>
                                                 <eqs
/> <frac
><numr
>81</numr><denm
>35</denm></frac></tabampcell></eqnrow
></eqnabody></eqnarray></parb><parb
>There is, however, another approach to computing
<hsp
/><tmath
>[t<sub
>1</sub>, t<sub
>2</sub>, <ldots
/>, t<sub
>r</sub>]</tmath><aos
/>
Let, in fact, <math
>t<sub
>1</sub>, t<sub
>2</sub>, <ldots
/></math> be any (finite or infinite)
sequence of real numbers<eos
/>  One uses the double recursion
<equation nonum="false"
><eqnkey
>pdef</eqnkey><eqnser
>eqn</eqnser><eqnline
>p<sub
>j</sub> <eqs
/> t<sub
>j</sub> p<sub
>j<hyp
/>1</sub> <plu
/> p<sub
>j<hyp
/>2</sub> <hsp
/> , <spc
/><spc
/>j <geq
/> 1 <hsp
/> ,
   <spc
/><spc
/>p<sub
>0</sub> <eqs
/> 1 <hsp
/> , <spc
/><spc
/>p<sub
><hyp
/>1</sub> <eqs
/> 0 </eqnline></equation>
to define the sequence <hsp
/><tmath
><lbr
/>p<sub
>j</sub><rbr
/><hsp
/> , <spc
/>j <geq
/> <hyp
/>1</tmath><aos
/>  The double
recursion, differently initialized,
<equation nonum="false"
><eqnkey
>qdef</eqnkey><eqnser
>eqn</eqnser><eqnline
>q<sub
>j</sub> <eqs
/> t<sub
>j</sub> q<sub
>j<hyp
/>1</sub> <plu
/> q<sub
>j<hyp
/>2</sub> <hsp
/> , <spc
/><spc
/>j <geq
/> 1 <hsp
/> ,
   <spc
/><spc
/>q<sub
>0</sub> <eqs
/> 0 <hsp
/> , <spc
/><spc
/>q<sub
><hyp
/>1</sub> <eqs
/> 1 </eqnline></equation>
defines the sequence <hsp
/><tmath
><lbr
/>q<sub
>j</sub><rbr
/><hsp
/> , <spc
/>j <geq
/> <hyp
/>1</tmath><aos
/>
Note that <hsp
/><tmath
>p<sub
>1</sub> <eqs
/> t<sub
>1</sub></tmath><aoc
/> <spc
/><hsp
/><tmath
>p<sub
>2</sub> <eqs
/> t<sub
>1</sub>t<sub
>2</sub> <plu
/> 1</tmath><aoc
/> <spc
/><tmath
><ldots
/></tmath>
<spc
/>and <hsp
/><tmath
>q<sub
>1</sub> <eqs
/> 1</tmath><aoc
/> <spc
/><hsp
/><tmath
> q<sub
>2</sub> <eqs
/> t<sub
>2</sub></tmath><aoc
/> <spc
/><hsp
/><tmath
>q<sub
>3</sub> <eqs
/> t<sub
>2</sub>t<sub
>3</sub> <plu
/> 1</tmath><aoc
/>
<spc
/><tmath
><ldots
/><hsp
/></tmath><aos
/></parb><parb
>One now forms the matrix
<equation nonum="false"
><eqnkey
>Mr<hyp
/>def</eqnkey><eqnser
>eqn</eqnser><eqnline
>M<sub
>j</sub> <eqs
/> <bal
><array
><arrhead
><arrcols
>rr</arrcols></arrhead><arrbody
><arrayrow
><firstacell
>p<sub
>j</sub> </firstacell><tabampcell
>  q<sub
>j</sub> </tabampcell></arrayrow><arrayrow
><firstcell
>p<sub
>j<hyp
/>1</sub> </firstcell><tabampcell
>  q<sub
>j<hyp
/>1</sub> </tabampcell></arrayrow></arrbody></array></bal><text
><spc
/><spc
/>for<spc
/><spc
/></text> j<geq
/> 0<spc
/><eos
/></eqnline></equation>
Thus, for example,
<displaymath
> M<sub
>0</sub> <eqs
/> <bal
><array
><arrhead
><arrcols
>rr</arrcols></arrhead><arrbody
><arrayrow
><firstacell
>1 </firstacell><tabampcell
>  0 </tabampcell></arrayrow><arrayrow
><firstcell
>0 </firstcell><tabampcell
>  1 </tabampcell></arrayrow></arrbody></array></bal><hsp
/> , <text
><spc
/><spc
/>and<spc
/><spc
/></text>
   M<sub
>1</sub> <eqs
/> <bal
><array
><arrhead
><arrcols
>rr</arrcols></arrhead><arrbody
><arrayrow
><firstacell
>t<sub
>1</sub> </firstacell><tabampcell
>  1 </tabampcell></arrayrow><arrayrow
><firstcell
>1 </firstcell><tabampcell
>  0 </tabampcell></arrayrow></arrbody></array></bal> <eos
/></displaymath>
It is easy to see that the matrices <tmath
>M<sub
>j</sub></tmath> satisfy the double recursion
<equation nonum="false"
><eqnkey
>Mr<hyp
/>rec</eqnkey><eqnser
>eqn</eqnser><eqnline
>M<sub
>j</sub> <eqs
/> <bal
><array
><arrhead
><arrcols
>rr</arrcols></arrhead><arrbody
><arrayrow
><firstacell
>t<sub
>j</sub> </firstacell><tabampcell
>  1 </tabampcell></arrayrow><arrayrow
><firstcell
>1 </firstcell><tabampcell
>  0 </tabampcell></arrayrow></arrbody></array></bal> <hsp
/> M<sub
>j<hyp
/>1</sub> <hsp
/> , <spc
/>j <geq
/> 1 </eqnline></equation>
as a consequence of the double recursion formulas for the <tmath
>p<sub
>j</sub></tmath> and <tmath
>q<sub
>j</sub></tmath><aos
/>
Hence, a simple argument by mathematical induction shows that
<equation nonum="false"
><eqnkey
>Mrcomp</eqnkey><eqnser
>eqn</eqnser><eqnline
>M<sub
>r</sub> <eqs
/> <bal
><array
><arrhead
><arrcols
>rr</arrcols></arrhead><arrbody
><arrayrow
><firstacell
>t<sub
>r</sub> </firstacell><tabampcell
>  1 </tabampcell></arrayrow><arrayrow
><firstcell
>1 </firstcell><tabampcell
>  0 </tabampcell></arrayrow></arrbody></array></bal> <hsp
/> <ldots
/> <hsp
/> <bal
><array
><arrhead
><arrcols
>rr</arrcols></arrhead><arrbody
><arrayrow
><firstacell
>t<sub
>2</sub> </firstacell><tabampcell
>  1 </tabampcell></arrayrow><arrayrow
><firstcell
>1 </firstcell><tabampcell
>  0 </tabampcell></arrayrow></arrbody></array></bal> <hsp
/>
         <bal
><array
><arrhead
><arrcols
>rr</arrcols></arrhead><arrbody
><arrayrow
><firstacell
>t<sub
>1</sub> </firstacell><tabampcell
>  1 </tabampcell></arrayrow><arrayrow
><firstcell
>1 </firstcell><tabampcell
>  0 </tabampcell></arrayrow></arrbody></array></bal> <hsp
/> , <spc
/>r <geq
/> 1 <eos
/></eqnline></equation>
This is summarized by:

<assertion
><assthead
><asstkey
></asstkey><asstser
>propositions</asstser><asstname
>Proposition</asstname><asstid
><evalref
><popkey
/></evalref></asstid></assthead><asstbody
>For any sequence <math
><lbr
/>t<sub
>j</sub><rbr
/>, <hsp
/> j <geq
/> 1</math> of
real numbers, if <math
><lbr
/>p<sub
>j</sub><rbr
/></math> and <math
><lbr
/>q<sub
>j</sub><rbr
/></math> are the sequences
defined by the double recursions (<anch
><anchref
>iref="pdef"</anchref><anchv
><ref
>pdef</ref></anchv></anch>) and (<anch
><anchref
>iref="qdef"</anchref><anchv
><ref
>qdef</ref></anchv></anch>), then one
has the matrix identity
<equation nonum="false"
><eqnkey
>prqr<hyp
/>row</eqnkey><eqnser
>eqn</eqnser><eqnline
><bal
><array
><arrhead
><arrcols
>rr</arrcols></arrhead><arrbody
><arrayrow
><firstacell
>p<sub
>r</sub> </firstacell><tabampcell
>  q<sub
>r</sub> </tabampcell></arrayrow><arrayrow
><firstcell
>p<sub
>r<hyp
/>1</sub> </firstcell><tabampcell
>  q<sub
>r<hyp
/>1</sub> </tabampcell></arrayrow></arrbody></array></bal> <spc
/><eqs
/>
     <spc
/><bal
><array
><arrhead
><arrcols
>rr</arrcols></arrhead><arrbody
><arrayrow
><firstacell
>t<sub
>r</sub> </firstacell><tabampcell
>  1 </tabampcell></arrayrow><arrayrow
><firstcell
>1 </firstcell><tabampcell
>  0 </tabampcell></arrayrow></arrbody></array></bal> <hsp
/> <ldots
/> <hsp
/> <bal
><array
><arrhead
><arrcols
>rr</arrcols></arrhead><arrbody
><arrayrow
><firstacell
>t<sub
>2</sub> </firstacell><tabampcell
>  1 </tabampcell></arrayrow><arrayrow
><firstcell
>1 </firstcell><tabampcell
>  0 </tabampcell></arrayrow></arrbody></array></bal> <hsp
/>
         <bal
><array
><arrhead
><arrcols
>rr</arrcols></arrhead><arrbody
><arrayrow
><firstacell
>t<sub
>1</sub> </firstacell><tabampcell
>  1 </tabampcell></arrayrow><arrayrow
><firstcell
>1 </firstcell><tabampcell
>  0 </tabampcell></arrayrow></arrbody></array></bal> </eqnline></equation>
for each integer <hsp
/><tmath
>r <geq
/> 1</tmath><aos
/></asstbody></assertion>

<assertion
><assthead
><asstkey
>pqiden</asstkey><asstser
>corollaries</asstser><asstname
>Corollary</asstname><asstid
><evalref
><popkey
/></evalref></asstid></assthead><asstbody
>One has the identity
<math
>p<sub
>r</sub> q<sub
>r<hyp
/>1</sub> <hyp
/> q<sub
>r</sub> p<sub
>r<hyp
/>1</sub> <eqs
/> (<hyp
/>1)<sup
>r</sup></math> for each
integer <hsp
/><tmath
>r <geq
/> 1</tmath><aos
/></asstbody></assertion></parb><parb
><emph
>Proof.</emph><spc
/>  The number <math
>p<sub
>r</sub> q<sub
>r<hyp
/>1</sub> <hyp
/> q<sub
>r</sub> p<sub
>r<hyp
/>1</sub></math> is the
determinant of the matrix <hsp
/><tmath
>M<sub
>r</sub></tmath><aos
/>   From the formula (<anch
><anchref
>iref="Mrcomp"</anchref><anchv
><ref
>Mrcomp</ref></anchv></anch>)
the matrix <math
>M<sub
>r</sub></math> is the product of <tmath
>r</tmath> matrix factors, each of
which has determinant <tmath
><hyp
/>1</tmath><aos
/>   Since the determinant of the product
of matrices is the product of the determinants of the factors, it is
clear that <hsp
/><tmath
> <mbox
>det</mbox>(M<sub
>r</sub>) <eqs
/> (<hyp
/>1)<sup
>r</sup></tmath><aos
/>

<assertion
><assthead
><asstkey
>viden</asstkey><asstser
>corollaries</asstser><asstname
>Corollary</asstname><asstid
><evalref
><popkey
/></evalref></asstid></assthead><asstbody
>One has the vector identity
<equation nonum="false"
><eqnkey
>prqr<hyp
/>vec</eqnkey><eqnser
>eqn</eqnser><eqnline
><bal
><array
><arrhead
><arrcols
>r</arrcols></arrhead><arrbody
><arrayrow
><firstacell
>p<sub
>r</sub> </firstacell></arrayrow><arrayrow
><firstcell
>q<sub
>r</sub> </firstcell></arrayrow></arrbody></array></bal> <spc
/><eqs
/>
     <spc
/><bal
><array
><arrhead
><arrcols
>rr</arrcols></arrhead><arrbody
><arrayrow
><firstacell
>t<sub
>1</sub> </firstacell><tabampcell
>  1 </tabampcell></arrayrow><arrayrow
><firstcell
>1 </firstcell><tabampcell
>  0 </tabampcell></arrayrow></arrbody></array></bal> <hsp
/> <bal
><array
><arrhead
><arrcols
>rr</arrcols></arrhead><arrbody
><arrayrow
><firstacell
>t<sub
>2</sub> </firstacell><tabampcell
>  1 </tabampcell></arrayrow><arrayrow
><firstcell
>1 </firstcell><tabampcell
>  0 </tabampcell></arrayrow></arrbody></array></bal> <hsp
/>
          <ldots
/> <hsp
/> <bal
><array
><arrhead
><arrcols
>rr</arrcols></arrhead><arrbody
><arrayrow
><firstacell
>t<sub
>r</sub> </firstacell><tabampcell
>  1 </tabampcell></arrayrow><arrayrow
><firstcell
>1 </firstcell><tabampcell
>  0 </tabampcell></arrayrow></arrbody></array></bal> <hsp
/> <bal
><array
><arrhead
><arrcols
>r</arrcols></arrhead><arrbody
><arrayrow
><firstacell
>1 </firstacell></arrayrow><arrayrow
><firstcell
>0 </firstcell></arrayrow></arrbody></array></bal> </eqnline></equation>
for each integer <hsp
/><tmath
>r <geq
/> 1</tmath><aos
/></asstbody></assertion></parb><parb
><emph
>Proof.</emph><spc
/>  First recall <iseq
>(i)</iseq> that the product of a matrix and a (column)
vector is defined by the relation
<displaymath
> <bal
><array
><arrhead
><arrcols
>rr</arrcols></arrhead><arrbody
><arrayrow
><firstacell
>a </firstacell><tabampcell
>  b </tabampcell></arrayrow><arrayrow
><firstcell
>c </firstcell><tabampcell
>  d </tabampcell></arrayrow></arrbody></array></bal> <hsp
/> <bal
><array
><arrhead
><arrcols
>r</arrcols></arrhead><arrbody
><arrayrow
><firstacell
>x </firstacell></arrayrow><arrayrow
><firstcell
>y </firstcell></arrayrow></arrbody></array></bal> <spc
/><eqs
/> <spc
/><bal
><array
><arrhead
><arrcols
>r</arrcols></arrhead><arrbody
><arrayrow
><firstacell
>ax <plu
/> by </firstacell></arrayrow><arrayrow
><firstcell
>cx <plu
/> dy </firstcell></arrayrow></arrbody></array></bal> <spc
/>, </displaymath>
<iseq
>(ii)</iseq> that the <emph
>transpose</emph> of a matrix is the matrix whose rows
are the columns of the given matrix, and <iseq
>(iii)</iseq> that the transpose
operation reverses matrix multiplication<eos
/>  One tranposes both sides of
the relation (<anch
><anchref
>iref="prqr<hyp
/>row"</anchref><anchv
><ref
>prqr<hyp
/>row</ref></anchv></anch>) to obtain:
<equation nonum="false"
><eqnkey
>prqr<hyp
/>col</eqnkey><eqnser
>eqn</eqnser><eqnline
><bal
><array
><arrhead
><arrcols
>rr</arrcols></arrhead><arrbody
><arrayrow
><firstacell
>p<sub
>r</sub> </firstacell><tabampcell
>  p<sub
>r<hyp
/>1</sub> </tabampcell></arrayrow><arrayrow
><firstcell
>q<sub
>r</sub> </firstcell><tabampcell
>  q<sub
>r<hyp
/>1</sub> </tabampcell></arrayrow></arrbody></array></bal> <spc
/><eqs
/>
     <spc
/><bal
><array
><arrhead
><arrcols
>rr</arrcols></arrhead><arrbody
><arrayrow
><firstacell
>t<sub
>1</sub> </firstacell><tabampcell
>  1 </tabampcell></arrayrow><arrayrow
><firstcell
>1 </firstcell><tabampcell
>  0 </tabampcell></arrayrow></arrbody></array></bal> <hsp
/> <bal
><array
><arrhead
><arrcols
>rr</arrcols></arrhead><arrbody
><arrayrow
><firstacell
>t<sub
>2</sub> </firstacell><tabampcell
>  1 </tabampcell></arrayrow><arrayrow
><firstcell
>1 </firstcell><tabampcell
>  0 </tabampcell></arrayrow></arrbody></array></bal> <hsp
/>
         <ldots
/> <hsp
/> <bal
><array
><arrhead
><arrcols
>rr</arrcols></arrhead><arrbody
><arrayrow
><firstacell
>t<sub
>r</sub> </firstacell><tabampcell
>  1 </tabampcell></arrayrow><arrayrow
><firstcell
>1 </firstcell><tabampcell
>  0 </tabampcell></arrayrow></arrbody></array></bal> <eos
/></eqnline></equation>
To this relation one applies the principle that the first column of
any <tmath
>2 <times
/> 2</tmath> matrix is the product of that matrix with the
column
<displaymath
> <bal
><array
><arrhead
><arrcols
>r</arrcols></arrhead><arrbody
><arrayrow
><firstacell
>1 </firstacell></arrayrow><arrayrow
><firstcell
>0 </firstcell></arrayrow></arrbody></array></bal> </displaymath>
in order to obtain the column identity (<anch
><anchref
>iref="prqr<hyp
/>vec"</anchref><anchv
><ref
>prqr<hyp
/>vec</ref></anchv></anch>)<eos
/>

<assertion
><assthead
><asstkey
></asstkey><asstser
>theorems</asstser><asstname
>Theorem</asstname><asstid
><evalref
><popkey
/></evalref></asstid></assthead><asstbody
>For any sequence <math
><lbr
/>t<sub
>j</sub><rbr
/>, <hsp
/> j <geq
/> 1</math> of
real numbers, if <math
><lbr
/>p<sub
>j</sub><rbr
/></math> and <math
><lbr
/>q<sub
>j</sub><rbr
/></math> are the sequences
defined by the double recursions (<anch
><anchref
>iref="pdef"</anchref><anchv
><ref
>pdef</ref></anchv></anch>) and (<anch
><anchref
>iref="qdef"</anchref><anchv
><ref
>qdef</ref></anchv></anch>), and
if <math
>t<sub
>j</sub> <geq
/> 1</math> for <hsp
/><tmath
>j <geq
/> 2</tmath><aoc
/> then the value of the symbol
<math
> [t<sub
>1</sub>, <ldots
/>, t<sub
>r</sub>]</math> is given by the formula
<equation nonum="false"
><eqnkey
>t<hyp
/>comp</eqnkey><eqnser
>eqn</eqnser><eqnline
>[t<sub
>1</sub>, <hsp
/> t<sub
>2</sub>, <hsp
/> <ldots
/>, <hsp
/> t<sub
>r</sub>] <spc
/><eqs
/> <spc
/><frac
><numr
>p<sub
>r</sub></numr><denm
>q<sub
>r</sub></denm></frac>
   <text
><spc
/><spc
/>for<spc
/><spc
/></text> r <geq
/> 1 <spc
/><eos
/></eqnline></equation></asstbody></assertion></parb><parb
><emph
>Proof.</emph><spc
/>  What is slightly strange about this important
result is that while the <math
><lbr
/>p<sub
>r</sub><rbr
/></math> and the <math
><lbr
/>q<sub
>r</sub><rbr
/></math> are
defined by the <emph
>front end</emph> recursions, albeit double recursions,
(<anch
><anchref
>iref="pdef"</anchref><anchv
><ref
>pdef</ref></anchv></anch>) and (<anch
><anchref
>iref="qdef"</anchref><anchv
><ref
>qdef</ref></anchv></anch>), the symbol <math
> [t<sub
>1</sub>, <ldots
/>, t<sub
>r</sub>]</math>
is defined by the <emph
>back end</emph> recursion (<anch
><anchref
>iref="t<hyp
/>rec"</anchref><anchv
><ref
>t<hyp
/>rec</ref></anchv></anch>)<eos
/>  The proof
begins with the comment that the right<hyp
/>hand side of (<anch
><anchref
>iref="t<hyp
/>comp"</anchref><anchv
><ref
>t<hyp
/>comp</ref></anchv></anch>)
does not make sense unless one can be sure that the denominator
<hsp
/><tmath
>q<sub
>r</sub> <neq
/> 0</tmath><aos
/>  One can show easily by induction on <tmath
>r</tmath> that
<math
>q<sub
>r</sub> <geq
/> 1</math> for <math
>r <geq
/> 1</math> under the hypothesis <math
>t<sub
>j</sub> <geq
/> 1</math>
for <hsp
/><tmath
>j <geq
/> 2</tmath><aos
/></parb><parb
>The proof proceeds by induction on <tmath
>r</tmath><aos
/>   If <hsp
/><tmath
>r <eqs
/> 1</tmath><aoc
/> <spc
/>the
assertion of the theorem is simply the statement <hsp
/><tmath
>t<sub
>1</sub> <eqs
/> p<sub
>1</sub><sol mml="mo"
/>q<sub
>1</sub></tmath><aoc
/>
<spc
/>and, as noted above, <math
>p<sub
>1</sub><eqs
/>t<sub
>1</sub></math> and <hsp
/><tmath
>q<sub
>1</sub><eqs
/>1</tmath><aos
/>   Assume now
that <hsp
/><tmath
>r <geq
/> 2</tmath><aos
/>   By induction we may assume the correctness of
the statement (<anch
><anchref
>iref="t<hyp
/>comp"</anchref><anchv
><ref
>t<hyp
/>comp</ref></anchv></anch>) for symbols of length <tmath
>r<hyp
/>1</tmath><aoc
/> <spc
/>and,
therefore, for the symbol <hsp
/><tmath
>[t<sub
>2</sub>, <ldots
/>, t<sub
>r</sub>]</tmath><aos
/>  That case of the
statement says that <math
>[t<sub
>2</sub>, <ldots
/>, t<sub
>r</sub>]</math> must be equal to <hsp
/><tmath
>a<sol mml="mo"
/>c<hsp
/></tmath><aoc
/>
where by corollary <anch
><anchref
>iref="viden"</anchref><anchv
><ref
>viden</ref></anchv></anch>
<displaymath
> <bal
><array
><arrhead
><arrcols
>r</arrcols></arrhead><arrbody
><arrayrow
><firstacell
>a </firstacell></arrayrow><arrayrow
><firstcell
>c </firstcell></arrayrow></arrbody></array></bal> <eqs
/> <bal
><array
><arrhead
><arrcols
>rr</arrcols></arrhead><arrbody
><arrayrow
><firstacell
>a </firstacell><tabampcell
>  b </tabampcell></arrayrow><arrayrow
><firstcell
>c </firstcell><tabampcell
>  d </tabampcell></arrayrow></arrbody></array></bal> <hsp
/> <bal
><array
><arrhead
><arrcols
>r</arrcols></arrhead><arrbody
><arrayrow
><firstacell
>1 </firstacell></arrayrow><arrayrow
><firstcell
>0 </firstcell></arrayrow></arrbody></array></bal> </displaymath>
with
<displaymath
> <bal
><array
><arrhead
><arrcols
>rr</arrcols></arrhead><arrbody
><arrayrow
><firstacell
>a </firstacell><tabampcell
>  b </tabampcell></arrayrow><arrayrow
><firstcell
>c </firstcell><tabampcell
>  d </tabampcell></arrayrow></arrbody></array></bal> <spc
/><eqs
/> <spc
/><bal
><array
><arrhead
><arrcols
>rr</arrcols></arrhead><arrbody
><arrayrow
><firstacell
>t<sub
>2</sub> </firstacell><tabampcell
>  1 </tabampcell></arrayrow><arrayrow
><firstcell
>1 </firstcell><tabampcell
>  0 </tabampcell></arrayrow></arrbody></array></bal> <hsp
/>
         <ldots
/> <hsp
/> <bal
><array
><arrhead
><arrcols
>rr</arrcols></arrhead><arrbody
><arrayrow
><firstacell
>t<sub
>r</sub> </firstacell><tabampcell
>  1 </tabampcell></arrayrow><arrayrow
><firstcell
>1 </firstcell><tabampcell
>  0 </tabampcell></arrayrow></arrbody></array></bal> <eos
/></displaymath>
Now by (<anch
><anchref
>iref="t<hyp
/>rec"</anchref><anchv
><ref
>t<hyp
/>rec</ref></anchv></anch>)
<displaymath
> [t<sub
>1</sub>, <hsp
/> t<sub
>2</sub>, <hsp
/> <ldots
/>, <hsp
/> t<sub
>r</sub>] <spc
/><eqs
/> <spc
/>t<sub
>1</sub> <plu
/> <frac
><numr
>1</numr><denm
>a<sol mml="mo"
/>c</denm></frac> <spc
/><eqs
/>
  <spc
/>t<sub
>1</sub> <plu
/> <frac
><numr
>c</numr><denm
>a</denm></frac> <spc
/><eqs
/> <spc
/><frac
><numr
>at<sub
>1</sub> <plu
/> c</numr><denm
>a</denm></frac> <eos
/></displaymath>
But by corollary <anch
><anchref
>iref="viden"</anchref><anchv
><ref
>viden</ref></anchv></anch> again
<displaymath
> <bal
><array
><arrhead
><arrcols
>r</arrcols></arrhead><arrbody
><arrayrow
><firstacell
>p<sub
>r</sub> </firstacell></arrayrow><arrayrow
><firstcell
>q<sub
>r</sub> </firstcell></arrayrow></arrbody></array></bal> <spc
/><eqs
/> <spc
/><bal
><array
><arrhead
><arrcols
>rr</arrcols></arrhead><arrbody
><arrayrow
><firstacell
>t<sub
>1</sub> </firstacell><tabampcell
>  1 </tabampcell></arrayrow><arrayrow
><firstcell
>1 </firstcell><tabampcell
>  0 </tabampcell></arrayrow></arrbody></array></bal> <hsp
/> <bal
><array
><arrhead
><arrcols
>rr</arrcols></arrhead><arrbody
><arrayrow
><firstacell
>a </firstacell><tabampcell
>  b </tabampcell></arrayrow><arrayrow
><firstcell
>c </firstcell><tabampcell
>  d </tabampcell></arrayrow></arrbody></array></bal> <hsp
/>
     <bal
><array
><arrhead
><arrcols
>r</arrcols></arrhead><arrbody
><arrayrow
><firstacell
>1 </firstacell></arrayrow><arrayrow
><firstcell
>0 </firstcell></arrayrow></arrbody></array></bal> <spc
/><eqs
/> <spc
/><bal
><array
><arrhead
><arrcols
>rr</arrcols></arrhead><arrbody
><arrayrow
><firstacell
>at<sub
>1</sub> <plu
/> c </firstacell><tabampcell
>  bt<sub
>1</sub> <plu
/> d </tabampcell></arrayrow><arrayrow
><firstcell
>a </firstcell><tabampcell
>  b </tabampcell></arrayrow></arrbody></array></bal> <hsp
/>
     <bal
><array
><arrhead
><arrcols
>r</arrcols></arrhead><arrbody
><arrayrow
><firstacell
>1 </firstacell></arrayrow><arrayrow
><firstcell
>0 </firstcell></arrayrow></arrbody></array></bal> <spc
/><eqs
/>  <spc
/><bal
><array
><arrhead
><arrcols
>r</arrcols></arrhead><arrbody
><arrayrow
><firstacell
>at<sub
>1</sub> <plu
/> c </firstacell></arrayrow><arrayrow
><firstcell
>a </firstcell></arrayrow></arrbody></array></bal> <eos
/></displaymath>
Hence,
<displaymath
> <frac
><numr
>p<sub
>r</sub></numr><denm
>q<sub
>r</sub></denm></frac> <spc
/><eqs
/> <spc
/><frac
><numr
>at<sub
>1</sub> <plu
/> c</numr><denm
>a</denm></frac> <spc
/><eqs
/>
  <spc
/>[t<sub
>1</sub>, <hsp
/> t<sub
>2</sub>, <hsp
/> <ldots
/>, <hsp
/> t<sub
>r</sub>] <eos
/></displaymath>
</parb><section
>Application to Continued Fractions</section><parb
>Recall that <math
> [n<sub
>1</sub>, n<sub
>2</sub>, <ldots
/> ] </math> is called a continued fraction
only when each <tmath
>n<sub
>j</sub></tmath> is an integer and <math
>n<sub
>j</sub> <geq
/> 1</math> for <hsp
/><tmath
>j <geq
/>
2</tmath><aos
/>  <spc
/>The sequence <math
>n<sub
>1</sub>, n<sub
>2</sub>, <ldots
/></math> may be finite or
infinite<eos
/>   The symbol <math
> c<sub
>r</sub> <hsp
/> <eqs
/> <hsp
/><hsp
/> [n<sub
>1</sub>, n<sub
>2</sub>, <ldots
/>, n<sub
>r</sub>] </math>
formed with the first <tmath
>r</tmath> terms of the sequence, is called the
<tmath
>r<sup
><mbox
><emph
>th</emph></mbox></sup></tmath> <emph
>convergent</emph> of the continued fraction<eos
/>
Associated with a given sequence <math
>n<sub
>1</sub>, n<sub
>2</sub>, <ldots
/> </math> are two sequences
<math
>p<sub
>1</sub>, p<sub
>2</sub>, <ldots
/> </math> and <math
>q<sub
>1</sub>, q<sub
>2</sub>, <ldots
/> </math> that are given,
according to the double recursions (<anch
><anchref
>iref="pdef"</anchref><anchv
><ref
>pdef</ref></anchv></anch>), (<anch
><anchref
>iref="qdef"</anchref><anchv
><ref
>qdef</ref></anchv></anch>) of the
previous section with <hsp
/><tmath
>t<sub
>j</sub> <eqs
/> n<sub
>j</sub></tmath><aos
/>

<assertion
><assthead
><asstkey
></asstkey><asstser
>propositions</asstser><asstname
>Proposition</asstname><asstid
><evalref
><popkey
/></evalref></asstid></assthead><asstbody
>If <math
> [n<sub
>1</sub>, n<sub
>2</sub>, <ldots
/>] </math> is a continued
fraction, then the integers <tmath
>p<sub
>r</sub></tmath> and <tmath
>q<sub
>r</sub></tmath> are coprime for each
<hsp
/><tmath
>r <geq
/> 1</tmath><aos
/></asstbody></assertion></parb><parb
><emph
>Proof.</emph><spc
/>  By Corollary <anch
><anchref
>iref="pqiden"</anchref><anchv
><ref
>pqiden</ref></anchv></anch> of the previous section
<hsp
/><tmath
>p<sub
>r</sub> q<sub
>r<hyp
/>1</sub> <hyp
/> q<sub
>r</sub> p<sub
>r<hyp
/>1</sub> <eqs
/> (<hyp
/>1)<sup
>r</sup></tmath><aos
/>   Hence, any positive
divisor of both <tmath
>p<sub
>r</sub></tmath> and <tmath
>q<sub
>r</sub></tmath> must divide the left<hyp
/>hand side of
this relation, and, therefore, must also divide <tmath
>(<hyp
/>1)<sup
>r</sup></tmath><aos
/>

<assertion
><assthead
><asstkey
></asstkey><asstser
>propositions</asstser><asstname
>Proposition</asstname><asstid
><evalref
><popkey
/></evalref></asstid></assthead><asstbody
>The difference between successive convergents
of the continued fraction <math
> [n<sub
>1</sub>, n<sub
>2</sub>, <ldots
/>] </math> is given by
the formula
<equation nonum="false"
><eqnkey
>convgtdiff</eqnkey><eqnser
>eqn</eqnser><eqnline
>c<sub
>r</sub> <hyp
/> c<sub
>r<hyp
/>1</sub> <spc
/><eqs
/> <spc
/><frac
><numr
>(<hyp
/>1)<sup
>r</sup></numr><denm
>q<sub
>r</sub> q<sub
>r<hyp
/>1</sub></denm></frac> <text
><spc
/><spc
/>for<spc
/><spc
/></text>
      r <geq
/> 2 <eos
/></eqnline></equation></asstbody></assertion></parb><parb
><emph
>Proof.</emph><spc
/>  According to the theorem (formula <anch
><anchref
>iref="t<hyp
/>comp"</anchref><anchv
><ref
>t<hyp
/>comp</ref></anchv></anch>) at the
end of the last section the convergent <tmath
>c<sub
>r</sub></tmath> is given by
<displaymath
> c<sub
>r</sub> <spc
/><eqs
/> <spc
/><frac
><numr
>p<sub
>r</sub></numr><denm
>q<sub
>r</sub></denm></frac> <eos
/></displaymath>
Hence,
<eqnarray nonum="true"
><eqnabody
><eqnrow
><eqnleft
><spc
/>c<sub
>r</sub> <hyp
/> c<sub
>r<hyp
/>1</sub> </eqnleft><tabampcell
>  <spc
/><eqs
/> <spc
/></tabampcell><tabampcell
>  <frac
><numr
>p<sub
>r</sub></numr><denm
>q<sub
>r</sub></denm></frac> <hsp
/> <hyp
/>
                                   <hsp
/> <frac
><numr
>p<sub
>r<hyp
/>1</sub></numr><denm
>q<sub
>r<hyp
/>1</sub></denm></frac> </tabampcell></eqnrow><eqnrow
><firstcell
><spc
/>              </firstcell><tabampcell
>  <spc
/><eqs
/> <spc
/></tabampcell><tabampcell
>  <frac
><numr
>p<sub
>r</sub> q<sub
>r<hyp
/>1</sub> <hyp
/> p<sub
>r<hyp
/>1</sub> q<sub
>r</sub></numr><denm
>q<sub
>r</sub> q<sub
>r<hyp
/>1</sub></denm></frac> </tabampcell></eqnrow
><eqnrow
><firstcell
><spc
/>              </firstcell><tabampcell
>  <spc
/><eqs
/> <spc
/></tabampcell><tabampcell
>  <frac
><numr
>(<hyp
/>1)<sup
>r</sup></numr><denm
>q<sub
>r</sub> q<sub
>r<hyp
/>1</sub></denm></frac> <spc
/><eos
/></tabampcell></eqnrow
></eqnabody></eqnarray>
(The last step is by Corollary <anch
><anchref
>iref="pqiden"</anchref><anchv
><ref
>pqiden</ref></anchv></anch> above.)

<assertion
><assthead
><asstkey
></asstkey><asstser
>remarks</asstser><asstname
>Remark</asstname><asstid
><evalref
><popkey
/></evalref></asstid></assthead><asstbody
>The formula (<anch
><anchref
>iref="convgtdiff"</anchref><anchv
><ref
>convgtdiff</ref></anchv></anch>) remains true if
<math
> c<sub
>r</sub> <eqs
/> [t<sub
>1</sub>, <ldots
/>, t<sub
>r</sub>] </math> where the <tmath
>t<sub
>j</sub></tmath> are real numbers
subject to the assumption <math
>t<sub
>j</sub> <geq
/> 1</math> for <hsp
/><tmath
>j  <geq
/> 1</tmath><aos
/></asstbody></assertion>

<assertion
><assthead
><asstname
>Lemma</asstname><asstid
><empty
/></asstid></assthead><asstbody
>The sequence <math
><lbr
/>q<sub
>j</sub><rbr
/></math> is a strictly
increasing sequence for <hsp
/><tmath
>j <geq
/> 2</tmath><aos
/></asstbody></assertion></parb><parb
><emph
>Proof.</emph><spc
/>  This is easily proved by induction from the recursive
definition (<anch
><anchref
>iref="qdef"</anchref><anchv
><ref
>qdef</ref></anchv></anch>) of the sequence<eos
/>

<assertion
><assthead
><asstkey
></asstkey><asstser
>theorems</asstser><asstname
>Theorem</asstname><asstid
><evalref
><popkey
/></evalref></asstid></assthead><asstbody
>If <math
> [n<sub
>1</sub>, n<sub
>2</sub>, <ldots
/>] </math> is an infinite
continued fraction, then the limit
<displaymath
> <func
>lim</func><sub
>r <rightarrow
/> <infty
/></sub> <spc
/><frac
><numr
>p<sub
>r</sub></numr><denm
>q<sub
>r</sub></denm></frac> </displaymath>
always exists<eos
/></asstbody></assertion></parb><parb
><emph
>Proof.</emph><spc
/>  As one plots the convergents <tmath
>c<sub
>r</sub></tmath> on the line of real
numbers, one moves alternately right and left<eos
/>   The formula
(<anch
><anchref
>iref="convgtdiff"</anchref><anchv
><ref
>convgtdiff</ref></anchv></anch>) for the difference between successive convergents
elucidates not only the fact of alternate right and left movement but
also the fact that each successive movement is smaller than the one
preceding<eos
/>   Therefore, one has
<displaymath
> c<sub
>1</sub> <ltc
/> c<sub
>3</sub> <ltc
/> c<sub
>5</sub> <ltc
/> <ldots
/> <ltc
/> c<sub
>6</sub> <ltc
/> c<sub
>4</sub> <ltc
/> c<sub
>2</sub> <eos
/></displaymath>
Since any strictly increasing sequence of positive integers
must have infinite limit, the seqence <math
>q<sub
>j</sub> q<sub
>j<hyp
/>1</sub></math> has infinite
limit, and so the sequence of reciprocals <math
>1<sol mml="mo"
/>q<sub
>j</sub> q<sub
>j<hyp
/>1</sub></math> must
converge to zero<eos
/>  Hence, the sequences of odd<hyp
/> and even<hyp
/>indexed
convergents must have the same limit, which is the limit of the
sequence of all convergents<eos
/>

<assertion style="definition"
><assthead
><asstkey
></asstkey><asstser
>definitions</asstser><asstname
>Definition</asstname><asstid
><evalref
><popkey
/></evalref></asstid></assthead><asstbody
>The limit of the sequence of convergents of an
infinite continued fraction is called the <emph
>value</emph> of that
continued fraction<eos
/></asstbody></assertion>

<assertion
><assthead
><asstkey
></asstkey><asstser
>theorems</asstser><asstname
>Theorem</asstname><asstid
><evalref
><popkey
/></evalref></asstid></assthead><asstbody
>If <math
> [n<sub
>1</sub>, n<sub
>2</sub>, <ldots
/>] </math> is the continued
fraction expansion of an irrational number <tmath
>x</tmath><aoc
/>  <spc
/>then
<displaymath
> x <spc
/><eqs
/> <spc
/><func
>lim</func><sub
>r <rightarrow
/> <infty
/></sub> <spc
/><frac
><numr
>p<sub
>r</sub></numr><denm
>q<sub
>r</sub></denm></frac> <spc
/>; </displaymath>
that is, the <emph
>value</emph> of the continued fraction expansion of a real
number is that real number<eos
/></asstbody></assertion></parb><parb
><emph
>Proof.</emph><spc
/>  For each <math
>r <geq
/> 1</math> the continued fraction expansion
<math
> [n<sub
>1</sub>, n<sub
>2</sub>, <ldots
/>] </math> of <tmath
>x</tmath> is characterized by the identity
<equation nonum="false"
><eqnkey
>xconfrac</eqnkey><eqnser
>eqn</eqnser><eqnline
>x <eqs
/> [n<sub
>1</sub>, <hsp
/> n<sub
>2</sub>, <hsp
/> <ldots
/>, <hsp
/> n<sub
>r</sub> <plu
/> u<sub
>r</sub>] <spc
/>, </eqnline></equation>
where <tmath
>u<sub
>r</sub></tmath> is a real number with <hsp
/><tmath
>0 <leq
/> u<sub
>r</sub> <ltc
/> 1</tmath><aos
/>
The sequences of <tmath
>p</tmath><apos
/>s and <tmath
>q</tmath><apos
/>s for the symbol
<math
> [n<sub
>1</sub>, n<sub
>2</sub>, <ldots
/>, n<sub
>r</sub> <plu
/> u<sub
>r</sub>] </math> agree with those for the symbol
<math
> [n<sub
>1</sub>, n<sub
>2</sub>, <ldots
/>, n<sub
>r</sub>] </math> except for the <tmath
>r<sup
><mbox
>th</mbox></sup></tmath> terms<eos
/>
One has by (<anch
><anchref
>iref="t<hyp
/>comp"</anchref><anchv
><ref
>t<hyp
/>comp</ref></anchv></anch>)
<displaymath
> [n<sub
>1</sub>, <hsp
/> n<sub
>2</sub>, <hsp
/> <ldots
/>, <hsp
/> n<sub
>r</sub> <plu
/> u<sub
>r</sub>] <spc
/><eqs
/> <frac
><numr
>P<sub
>r</sub></numr><denm
>Q<sub
>r</sub></denm></frac> <spc
/>, </displaymath>
where by (<anch
><anchref
>iref="qdef"</anchref><anchv
><ref
>qdef</ref></anchv></anch>)
<eqnarray nonum="true"
><eqnabody
><eqnrow
><eqnleft
><spc
/> q<sub
>r</sub> </eqnleft><tabampcell
>  <spc
/><eqs
/> <spc
/></tabampcell><tabampcell
>    n<sub
>r</sub> q<sub
>r<hyp
/>1</sub> <hsp
/> <plu
/> <hsp
/> q<sub
>r<hyp
/>2</sub> </tabampcell></eqnrow><eqnrow
><firstcell
><spc
/> Q<sub
>r</sub> </firstcell><tabampcell
>  <spc
/><eqs
/> <spc
/></tabampcell><tabampcell
>   (n<sub
>r</sub> <plu
/> u<sub
>r</sub>) q<sub
>r<hyp
/>1</sub> <hsp
/> <plu
/> <hsp
/> q<sub
>r<hyp
/>2</sub></tabampcell></eqnrow
></eqnabody></eqnarray>
Hence,
<displaymath
> Q<sub
>r</sub> <spc
/><eqs
/> <spc
/>q<sub
>r</sub> <hsp
/> <plu
/> <hsp
/> u<sub
>r</sub> q<sub
>r<hyp
/>1</sub> <eos
/></displaymath>
Therefore, the displacement from <tmath
>c<sub
>r<hyp
/>1</sub></tmath> to <tmath
>x</tmath> is by (<anch
><anchref
>iref="convgtdiff"</anchref><anchv
><ref
>convgtdiff</ref></anchv></anch>)
<displaymath
> <frac
><numr
>(<hyp
/>1)<sup
>r</sup></numr><denm
>Q<sub
>r</sub> q<sub
>r<hyp
/>1</sub></denm></frac> <spc
/><eqs
/>
  <spc
/><frac
><numr
>(<hyp
/>1)<sup
>r</sup></numr><denm
>(q<sub
>r</sub> q<sub
>r<hyp
/>1</sub> <plu
/> u<sub
>r</sub> q<sub
>r<hyp
/>1</sub><sup
>2</sup>)</denm></frac> <spc
/>, </displaymath>
which is in the same direction but of smaller magnitude than the
displacement from <tmath
>c<sub
>r<hyp
/>1</sub></tmath> to <tmath
>c<sub
>r</sub></tmath><aos
/>  Therefore, <tmath
>x</tmath> must be larger
than every odd<hyp
/>indexed convergent and smaller than every even<hyp
/>indexed
convergent<eos
/>  But since all convergents have the same limit, that limit
must be <tmath
>x</tmath><aos
/>
</parb><section
>Bezout<apos
/>s Identity and the double recursion</section><parb
>It has already been observed that the process of finding the continued
fraction expansion of a rational number <hsp
/><tmath
>a<sol mml="mo"
/>b</tmath> (<tmath
>b <gtc
/> 0</tmath>), <spc
/>involves
the same series of long divisions that are used in the application of
the Euclidean algorithm to the pair of integers <tmath
>a</tmath> and <tmath
>b</tmath><aos
/>   Recall
that at each stage in the Euclidean algorithm the divisor for the current
stage is the remainder from the previous stage and the dividend for the
current stage is the divisor from the previous stage, or, equivalently,
the dividend for the current stage is the remainder from the second
previous stage<eos
/>   The Euclidean algorithm may thus be viewed as a double
recursion that is used to construct the sequence of remainders<eos
/>   One
starts the double recursion with
<displaymath
> r<sub
><hyp
/>1</sub> <eqs
/> a  <text
><spc
/><spc
/>and<spc
/><spc
/></text> r<sub
>0</sub> <eqs
/> b <eos
/></displaymath>
At the <tmath
>j<sup
><mbox
>th</mbox></sup></tmath> stage one performs long division of <tmath
>r<sub
>j<hyp
/>2</sub></tmath>
by <tmath
>r<sub
>j<hyp
/>1</sub></tmath> to obtain the integer quotient <tmath
>n<sub
>j</sub></tmath> and the integer
remainder <tmath
>r<sub
>j</sub></tmath> that satisfies <hsp
/><tmath
>0 <leq
/> r<sub
>j</sub> <ltc
/> r<sub
>j<hyp
/>1</sub></tmath><aos
/>   Thus,
<equation nonum="false"
><eqnkey
>remrec</eqnkey><eqnser
>eqn</eqnser><eqnline
>r<sub
>j</sub> <spc
/><eqs
/> <spc
/>r<sub
>j<hyp
/>2</sub> <hyp
/> n<sub
>j</sub> r<sub
>j<hyp
/>1</sub> <spc
/><eos
/></eqnline></equation>
The Euclidean algorithm admits an additional stage if <hsp
/><tmath
>r<sub
>j</sub> <gtc
/> 0</tmath><aos
/>
Since
<displaymath
> 0 <leq
/> r<sub
>j</sub> <ltc
/> r<sub
>j<hyp
/>1</sub> <ltc
/> <ldots
/> <ltc
/> r<sub
>2</sub> <ltc
/> r<sub
>1</sub> <ltc
/> r<sub
>0</sub> <eqs
/> b <spc
/>, </displaymath>
there can be at most <tmath
>b</tmath> stages<eos
/></parb><parb
>One may use the sequence of successive quotients <tmath
>n<sub
>j</sub></tmath> (<tmath
>j <geq
/> 1</tmath>)
<spc
/>to form sequences <math
><lbr
/>p<sub
>j</sub><rbr
/></math> and <hsp
/><tmath
><lbr
/>q<sub
>j</sub><rbr
/></tmath><aoc
/> <hsp
/> as in the
previous section, according to the double recursions:
<equation nonum="false"
><eqnkey
>npdef</eqnkey><eqnser
>eqn</eqnser><eqnline
>p<sub
>j</sub> <eqs
/> n<sub
>j</sub> p<sub
>j<hyp
/>1</sub><plu
/>p<sub
>j<hyp
/>2</sub><hsp
/> ,<spc
/>j <geq
/> 1 <hsp
/> ;<spc
/><spc
/>p<sub
>0</sub> <eqs
/> 1<hsp
/> ,<spc
/><spc
/>p<sub
><hyp
/>1</sub> <eqs
/> 0 <spc
/><eos
/></eqnline></equation>
<equation nonum="false"
><eqnkey
>nqdef</eqnkey><eqnser
>eqn</eqnser><eqnline
>q<sub
>j</sub> <eqs
/> n<sub
>j</sub> q<sub
>j<hyp
/>1</sub><plu
/>q<sub
>j<hyp
/>2</sub><hsp
/> ,<spc
/>j <geq
/> 1 <hsp
/> ;<spc
/><spc
/>q<sub
>0</sub> <eqs
/> 0<hsp
/> ,<spc
/><spc
/>q<sub
><hyp
/>1</sub> <eqs
/> 1 <spc
/><eos
/></eqnline></equation>
It has already been observed that <math
>q<sub
>j</sub> <geq
/> 1</math> for <math
>j <geq
/> 1</math> and
<displaymath
> [n<sub
>1</sub>,<hsp
/> n<sub
>2</sub>,<hsp
/> <ldots
/>,<hsp
/> n<sub
>j</sub>]<spc
/><eqs
/><spc
/><frac
><numr
>p<sub
>j</sub></numr><denm
>q<sub
>j</sub></denm></frac><hsp
/> ,<spc
/><spc
/>j <geq
/> 1 <eos
/></displaymath></parb><parb
>Bezout<apos
/>s Identity says not only that the greatest common divisor of <tmath
>a</tmath>
and <tmath
>b</tmath> is an integer linear combination of them but that the coefficents
in that integer linear combination may be taken, up to a sign, as <tmath
>q</tmath>
and <tmath
>p</tmath><aos
/>

<assertion
><assthead
><asstkey
></asstkey><asstser
>theorems</asstser><asstname
>Theorem</asstname><asstid
><evalref
><popkey
/></evalref></asstid></assthead><asstbody
>If the application of the Euclidean algorithm to
<tmath
>a</tmath> and <tmath
>b</tmath> (<tmath
>b <gtc
/> 0</tmath>) <spc
/>ends with the <tmath
>m<sup
><mbox
>th</mbox></sup></tmath> long division,
i.e., <hsp
/><tmath
>r<sub
>m</sub> <eqs
/> 0</tmath><aoc
/> <spc
/>then
<equation nonum="false"
><eqnkey
>bezout</eqnkey><eqnser
>eqn</eqnser><eqnline
>r<sub
>j</sub> <spc
/><eqs
/> <spc
/>(<hyp
/>1)<sup
>j<hyp
/>1</sup> <bal
>q<sub
>j</sub> a <hyp
/> p<sub
>j</sub> b </bal> <hsp
/> , <spc
/><spc
/>1 <leq
/> j <leq
/> m <spc
/><eos
/></eqnline></equation></asstbody></assertion></parb><parb
><emph
>Proof.</emph><spc
/>  One uses induction on <tmath
>j</tmath><aos
/> <spc
/>For <math
>j <eqs
/> 1</math> the statement
is <hsp
/><tmath
> r<sub
>1</sub> <eqs
/> q<sub
>1</sub> a <hyp
/> p<sub
>1</sub> b</tmath><aos
/>   Since by (<anch
><anchref
>iref="npdef"</anchref><anchv
><ref
>npdef</ref></anchv></anch>, <anch
><anchref
>iref="nqdef"</anchref><anchv
><ref
>nqdef</ref></anchv></anch>)
<math
>q<sub
>1</sub> <eqs
/> 1</math> and <hsp
/><tmath
>p<sub
>1</sub> <eqs
/> n<sub
>1</sub></tmath><aoc
/> <spc
/>this statement is simply the
case <math
>j <eqs
/> 1</math> in (<anch
><anchref
>iref="remrec"</anchref><anchv
><ref
>remrec</ref></anchv></anch>)<eos
/>    Assume <hsp
/><tmath
>j <geq
/> 2</tmath><aoc
/> and that
the formula (<anch
><anchref
>iref="bezout"</anchref><anchv
><ref
>bezout</ref></anchv></anch>) has been established for indices smaller than
<tmath
>j</tmath><aos
/>   By (<anch
><anchref
>iref="remrec"</anchref><anchv
><ref
>remrec</ref></anchv></anch>) one has
<displaymath
> r<sub
>j</sub> <spc
/><eqs
/> <spc
/>r<sub
>j<hyp
/>2</sub> <hyp
/> n<sub
>j</sub> r<sub
>j<hyp
/>1</sub> <eos
/></displaymath>
In this equation one may use (<anch
><anchref
>iref="bezout"</anchref><anchv
><ref
>bezout</ref></anchv></anch>) to expand the terms
<tmath
>r<sub
>j<hyp
/>2</sub></tmath> and <tmath
>r<sub
>j<hyp
/>1</sub></tmath> to obtain:
<eqnarray nonum="true"
><eqnabody
><eqnrow
><eqnleft
><spc
/>r<sub
>j</sub> </eqnleft><tabampcell
>  <spc
/><eqs
/> <spc
/></tabampcell><tabampcell
>  <balbr
>(<hyp
/>1)<sup
>j<hyp
/>3</sup>(q<sub
>j<hyp
/>2</sub>a <hyp
/> p<sub
>j<hyp
/>2</sub>b) </balbr> <hsp
/> <hyp
/> <hsp
/>
             n<sub
>j</sub> <balbr
>(<hyp
/>1)<sup
>j<hyp
/>2</sup>(q<sub
>j<hyp
/>1</sub>a <hyp
/> p<sub
>j<hyp
/>1</sub>b) </balbr>         </tabampcell></eqnrow><eqnrow
><firstcell
><spc
/>      </firstcell><tabampcell
>  <spc
/><eqs
/> <spc
/></tabampcell><tabampcell
>  <balbr
>(<hyp
/>1)<sup
>j<hyp
/>1</sup>(q<sub
>j<hyp
/>2</sub>a <hyp
/> p<sub
>j<hyp
/>2</sub>b) </balbr> <hsp
/> <plu
/> <hsp
/>
             n<sub
>j</sub> <balbr
>(<hyp
/>1)<sup
>j<hyp
/>1</sup>(q<sub
>j<hyp
/>1</sub>a <hyp
/> p<sub
>j<hyp
/>1</sub>b) </balbr>         </tabampcell></eqnrow
><eqnrow
><firstcell
><spc
/>      </firstcell><tabampcell
>  <spc
/><eqs
/> <spc
/></tabampcell><tabampcell
>  (<hyp
/>1)<sup
>j<hyp
/>1</sup><balbr
>(q<sub
>j<hyp
/>2</sub>a <hyp
/> p<sub
>j<hyp
/>2</sub>b) <hsp
/> <plu
/> <hsp
/>
                                 n<sub
>j</sub> (q<sub
>j<hyp
/>1</sub>a <hyp
/> p<sub
>j<hyp
/>1</sub>b) </balbr>     </tabampcell></eqnrow
><eqnrow
><firstcell
><spc
/>      </firstcell><tabampcell
>  <spc
/><eqs
/> <spc
/></tabampcell><tabampcell
>  (<hyp
/>1)<sup
>j<hyp
/>1</sup><balbr
>(q<sub
>j<hyp
/>2</sub> <plu
/> n<sub
>j</sub> q<sub
>j<hyp
/>1</sub>)a
                               <hyp
/> (p<sub
>j<hyp
/>2</sub> <plu
/> n<sub
>j</sub> p<sub
>j<hyp
/>1</sub>)b </balbr>      </tabampcell></eqnrow
><eqnrow
><firstcell
><spc
/>      </firstcell><tabampcell
>  <spc
/><eqs
/> <spc
/></tabampcell><tabampcell
>  (<hyp
/>1)<sup
>j<hyp
/>1</sup> <balbr
>q<sub
>j</sub> a <hyp
/> p<sub
>j</sub> b </balbr> <spc
/><eos
/></tabampcell></eqnrow
></eqnabody></eqnarray>

<assertion
><assthead
><asstkey
></asstkey><asstser
>corollaries</asstser><asstname
>Corollary</asstname><asstid
><evalref
><popkey
/></evalref></asstid></assthead><asstbody
>The greatest common divisor <tmath
>d</tmath> of <tmath
>a</tmath> and <tmath
>b</tmath>
is given by the formula
<equation nonum="false"
><eqnkey
>gcdbezout</eqnkey><eqnser
>eqn</eqnser><eqnline
>d <spc
/><eqs
/> <spc
/>(<hyp
/>1)<sup
>m</sup> (q<sub
>m<hyp
/>1</sub>a <hsp
/> <hyp
/> <hsp
/> p<sub
>m<hyp
/>1</sub> b) <hsp
/> ,</eqnline></equation>
where <tmath
>m</tmath> is the number of divisions required to obtain zero
remainder in the Euclidean algorithm<eos
/></asstbody></assertion></parb><parb
><emph
>Proof.</emph><spc
/>  One knows that <tmath
>d</tmath> is the last non<hyp
/>zero remainder
<tmath
>r<sub
>m<hyp
/>1</sub></tmath> in the Euclidean algorithm<eos
/>  This formula for <tmath
>d</tmath> is the
case <math
>j <eqs
/> m<hyp
/>1</math> in (<anch
><anchref
>iref="bezout"</anchref><anchv
><ref
>bezout</ref></anchv></anch>)<eos
/>

<assertion
><assthead
><asstkey
></asstkey><asstser
>corollaries</asstser><asstname
>Corollary</asstname><asstid
><evalref
><popkey
/></evalref></asstid></assthead><asstbody
><equation nonum="false"
><eqnkey
>checkbezout</eqnkey><eqnser
>eqn</eqnser><eqnline
>p<sub
>m</sub> <eqs
/> <frac
><numr
>a</numr><denm
>d</denm></frac> <hsp
/> , <spc
/><spc
/>q<sub
>m</sub> <eqs
/> <frac
><numr
>b</numr><denm
>d</denm></frac> <eos
/></eqnline></equation></asstbody></assertion></parb><parb
><emph
>Proof.</emph><spc
/>  The last remainder <hsp
/><tmath
>r<sub
>m</sub> <eqs
/> 0</tmath><aos
/>  The case <math
>j <eqs
/> m</math>
in (<anch
><anchref
>iref="bezout"</anchref><anchv
><ref
>bezout</ref></anchv></anch>) shows that <hsp
/><tmath
>a<sol mml="mo"
/>b <eqs
/> p<sub
>m</sub><sol mml="mo"
/>q<sub
>m</sub></tmath><aos
/>   Since, by the first
proposition of the preceding section, <tmath
>p<sub
>m</sub></tmath> and <tmath
>q<sub
>m</sub></tmath> have no common
factor, this corollary is evident<eos
/>
</parb><section
>The action of <math
><Sym key="GL"
><mbox
>GL</mbox></Sym><sub
>2</sub>(<Sym key="Z"
><regch
><bold
>Z</bold></regch></Sym>)</math> on the projective line</section><parb
>If <tmath
>a</tmath><aoc
/> <tmath
>b</tmath><aoc
/> <tmath
>c</tmath><aoc
/> <tmath
>d</tmath> are real
numbers with <math
> ad <hyp
/> bc <neq
/> 0</math><spc
/>and
<displaymath
> M <eqs
/> <bal
><array
><arrhead
><arrcols
>rr</arrcols></arrhead><arrbody
><arrayrow
><firstacell
>a </firstacell><tabampcell
>  b </tabampcell></arrayrow><arrayrow
><firstcell
>c </firstcell><tabampcell
>  d </tabampcell></arrayrow></arrbody></array></bal> </displaymath>
is the matrix with entries <tmath
>a</tmath><aoc
/> <tmath
>b</tmath><aoc
/> <tmath
>c</tmath><aoc
/> <spc
/>and <tmath
>d</tmath><aoc
/>
then  <hsp
/><tmath
>M <cdot
/> z</tmath><aoc
/> <hsp
/> for <tmath
>z</tmath> real, will denote the expression
<equation nonum="false"
><eqnkey
>glact</eqnkey><eqnser
>eqn</eqnser><eqnline
>M <cdot
/> z <spc
/><eqs
/> <spc
/><frac
><numr
>a z <spc
/><plu
/> <spc
/>b</numr><denm
>c z <spc
/><plu
/> <spc
/>d</denm></frac> <eos
/></eqnline></equation>
One calls <math
>M <cdot
/> z</math> the <emph
>action</emph> of <tmath
>M</tmath> on <tmath
>z</tmath><aos
/></parb><parb
><math
> M <cdot
/> z </math> is a perfectly good function of <tmath
>z</tmath> except for
the case <math
> z <eqs
/> <hyp
/> d<sol mml="mo"
/>c </math> where the denominator <math
>cz <plu
/> d</math> vanishes<eos
/>
If it were also true that <math
>az <plu
/> b <eqs
/> 0</math> for the same <tmath
>z</tmath><aoc
/> <hsp
/> then
one would have <hsp
/><tmath
> <hyp
/> b<sol mml="mo"
/>a <eqs
/> <hyp
/> d<sol mml="mo"
/>c</tmath><aoc
/> <hsp
/> in contradiction of the assumption
<hsp
/><tmath
> ad <hyp
/> bc <neq
/> 0</tmath><aos
/>   Thus, when <hsp
/><tmath
> z <eqs
/> <hyp
/> d<sol mml="mo"
/>c</tmath><aoc
/> <hsp
/> the
value of <tmath
><vbr
/>M <cdot
/> w<vbr
/></tmath> increases beyond all bounds as <tmath
>w</tmath> approaches <tmath
>z</tmath><aoc
/>
and it is convenient to say that
<displaymath
> M <cdot
/> <bal
><hyp
/> <frac
><numr
>d</numr><denm
>c</denm></frac></bal> <spc
/><eqs
/> <spc
/><infty
/> </displaymath>
where <tmath
><infty
/></tmath> is regarded as large and signless<eos
/>   If further it is agreed
to define
<displaymath
> M <cdot
/> <infty
/> <spc
/><eqs
/> <spc
/><frac
><numr
>a</numr><denm
>c</denm></frac> <hsp
/> , </displaymath>
which is the limiting value of <math
> M <cdot
/> w </math> as <tmath
><vbr
/>w<vbr
/></tmath> increases
without bound, then one may regard the expression <math
> M <cdot
/> z </math>
as being defined always for all real <tmath
>z</tmath> and for <tmath
><infty
/></tmath><eos
/>   The set
consisting of all real numbers and also the object (not a number)
<tmath
><infty
/></tmath> is called the <emph
>projective line</emph><eos
/>   The projective line is
therefore the union of the (ordinary) affine line with a single point
<tmath
><infty
/></tmath><aos
/>

<assertion
><assthead
><asstkey
></asstkey><asstser
>propositions</asstser><asstname
>Proposition</asstname><asstid
><evalref
><popkey
/></evalref></asstid></assthead><asstbody
>If <math
> [n<sub
>1</sub>, n<sub
>2</sub>, <ldots
/>] </math> is any continued
fraction, then
<equation nonum="false"
><eqnkey
>cfgl</eqnkey><eqnser
>eqn</eqnser><eqnline
>[n<sub
>1</sub>, n<sub
>2</sub>, <ldots
/>, n<sub
>r</sub>, n<sub
>r<plu
/>1</sub>, <ldots
/>] <spc
/><eqs
/> <spc
/>M <cdot
/> [n<sub
>r<plu
/>1</sub>, <ldots
/>] <spc
/><eos
/></eqnline></equation>
where
<displaymath
> M <spc
/><eqs
/> <spc
/><bal
><array
><arrhead
><arrcols
>rr</arrcols></arrhead><arrbody
><arrayrow
><firstacell
>n<sub
>1</sub> </firstacell><tabampcell
>  1 </tabampcell></arrayrow><arrayrow
><firstcell
>1 </firstcell><tabampcell
>  0 </tabampcell></arrayrow></arrbody></array></bal> <hsp
/> <ldots
/> <hsp
/> <bal
><array
><arrhead
><arrcols
>rr</arrcols></arrhead><arrbody
><arrayrow
><firstacell
>n<sub
>r</sub> </firstacell><tabampcell
>  1 </tabampcell></arrayrow><arrayrow
><firstcell
>1 </firstcell><tabampcell
>  0 </tabampcell></arrayrow></arrbody></array></bal> <eos
/></displaymath></asstbody></assertion></parb><parb
><emph
>Proof.</emph><spc
/>  Let <hsp
/><tmath
> z <eqs
/> [n<sub
>r<plu
/>1</sub>, <ldots
/>]</tmath><aos
/>  Then
<displaymath
> [n<sub
>1</sub>, n<sub
>2</sub>, <ldots
/>, n<sub
>r</sub>, n<sub
>r<plu
/>1</sub>, <ldots
/> ] <spc
/><eqs
/>
  <spc
/>[n<sub
>1</sub>, n<sub
>2</sub>, <ldots
/>, n<sub
>r</sub>, z ] <eos
/></displaymath>
The statement of the proposition now becomes
<displaymath
> [n<sub
>1</sub>, n<sub
>2</sub>, <ldots
/>, n<sub
>r</sub>, z ] <spc
/><eqs
/> <spc
/>M <cdot
/> z <eos
/></displaymath>
This may be seen to follow by multiplying both sides in formula
(<anch
><anchref
>iref="prqr<hyp
/>col"</anchref><anchv
><ref
>prqr<hyp
/>col</ref></anchv></anch>), after replacing <tmath
>t<sub
>j</sub></tmath> with <tmath
>n<sub
>j</sub></tmath>, by the column
<displaymath
> <bal
><array
><arrhead
><arrcols
>r</arrcols></arrhead><arrbody
><arrayrow
><firstacell
>z </firstacell></arrayrow><arrayrow
><firstcell
>1 </firstcell></arrayrow></arrbody></array></bal> <eos
/></displaymath></parb><parb
>The matrix <tmath
>M</tmath> in the preceding proposition is an integer matrix with
determinant <tmath
><pm
/> 1</tmath><aos
/>   The notation <math
><Sym key="GL"
><mbox
>GL</mbox></Sym><sub
>2</sub>(<Sym key="Z"
><regch
><bold
>Z</bold></regch></Sym>)</math> denotes the set
of all such matrices<eos
/>   (The <tmath
>2</tmath> indicates the size of the matrices,
and the <tmath
><Sym key="Z"
><regch
><bold
>Z</bold></regch></Sym></tmath> indicates that the entries in such matrices are numbers
in the set <tmath
><Sym key="Z"
><regch
><bold
>Z</bold></regch></Sym></tmath> of integers.) <spc
/>It is easy to check that the product of
two members of <math
><Sym key="GL"
><mbox
>GL</mbox></Sym><sub
>2</sub>(<Sym key="Z"
><regch
><bold
>Z</bold></regch></Sym>)</math> is a member of <math
><Sym key="GL"
><mbox
>GL</mbox></Sym><sub
>2</sub>(<Sym key="Z"
><regch
><bold
>Z</bold></regch></Sym>)</math> and
that the matrix inverse of a member of <math
><Sym key="GL"
><mbox
>GL</mbox></Sym><sub
>2</sub>(<Sym key="Z"
><regch
><bold
>Z</bold></regch></Sym>)</math> is a member
of <hsp
/><tmath
><Sym key="GL"
><mbox
>GL</mbox></Sym><sub
>2</sub>(<Sym key="Z"
><regch
><bold
>Z</bold></regch></Sym>)</tmath><aos
/>   Thus, <math
><Sym key="GL"
><mbox
>GL</mbox></Sym><sub
>2</sub>(<Sym key="Z"
><regch
><bold
>Z</bold></regch></Sym>)</math> forms what is called
a <emph
>group</emph><eos
/>  The formula (<anch
><anchref
>iref="glact"</anchref><anchv
><ref
>glact</ref></anchv></anch>) defines what is called the
<emph
>action</emph> of <math
><Sym key="GL"
><mbox
>GL</mbox></Sym><sub
>2</sub>(<Sym key="Z"
><regch
><bold
>Z</bold></regch></Sym>)</math> on the projective line<eos
/></parb><parb
>One says that two points <tmath
>z</tmath> and <tmath
>w</tmath> of the projective line are
<emph
>rationally equivalent</emph> if there is a matrix <tmath
>M</tmath> in <math
><Sym key="GL"
><mbox
>GL</mbox></Sym><sub
>2</sub>(<Sym key="Z"
><regch
><bold
>Z</bold></regch></Sym>)</math>
for which <hsp
/><tmath
>w <eqs
/> M <cdot
/> z</tmath><aos
/>   Since (i) <math
><Sym key="GL"
><mbox
>GL</mbox></Sym><sub
>2</sub>(<Sym key="Z"
><regch
><bold
>Z</bold></regch></Sym>)</math> is a group,
(ii) <hsp
/><tmath
>M<sub
>1</sub> <cdot
/> (M<sub
>2</sub> <cdot
/> z) <eqs
/> (M<sub
>1</sub> M<sub
>2</sub>) <cdot
/> z</tmath><aoc
/> and (iii)
<math
>w <eqs
/> M <cdot
/> z</math> if and only <hsp
/><tmath
>z <eqs
/> M<sup
><hyp
/>1</sup> <cdot
/> w</tmath><aoc
/> <hsp
/> it is easy to
see that every point of the projective line belongs to one and only one
rational equivalence class and that two points rationally equivalent to
a third must be rationally equivalent to each other<eos
/>

<assertion
><assthead
><asstname
>Terminology</asstname><asstid
><empty
/></asstid></assthead><asstbody
>The rational equivalence of points
on the projective line is said to be the equivalence relation on the
projective line defined by the action of <hsp
/><tmath
><Sym key="GL"
><mbox
>GL</mbox></Sym><sub
>2</sub>(<Sym key="Z"
><regch
><bold
>Z</bold></regch></Sym>)</tmath><aos
/></asstbody></assertion>

<assertion style="definition"
><assthead
><asstkey
></asstkey><asstser
>examples</asstser><asstname
>Example</asstname><asstid
><evalref
><popkey
/></evalref></asstid></assthead><asstbody
>The set of real numbers rationally equivalent to
the point <tmath
><infty
/></tmath> is precisely the set of rational numbers<eos
/></asstbody></assertion>

<assertion style="definition"
><assthead
><asstkey
></asstkey><asstser
>examples</asstser><asstname
>Example</asstname><asstid
><evalref
><popkey
/></evalref></asstid></assthead><asstbody
>The proposition above shows that any continued
fraction is rationally equivalent to each of its tails<eos
/>  It follows that
all tails of a continued fraction are rationally equivalent to each
other<eos
/></asstbody></assertion>
</parb><section
>Periodic continued fractions</section><parb
>In one of the first examples of a continued fraction expansion, it was
shown that <hsp
/><tmath
><sqrt
>10</sqrt> <eqs
/> [3,6,6,6,<ldots
/>]</tmath><aos
/>   This is an example of
a <emph
>periodic</emph> continued fraction<eos
/>   After a finite number of terms
the sequence of integers repeats cyclically<eos
/>   If a cyclic pattern is
present from the very first term, then the continued fraction is called
<emph
>purely periodic</emph><eos
/>  Evidently, <math
>[6,6,6,<ldots
/>] <eqs
/> <sqrt
>10</sqrt><hyp
/>3</math>
is an example of a purely periodic continued fraction<eos
/></parb><parb
>Note that a periodic continued fraction cannot represent a rational
number since the continued fraction expansion of a rational number is
finite<eos
/>

<assertion
><assthead
><asstkey
></asstkey><asstser
>theorems</asstser><asstname
>Theorem</asstname><asstid
><evalref
><popkey
/></evalref></asstid></assthead><asstbody
>Every periodic continued fraction is the continued
fraction expansion of a real quadratic irrational number<eos
/></asstbody></assertion></parb><parb
><emph
>Proof.</emph><spc
/>  For clarity: it is being asserted that every periodic
continued fraction represent a number of the form
<displaymath
> <frac
><numr
>a <plu
/> b<sqrt
>m</sqrt></numr><denm
>c</denm></frac> </displaymath>
where <tmath
>a</tmath><aoc
/> <tmath
>b</tmath><aoc
/> <tmath
>c</tmath><aoc
/> and <tmath
>m</tmath> are all integers with <hsp
/><tmath
>m <gtc
/> 0</tmath><aoc
/>
<hsp
/><tmath
>c <neq
/> 0</tmath><aoc
/> <hsp
/> and <tmath
>m</tmath> not a perfect square<eos
/></parb><parb
>Numbers of this form with fixed <tmath
>m</tmath> but varying integers <tmath
>a</tmath><aoc
/>
<tmath
>b</tmath><aoc
/> and <math
>c <neq
/> 0</math> may be added, subtracted, multiplied, and
divided without leaving the class of such numbers<eos
/>  (The statement
here about division becomes clear if one remembers always to
<emph
>rationalize</emph> denominators.) <spc
/>Consequently, for <tmath
>M</tmath> in
<math
><Sym key="GL"
><mbox
>GL</mbox></Sym><sub
>2</sub>(<Sym key="Z"
><regch
><bold
>Z</bold></regch></Sym>)</math> the number <math
>M <cdot
/> z</math> will be a number of this
form or <tmath
><infty
/></tmath> if and only if <tmath
>z</tmath> is in the same class<eos
/></parb><parb
>Since a periodic continued fraction is rationally equivalent to a
purely periodic continued fraction, the question of whether any
periodic continued fraction is a quadratic irrationality reduces to
the question of whether a purely periodic continued fraction is such<eos
/>
Let
<displaymath
> x <spc
/><eqs
/> <spc
/>[n<sub
>1</sub>, <ldots
/>, n<sub
>r</sub>, n<sub
>1</sub>, <ldots
/>, n<sub
>r</sub>, n<sub
>1</sub>, <ldots
/>, n<sub
>r</sub>, <ldots
/>] </displaymath>
be a purely periodic continued fraction<eos
/>   By the proposition of the
preceding section, <math
>x <eqs
/> M <cdot
/> x</math> where <tmath
>M</tmath> is notationally
identical to the <tmath
>M</tmath> in (<anch
><anchref
>iref="cfgl"</anchref><anchv
><ref
>cfgl</ref></anchv></anch>)<eos
/>   Ignoring the computation
(<anch
><anchref
>iref="prqr<hyp
/>col"</anchref><anchv
><ref
>prqr<hyp
/>col</ref></anchv></anch>) of <tmath
>M</tmath> in terms of convergents, let
<displaymath
> M <spc
/><eqs
/> <spc
/><bal
><array
><arrhead
><arrcols
>rr</arrcols></arrhead><arrbody
><arrayrow
><firstacell
>a </firstacell><tabampcell
>  b </tabampcell></arrayrow><arrayrow
><firstcell
>c </firstcell><tabampcell
>  d </tabampcell></arrayrow></arrbody></array></bal> <eos
/></displaymath>
Then
<displaymath
> x <spc
/><eqs
/> <frac
><numr
>ax <plu
/> b</numr><denm
>cx <plu
/> d</denm></frac> <spc
/>, </displaymath>
or, otherwise said, <tmath
>x</tmath> is a solution of the quadratic equation
<displaymath
> cx<sup
>2</sup> <hsp
/> <hyp
/> (a<hyp
/>d) x  <hyp
/> b <spc
/><eqs
/> <spc
/>0 <eos
/></displaymath>

<assertion
><assthead
><asstkey
></asstkey><asstser
>remarks</asstser><asstname
>Remark</asstname><asstid
><evalref
><popkey
/></evalref></asstid></assthead><asstbody
>It is conversely true that the continued fraction expansion of every
real quadratic irrationality is periodic<eos
/></asstbody></assertion></parb><parb
>This converse will not be proved here<eos
/>

</parb><thebibliography
><bibentry
><bibhead
><biblabel
></biblabel><bibkey
></bibkey></bibhead><bibbody
>  G. Chrystal, <slnt
>Algebra: An Elementary Textbook</slnt> (2 vols.),
            Chelsea<eos
/>
</bibbody></bibentry><bibentry
><bibhead
><biblabel
></biblabel><bibkey
></bibkey></bibhead><bibbody
>  G. Hardy <amp
/> E. Wright, <slnt
>An Introduction to the Theory
            of Numbers</slnt>, Oxford Univ. Press<eos
/>
</bibbody></bibentry><bibentry
><bibhead
><biblabel
></biblabel><bibkey
></bibkey></bibhead><bibbody
>  S. Lang, <slnt
>Introduction to Diophantine Approximations</slnt>,
            Addison<hyp
/>Wesley<eos
/>
</bibbody></bibentry><bibentry
><bibhead
><biblabel
></biblabel><bibkey
></bibkey></bibhead><bibbody
>  O. Perron, <slnt
>Die Lehre von den Kettenbr<umlau
>u</umlau>chen</slnt>, 2nd ed.,
            Chelsea<eos
/></bibbody></bibentry></thebibliography></body></article>
