Fibonacci Madness!

Given the first 314159 314159 numbers in the Fibonacci Sequence, is there a term that ends in at least 4 4 zeroes?


The Fibonacci Sequence is created by adding the previous 2 2 terms to form the next term in the sequence: 1 , 1 , 2 , 3 , 5 , 8 , 1, 1, 2, 3, 5, 8, \cdots .

Nope Yeah I don't care Dummy Answer

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.

2 solutions

Kenneth Tay
Sep 7, 2014

Ugly Python code:

a, b = 1, 1 
cnt  = 2
while cnt <= 314159:
    if b % 10000 == 0:
        print "yes"
        break
    else:
        cnt += 1
        a, b = b, a+b
Edward Jiang
Sep 4, 2014

The Fibonacci numbers F n F_n end in 4 4 zeroes when n n is a multiple of 7500 7500 .

Source: brute computation

0 pending reports

×

Problem Loading...

Note Loading...

Set Loading...