Q. If f(1)=3 and f(n)=nf(n−1)+2 then find the value of f(3).Answer:
Find f(2): To find f(3), we first need to find f(2) using the given recursive function f(n)=nf(n−1)+2 and the initial condition f(1)=3. f(2)=2f(1)+2 f(2)=2(3)+2 f(2)=6+2 f(2)=8
Calculate f(3): Now that we have f(2), we can use it to find f(3) using the same recursive function.f(3)=3f(2)+2f(3)=3(8)+2f(3)=24+2f(3)=26