Fibonacci Sequence
Fibonacci Sequence
NEELANSH KULSHRESHTHA
SNU ID: 1510110241
FIBONACCI SEQUENCE
WHAT IS FIBONACCI SEQUENCE:The Fibonacci numbers or Fibonacci sequence are the numbers in the
following integer sequence:0, 1, 1, 2, 3, 5, 8, 13, 21, 34,...
Or
1, 1, 2, 3, 5, 8, 13, 21, 34,...
By definition, the first two numbers in the Fibonacci sequence are
either 1 and 1, or 0 and 1, depending on the chosen starting point of
the sequence.
The next number is found by adding up the two numbers before it.
The 2 is found by adding the two numbers before it (1+1)
Similarly, the 3 is found by adding the two numbers before it
(1+2),
And the 5 is (2+3), and so on!
Here is a longer list:
0, 1, 1, 2, 3, 5, 8, 13, 21, 34, 55, 89, 144, 233, 377, 610, 987, 1597,
2584, 4181, 6765, 10946, 17711, 28657, 46368, 75025, 121393,
196418, 317811, ...
10
11
Fn = 0
...
13
21
34
55
89
-5
-4
-3
-2
-1
Fn = ...
-8
-3
-1
FIBONACCI SEQUENCE IN NATURE:The Fibonacci numbers are Nature's numbering system. They appear
everywhere in Nature, from the leaf arrangement in plants, to the
pattern of the florets of a flower, the bracts of a pinecone, or the scales
of a pineapple. The Fibonacci numbers are therefore applicable to the
growth of every living thing, including a single cell, a grain of wheat,
a hive of bees, and even all of mankind.
The most common example of these algorithmic applications are:The Fibonacci Heaps and The Fibonacci Search Technique.
Out of these two, The Fibonacci Search technique is quite fascinating.
static int kk= -1, nn=-1, fib[]={0, 1, 1, 2, 3, 5, 8, 13, 21, 34, 55, 89, 144, 233, 377, 610, 987,
1597, 2584, 4181, 6765, 10946, 17711, 28657, 46368, 75025, 121393, 196418, 317811, 514229,
832040, 1346269, 2178309, 3524578, 5702887, 9227465, 14930352, 24157817, 39088169,
63245986, 102334155, 165580141};
if(nn!=n)
{
k=0;
while(fib[k]<n) k++;
kk=k;
nn=n;
}
else
k=kk;
while(k>0)
{
pos=inf+fib[--k];
if((pos>=n)||(x<a[pos]));
else if (x>a[pos])
{
inf=pos+1;
k--;
}
else {
return pos;
}
}
return -1;
}
_________________________________________________________________________________
sequences
3,1,4,5,9,... or 5,2,7,9,16,...
Thus we must face the fact that it is really not a universal law but
only a fascinatingly prevalent tendency.
Still, Fibonacci Sequence is one of the most amazing art of numbers
known to human knowledge today.
BIBLIOGRAPHY:
www.mathworld.wolfram.com
Fibonacci in Nature www.jwilson.coe.uga.edu
www.maths.surrey.ac.uk
www.mathsisfun.com
www.auto.tuwien.ac.at
www.codeido.com
Introduction to Geometry (1961, Wiley, page 172)
by H.S.M.Coxeter
_______________________________________________________