Q. If f(1)=5,f(2)=0 and f(n)=3f(n−1)−3f(n−2) then find the value of f(4).Answer:
Calculate f(3): To find f(4), we need to use the recursive formula f(n)=3f(n−1)−3f(n−2) and the given values f(1)=5 and f(2)=0. Let's start by finding f(3).
Find f(4): Using the recursive formula, we calculate f(3) as follows:f(3)=3f(2)−3f(1)f(3)=3(0)−3(5)f(3)=0−15f(3)=−15
Use Recursive Formula: Now that we have f(3), we can use it along with f(2) to find f(4) using the same recursive formula:f(4)=3f(3)−3f(2)f(4)=3(−15)−3(0)f(4)=−45−0f(4)=−45
More problems from Find the roots of factored polynomials