Pretty cool Fibonacci

Let F n { F }_{ n } be the n n th Fibonacci number. Find the first four digits of the number of digits of F p { F }_{ p } , where p = 10 12 p={ 10 }^{ 12 } .

Details: F n = F n 1 + F n 2 { F }_{ n }={ F }_{ n-1 }+{ F }_{ n-2 } and F 0 = 0 { F }_{ 0 }=0 and F 1 = 1 { F }_{ 1 }=1 .


The answer is 2089.

This section requires Javascript.
You are seeing this because something didn't load right. We suggest you, (a) try refreshing the page, (b) enabling javascript if it is disabled on your browser and, finally, (c) loading the non-javascript version of this page . We're sorry about the hassle.

1 solution

First Last
Dec 7, 2016

In general the number of digits of a number in base 10 is log 10 number \log_{10}{\text{number}}

Using Binet's Formula for F n = ( 1 + 5 2 ) n ( 1 5 2 ) n 5 F_n = \displaystyle\frac{\big( \frac{1+\sqrt{5}}{2}\big)^n-\big( \frac{1-\sqrt{5}}{2}\big)^n}{\sqrt{5}}

and the fact that ( 1 5 2 ) n \displaystyle\big( \frac{1-\sqrt{5}}{2}\big)^n is essentially 0 at n = 1 0 12 n = 10^{12}

Then the number of digits is 1 0 12 log 10 1 + 5 2 m o d 1 0 8 = 2089 \displaystyle 10^{12}\log_{10}{\frac{1+\sqrt{5}}{2}} \mod 10^{8} = \boxed{2089}

Almost any calculator can evaluate log 10 1 + 5 2 \displaystyle\log_{10}{\frac{1+\sqrt{5}}{2}} and you take the first 4 digits after the decimal.

0 pending reports

×

Problem Loading...

Note Loading...

Set Loading...