Q. If f(1)=9 and f(n)=f(n−1)+3 then find the value of f(4).Answer:
Initialize f(1): We are given that f(1)=9. To find f(4), we need to apply the recursive formula f(n)=f(n−1)+3 three times, starting from n=2 up to n=4.
Calculate f(2): First, let's find f(2). According to the recursive formula, f(2)=f(2−1)+3=f(1)+3. We know that f(1)=9, so f(2)=9+3=12.
Find f(3): Next, we find f(3). Using the recursive formula again, f(3)=f(3−1)+3=f(2)+3. We have already found that f(2)=12, so f(3)=12+3=15.
Compute f(4): Finally, we calculate f(4). Using the recursive formula once more, f(4)=f(4−1)+3=f(3)+3. We have found that f(3)=15, so f(4)=15+3=18.
More problems from Find the roots of factored polynomials