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

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

292 SPECIAL NUMBERS<br />

Thus we can convert at sight between continued fractions and the corresponding<br />

nodes in the Stern-Brocot tree. For example,<br />

I<br />

f(LRRL) = 0+ ~~ 1 *<br />

l+-7<br />

2 $- -<br />

1,;<br />

We observed in Chapter 4 that irrational numbers define infinite paths<br />

in the Stern-Brocot tree, and that they can be represented as an infinite<br />

string of L’s and R’s. If the infinite string <strong>for</strong> a is RaoLal RaZL”3 . . . , there is<br />

a corresponding infinite continued fraction<br />

a = aof<br />

a1 + ~ 1<br />

a2 + -<br />

1<br />

a3 +<br />

1<br />

a4 +<br />

1<br />

1<br />

1<br />

a5 + -<br />

(‘3.141)<br />

This infinite continued fraction can also be obtained directly: Let CQ = a and<br />

<strong>for</strong> k 3 0 let<br />

ak = Lakj ;<br />

1<br />

ak = ak+-.<br />

Kkfl<br />

(6.142)<br />

The a’s are called the “partial quotients” of a. If a is rational, say m/n,<br />

this process runs through the quotients found by Euclid’s algorithm and then<br />

stops (with akfl = o0).<br />

Is Euler’s constant y rational or irrational? Nobody knows. We can get Or if they do,<br />

partial in<strong>for</strong>mation about this famous unsolved problem by looking <strong>for</strong> y in theY’re not ta’king.<br />

the Stern-Brocot tree; if it’s rational we will find it, and if it’s irrational we<br />

will find all the closest rational approximations to it. The continued fraction<br />

<strong>for</strong> y begins with the following partial quotients:<br />

There<strong>for</strong>e its Stern-Brocot representation begins LRLLRLLRLLLLRRRL . . ; no<br />

pattern is evident. Calculations by Richard Brent [33] have shown that, if y<br />

is rational, its denominator must be more than 10,000 decimal digits long.

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

Saved successfully!

Ooh no, something went wrong!