219k views
3 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 Tomocafe
by
3.3k points

2 Answers

5 votes

Answer:

substituting n by 5 gives;

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

User Kathara
by
3.4k points
4 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 Ryanpcmcquen
by
3.5k points