51,155 views
13 votes
13 votes
If f(1)=4 f(2)=5 and f(n)=f(n-1) + f(n-2) then find the value of f(5)

User Niall Sheridan
by
2.6k points

2 Answers

14 votes
14 votes

Answer:

substituting n by 5 gives;

f(5)=(5-1)+(5-2)=7

User Cute
by
2.8k points
28 votes
28 votes

Answer:

23

Explanation:

f(3) = f(2) + f(1) = 5 + 4 = 9

f(4) = f(3) + f(2) = 9 + 5 = 14

f(5) = f(4) + f(3) = 14 + 9 = 23

User Pedrouan
by
3.1k points