Search found 1 match

by acmh
Mon Oct 06, 2014 7:03 am
Forum: Volume 126 (12600-12699)
Topic: 12620 - Fibonacci Sum
Replies: 6
Views: 3183

Re: 12620 - Fibonacci Sum

Hello, can anyone help me?
I pre-calculated sum of terms up to 300 too.
So,
IF (N >= 1 && M <= 300) the answer is the sum of fib[N] until fib[M]
ELSE
I calculated N % 300 (I called NN) and M % 300 (NM)
And My answer is the sum of fib[NN] until fib[300] (Doing this I "complete" the interval)
plus ...

Go to advanced search