Fibonacci Sequence – C/C++ Algorithm
- Lucas
- September 06, 2011
The Fibonacci sequence is given in the following order [latex] Fibonacci = 0, 1, 1, 2, 3, 5, 8, 13, 21, 34, 55 . . .[/latex]. The algorithm for calculating the nth element is given by: [latex] N = N – 1 + N – 2 [/latex], i.e. the nth element is equal to the