Exercise:
F(n)= F(n-1) + F(n-2)
where:
F(0)=0
F(1)=1
How do you make this exercise with all constants expressed?
Answer:-
we can find the sequence as follows:
f(0)=0,f(1)=1
if we put n=2 in the equation then,
f(2)=f(1)+f(0)=1+0=1
similarly,
f(3)=f(2)+f(1)=1+1=2
f(4)=f(3)+f(2)=2+1=3
f(5)=f(4)+f(3)=3+2=5
so,from this we can see that here the present number is sum of previous two numbers of the sequence.
So,the sequence is
0,1,1,2,3,5,8,13,21,34............
This sequence is also known as fibonacci series.
NOTE::- If you have any doubt please write down in the comment box and if the answer helps please give a like.
Get Answers For Free
Most questions answered within 1 hours.