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.

118 NUMBER THEORY<br />

A mediant fraction isn’t halfway between its progenitors, but it does lie somewhere<br />

in between. There<strong>for</strong>e the construction preserves order, and we couldn’t<br />

possibly get the same fraction in two different places. True, but if you get<br />

One question still remains. Can any positive fraction a/b with a I b a comPound fracture<br />

you’d better go<br />

possibly be omitted? The answer is no, because we can confine the construe- see a doctor,<br />

tion to the immediate neighborhood of a/b, and in this region the behavior<br />

is easy to analyze: Initially we have<br />

m - 0<br />

n -7 0 and m-<br />

b n’ ;>o<br />

imply that<br />

hence<br />

an-bm 3 1 and bm’ - an’ 3 1;<br />

(m’+n’)(an-bm)+(m+n)(bm’-an’) 3 m’+n’+m+n;<br />

and this is the same as a + b 3 m’ + n’ + m + n by (4.31). Either m or n or<br />

m’ or n’ increases at each step, so we must win after at most a + b steps.<br />

The Farey series of order N, denoted by 3~, is the set of all reduced<br />

fractions between 0 and 1 whose denominators are N or less, arranged in<br />

increasing order. For example, if N = 6 we have<br />

36 = 0 11112 1.3 2 3 3 5 1<br />

1'6'5'4'3'5'2'5'3'4'5'6'1'<br />

We can obtain 3~ in general by starting with 31 = 9, f and then inserting<br />

mediants whenever it’s possible to do so without getting a denominator that<br />

is too large. We don’t miss any fractions in this way, because we know that<br />

the Stern-Brocot construction doesn’t miss any, and because a mediant with<br />

denominator 6 N is never <strong>for</strong>med from a fraction whose denominator is > N.<br />

(In other words, 3~ defines a subtree of the Stern-Brocot tree, obtained by

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

Saved successfully!

Ooh no, something went wrong!