The Fibonacci sequence is defined by
1 = a1= a2 and an = an-1 + an – 2, n > 2.
Find, for n = 1, 2, 3, 4, 5
Here given a1 = a2 =1
And an = an-1 + an-2 , n > 2.
a3 = a2 + a1 = 1 + 1 = 2
a4 = a3 + a2 = 2 + 1 = 3
a5 = a4 + a3 = 3 + 2 = 5
a6 = a5 + a4 = 5 + 3 = 8
Now putting the value of n = 1, 2, 3, 4, 5 in
For