Discover a world of knowledge at Westonci.ca, where experts and enthusiasts come together to answer your questions. Experience the convenience of finding accurate answers to your questions from knowledgeable professionals on our platform. Get detailed and accurate answers to your questions from a dedicated community of experts on our Q&A platform.

If a sequence is defined recursively by f(0)=2 and f(n+1)=-2f (n)+3 for n> or equal to 0,what is f(2)?

Sagot :

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