Q. If f(1)=2 and f(n)=nf(n−1)−4 then find the value of f(3).Answer:
Calculate f(2): We are given that f(1)=2. To find f(3), we need to first find f(2) using the recursive formula f(n)=nf(n−1)−4.Let's calculate f(2):f(2)=2f(2−1)−4f(2)=2f(1)−4f(2)=2(2)−4f(2)=4−4f(1)=20
Calculate f(3): Now that we have f(2), we can use it to find f(3) using the same recursive formula.Let's calculate f(3):f(3)=3f(3−1)−4f(3)=3f(2)−4f(3)=3(0)−4f(3)=0−4f(3)=−4