asked 23.9k views
3 votes
Generate the first 5 terms of this sequence:

f(1) = 2 and f(2) = 3, f(n) = f(n - 1) + f(n - 2), for n > 2.
A.2, 3, 5, 7, 9 B.2, 3, 4, 7, 11 C.2, 3, 5, 9, 11 D.2, 3, 5, 8, 13

asked
User Somalia
by
7.9k points

1 Answer

3 votes
f(3) = f(2) + f(1) => 3 + 2 = 5

f(4) = f(3) + f(2) => 5 + 3 = 8

f(5) = f(4) + f(3) => 8 + 5 = 13

Therefore the sequence is 2, 3, 5, 8, 13,.....a Fibonacci sequence.

:)
:)
answered
User Mike De Klerk
by
8.3k points

No related questions found

Welcome to Qamnty — a place to ask, share, and grow together. Join our community and get real answers from real people.