Project Euler #2: Even Fibonacci numbers

  • + 0 comments

    Fibonacci_index

    It's not perfect. When k = 12, n = 7. However, the n-th term for F is 13. We can check agaisnt this quickly with the same formula going forwards and backwards ONCE. instead of over a loop like everyone has been doing.

    I should mention the relationship I gues. F_0 = 0, E = F_{3n}