Fibonacci Calculator

Calculate the nth term in the Fibonacci sequence for -999999 ≤ n ≤ 999999. Each term in the Fibonacci sequence is the sum of the previous two terms: Fib(n) = Fib(n - 1) + Fib(n - 2), and by definition, Fib(0) = 0 and Fib(1) = 1. The sequence can be extended to negative indices; Fib(n) is positive for negative odd n and negative for negative even n. The ratio between each positive-indexed term and the previous term converges to the golden ratio, (1+√5)/2 ≈ 1.618.

Fib()