Answer :

A recursive function lets you find the new value from the previous value in a systematic way. In this case you know f(0) = 2 which lets you calculate f(1) because f (0+1) = - 2 * f(0) + 3 = - 2 * 2 + 3 = - 4 + 3 = - 1. And now that you know f(1) you calculate f(2) because f(1+1) = - 2 * f(1) + 3 = -2*(-1) + 3 = 2 + 3 = 5. Then, the answer is f(2) = 5

Other Questions