Fibonacci Explorer
Explore the Fibonacci sequence, golden ratio convergence, Binet's formula, and mathematical identities
Fibonacci Explorer
The Fibonacci sequence starts with 0, 1 and each subsequent number is the sum of the two before it:
Sequence Generation
Choose an index: =
At position : =
Fibonacci sequence growth
Golden Ratio Convergence
Consecutive Fibonacci numbers form a ratio that converges to the golden ratio :
Current ratio: =
Ratio vs Golden Ratio
Drag
Binet's Formula
A closed-form expression computes without recursion:
where .
For =
Cassini's Identity
A striking identity links three consecutive Fibonacci numbers:
With =
Sweep
Try it in Code
# Fibonacci Explorer
import math
n = 10
phi = (1 + math.sqrt(5)) / 2
psi = (1 - math.sqrt(5)) / 2
def fib(k):
return round((phi**k - psi**k) / math.sqrt(5))
fn = fib(n); fn1 = fib(n-1); fn2 = fib(n+1)
print(f"F({n}) = {fn}")
print(f"F({n})/F({n-1}) = {fn/fn1:.10f}")
print(f"Golden ratio = {phi:.10f}")
print(f"Cassini: F({n-1})*F({n+1}) - F({n})^2 = {fn1*fn2 - fn**2}")What to explore next
Base Converter
Convert numbers between bases (binary, octal, decimal, hexadecimal) and understand positional notation
GCD & LCM Calculator
Calculate GCD and LCM using the Euclidean algorithm with step-by-step visualization
Prime Factorization
Visualize how numbers break down into their prime factors
Prime Finder
Discover prime numbers with the Sieve of Eratosthenes, primality testing, and prime factorization
You might also like
GCD & LCM Calculator
ExplorationCalculate GCD and LCM using the Euclidean algorithm with step-by-step visualization
Modular Arithmetic Calculator
Perform modular addition, subtraction, and multiplication
Prime Factorization
ExplorationVisualize how numbers break down into their prime factors
Prime Finder
ExplorationDiscover prime numbers with the Sieve of Eratosthenes, primality testing, and prime factorization