159k views
5 votes
A sequence is defined recursively by: f (1) = 4; f (n) = f (n-1) + 3n. Find f (5).

[1] 16 [2] 24 [3] 33 [4] 46

User IshRoid
by
8.0k points

1 Answer

5 votes
If you would like to find f(5), you can calculate this using the following steps:

f(1) = 4
f(n) = f(n-1) + 3 * n
f(2) = f(2-1) + 3 * 2 = f(1) + 6 = 4 + 6 = 10
f(3) = f(3-1) + 3 * 3 = f(2) + 9 = 10 + 9 = 19
f(4) = f(4-1) + 3 * 4 = f(3) + 12 = 19 + 12 = 31
f(5) = f(5-1) + 3 * 5 = f(4) + 15 = 31 + 15 = 46

The correct result would be [4] 46.
User Mathieu Bertin
by
8.4k points