Skip to main content

Cum se calculează Fibonacci

Ce este Fibonacci?

The Fibonacci sequence is a series where each number is the sum of the two preceding ones: 0, 1, 1, 2, 3, 5, 8, 13, 21, 34... The ratio of consecutive Fibonacci numbers approaches the golden ratio φ ≈ 1.618.

Ghid pas cu pas

  1. 1F(0) = 0, F(1) = 1
  2. 2F(n) = F(n-1) + F(n-2)
  3. 3Closed form (Binet's formula): F(n) = (φⁿ − ψⁿ) / √5
  4. 4φ = (1+√5)/2 ≈ 1.6180339887 (golden ratio)

Exemple rezolvate

Intrare
F(10)
Rezultat
55
0,1,1,2,3,5,8,13,21,34,55
Intrare
F(20)
Rezultat
6,765
Intrare
F(50)
Rezultat
12,586,269,025
About 12.6 billion

Ești gata să calculezi? Încercați calculatorul gratuit Fibonacci

Încercați singur →

Setări