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.

294 SPECIAL NUMBERS<br />

numbers are 1, 4, 6, 9, 12, 14, 17, and 19. If k,(n) is even, then n - 1 is<br />

F-even, by (6.114); similarly, if k,(n) is odd, then n - 1 is F-odd. There<strong>for</strong>e<br />

k,(n) is even M n - 1 is F-even.<br />

Furthermore, if k,(n) is even, (6.144) implies that kT( [n+]) = 2; if k,(n) is<br />

odd, (6.144) says that kr( [rt@]) = k,(n) + 1. There<strong>for</strong>e k,.( [n+J) is always<br />

even, and we have proved that<br />

In@] - 1 is always F-even.<br />

Conversely, if m is any F-even number, we can reverse this computation and<br />

find an n such that m + 1 == Ln@J. (First add 1 in F-notation as explained<br />

earlier. If no carries occur, n is (m + 2) shifted right; otherwise n is (m + 1)<br />

shifted right.) The right-hand sum of (6.143) can there<strong>for</strong>e be written<br />

x z LQJ = zt zm [m is F-even] ,<br />

TL>l ll@O<br />

(6.145)<br />

How about the fraction on the left? Let’s rewrite (6.143) so that the<br />

continued fraction looks like (6.141), with all numerators 1:<br />

zcFfi +<br />

1<br />

-=-<br />

1-Z<br />

,lMJ .<br />

1 z z<br />

z-h + ' 1<br />

z-F2 + '-<br />

lI>l<br />

(6.146)<br />

(This trans<strong>for</strong>mation is a bit tricky! The numerator and denominator of the<br />

original fraction having zFn as numerator should be divided by zFnmI .) If<br />

we stop this new continued fraction at l/zPFn, its value will be a ratio of<br />

continuants,<br />

K,,.z(O, 2~~0, zPFI,. . . ,zPFn) K,(z/ , . . . , z-~,)<br />

-=<br />

K,+, (z-~o,z~~I,. . . ,zpFn) K,+, (z-~o, z-~I,. . , z-~,) ’<br />

as in (6.135). Let’s look at the denominator first, in hopes that it will be<br />

tractable. Setting Qn = K,+l z Fo,. . ,zPFn), we find Q. = 1, Q, = 1 + z-l,<br />

Q 2 = 1 -tz--’ + -2 Q = 1 ‘-I<br />

z, 3 $ z + z-2 + zP3 + zP4, and in general everything<br />

fits beautifully and gives a geometric series<br />

Q,, = 1 + z-’ + z-2 + . . . + z-(Fn+2-l 1 .

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

Saved successfully!

Ooh no, something went wrong!