Jak vypočítat Fibonacci
Co je 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.
Průvodce krok za krokem
- 1F(0) = 0, F(1) = 1
- 2F(n) = F(n-1) + F(n-2)
- 3Closed form (Binet's formula): F(n) = (φⁿ − ψⁿ) / √5
- 4φ = (1+√5)/2 ≈ 1.6180339887 (golden ratio)
Worked Examples
Vstup
F(10)
Výsledek
55
0,1,1,2,3,5,8,13,21,34,55
Vstup
F(20)
Výsledek
6,765
Vstup
F(50)
Výsledek
12,586,269,025
About 12.6 billion
Jste připraveni počítat? Vyzkoušejte bezplatnou kalkulačku Fibonacci
Zkuste to sami →