+ 3
What is the mechanism behind the fibnocci codes?
3 Answers
+ 4
its just like factorial but the difference is that you are adding the next number instead of multiplying them as in factorial .
+ 2
the first and second number of Fibonacci series are 1. and the next numbers are sum of previous two numbers
So, a[n] = a[n-1] + a[n-2]
+ 1
main concept is n + (n - 1).