Q. If f(1)=3 and f(n)=−4f(n−1)−2 then find the value of f(3).Answer:
Find f(2): We are given f(1)=3. To find f(3), we first need to find f(2) using the recursive formula f(n)=−4f(n−1)−2.Substitute n=2 into the formula to find f(2).f(2)=−4f(2−1)−2f(2)=−4f(1)−2f(2)=−4(3)−2f(1)=30f(1)=31
Find f(3): Now that we have f(2)=−14, we can use it to find f(3) using the same recursive formula.Substitute n=3 into the formula to find f(3).f(3)=−4f(3−1)−2f(3)=−4f(2)−2f(3)=−4(−14)−2f(3)=56−2f(3)=54