Q. If f(1)=5,f(2)=2 and f(n)=3f(n−1)+3f(n−2) then find the value of f(4).Answer:
Given Recursive Formula: We are given the recursive formula f(n)=3f(n−1)+3f(n−2), and the initial conditions f(1)=5 and f(2)=2. To find f(4), we first need to find f(3) using the recursive formula.
Calculate f(3): Using the recursive formula, we calculate f(3) as follows:f(3)=3f(2)+3f(1)f(3)=3(2)+3(5)f(3)=6+15f(3)=21Now we have the value of f(3).
Find f(4): Next, we use the values of f(2) and f(3) to find f(4) using the same recursive formula:f(4)=3f(3)+3f(2)f(4)=3(21)+3(2)f(4)=63+6f(4)=69We have now found the value of f(4).
More problems from Find the roots of factored polynomials