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
7.4k points

2 Answers

5 votes

Answer:

substituting n by 5 gives;

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

User Kathara
by
8.3k 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
7.5k points

No related questions found

Welcome to QAmmunity.org, where you can ask questions and receive answers from other members of our community.

9.4m questions

12.2m answers

Categories