Q. If f(1)=2 and f(n)=4f(n−1)+n then find the value of f(4).Answer:
Find f(2): We are given f(1)=2. To find f(4), we need to find the values of f(2), f(3), and then f(4) using the recursive formula f(n)=4f(n−1)+n.First, let's find f(2) using f(1).f(2)=4f(1)+2f(1)=20f(1)=21f(1)=22