Fibonacci is the sequence of the number starting from 0 and 1. Mean the first
two number of this sequence is 0 and 1. Then after sum of this two numbers
gives the third number is also 1. After then the fourth number is sum of this
second and third number of this sequence gives the 2 which one fifth number
of this sequence.
It whole mean that there is the f[0] = 0 and f[1] = 1 then third number is the
f[2] = f[0] + f[1] =1. After this the f[3] = f[1] + f[2] = 2 and so on.
So if we denot the last number of this sequence is n then the nth number of the
fibonacci is given by the f[n] = f[n-2] + f[n-1]. The above equation is the general
form of the fibonacci sequence.
0 comments:
Post a Comment