09.12.2012 Views

Concrete mathematics : a foundation for computer science

Concrete mathematics : a foundation for computer science

Concrete mathematics : a foundation for computer science

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

6.7 CONTINUANTS 291<br />

Moreover, continuants are closely connected with the Stern-Brocot tree<br />

discussed in Chapter 4. Each node in that tree can be represented as a<br />

sequence of L’s and R'S, say<br />

RQO La’ R”Z L”’ . . . Ran-’ LO-“-’ , (6.137)<br />

where a0 3 0, al 3 1, a2 3 1, a3 3 1, . . . , a,-2 3 1, an 1 3 0, and n is<br />

even. Using the 2 x 2 matrices L and R of (4.33), it is not hard to prove by<br />

induction that the matrix equivalent of (6.137) is<br />

K,-2(al,. . . ) an-21 Kn-l(al,...,an-2,an I)<br />

K,-l(ao,al,...,an-2) Kn(ao,al,...,an~~2,an~l)<br />

(The proof is part of exercise 80.) For example,<br />

R”LbRcLd = bc + 1 bcd+b+d<br />

abc + a + c abcd+ab+ad+cd+l<br />

Finally, there<strong>for</strong>e, we can use (4.34) to write a closed <strong>for</strong>m <strong>for</strong> the fraction in<br />

the Stern-Brocot tree whose L-and-R representation is (6.137):<br />

f(R"" ., .L"-') := Kn+l(ao,al,...~an~l,l)<br />

K,(al,. . . , an-l, 1 I<br />

(6.139)<br />

(This is “Halphen’s theorem” [143].) For example, to find the fraction <strong>for</strong><br />

LRRL we have a0 = 0, a1 = 1, a2 = 2, a3 = 1, and n = 4; equation (6.13~)<br />

gives<br />

K(O, 1,&l, 1) KC4 1,l) U&2) 5<br />

K(l,Ll,l) = K(1,2,1,1) =-=-<br />

K(3,2) 7 ’<br />

(We have used the rule K,(xl,. . . ,x,-l, x, + 1) = K,+, (XI,. . . ,x,-r ,x,,, 1) to<br />

absorb leading and trailing l’s in the parameter lists; this rule is obtained by<br />

setting y = 1 in (6.136).)<br />

A comparison of (6.135) and (6.13~) shows that the fraction corresponding<br />

to a general node (6.137) in the Stern-Brocot tree has the continued<br />

fraction representation<br />

f(Rao.. . Lo-+’ ) = a0 +<br />

al +<br />

a2 +<br />

1<br />

. . . +<br />

1<br />

1<br />

1<br />

1<br />

an I+- 1<br />

(6.140)

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!