f(1) = 2 and f(2) = 7
f(n) = f(n-1) + 2f(n-2) for n ≥ 3
So, for n = 3, we have f(3) = f(2) + 2f(1) = 7 + 4 = 11
When n = 4, f(4) = f(3) + 2f(2) = 11 + 14 = 25
First four terms: 2, 7, 11, 25
Jojo C.
asked 09/11/19f(1) = 2 and f(2) = 7
f(n) = f(n-1) + 2f(n-2) for n ≥ 3
So, for n = 3, we have f(3) = f(2) + 2f(1) = 7 + 4 = 11
When n = 4, f(4) = f(3) + 2f(2) = 11 + 14 = 25
First four terms: 2, 7, 11, 25
Get a free answer to a quick problem.
Most questions answered within 4 hours.
Choose an expert and meet online. No packages or subscriptions, pay only for the time you need.