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.

6.6 FIBONACCI NUMBERS 281<br />

<strong>for</strong>m kn if F, mod F, = 0.) First we have F, mod Fi = F,; that’s not zero.<br />

Next we have<br />

F2n = FnFn+l + F,-lF, = 2F,F,+l (mod Fi) ,<br />

by (6.108), since F,+I E F,-l (mod F,). Similarly<br />

F2,+1 = Fz+l + Fi E Fi+l (mod F,f).<br />

This congruence allows us to compute<br />

F3n = F2,+1 Fn + FznFn-I<br />

= Fz+lF, + (ZF,F,+I)F,+I = 3Fz+,F, (mod Fi) ;<br />

F3n+1 = F2n+1 Fn+l + F2nFn<br />

=- F;t+l + VFnF,+l IF, = F:+l<br />

In general, we find by induction on k that<br />

Fkn E kF,F,k+; and Fk,,+l E F,k+, (mod F:).<br />

Now Fn+l is relatively prime to F,, so<br />

Fkn = 0 (mod Fz) tl kF, E 0 (mod F:)<br />

We have proved Matijasevich’s lemma.<br />

W k E 0 (mod F,).<br />

(mod F,f) .<br />

One of the most important properties of the Fibonacci numbers is the<br />

special way in which they can be used to represent integers. Let’s write<br />

j>>k j 3 k+2. (6.112)<br />

Then every positive integer has a unique representation of the <strong>for</strong>m<br />

n = h, + Fkz + . . . + Fk, , kl > kz >> . . . > k, >> 0. (6.113)<br />

(This is “Zeckendorf’s theorem” [201], [312].) For example, the representation<br />

of one million turns out to be<br />

1~~0000 = 832040 + 121393 + 46368 + 144 + 55<br />

= F30 + F26 + F24 + FIZ +Flo.<br />

We can always find such a representation by using a “greedy” approach,<br />

choosing Fk, to be the largest Fibonacci number 6 n, then choosing Fk2<br />

to be the largest that is < n - Fk,, and so on. (More precisely, suppose that

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

Saved successfully!

Ooh no, something went wrong!