412,678 views
42 votes
42 votes
If f(1) = 2 and f(n) = –2f(n − 1) + 3 then find the value of f(5).

User Perimosh
by
2.6k points

1 Answer

5 votes
5 votes

From the given problem :

f(1) = 2

f(n) = -2f(n-1) + 3

f(5) = ?

Let's find f(2) up to f(5).

For f(2), n = 2


\begin{gathered} f(n)=-2f(n-1)+3 \\ f(2)=-2f(1)+3 \\ f(2)=-2(2)+3 \\ f(2)=-4+3 \\ f(2)=-1 \end{gathered}

For f(3), n = 3


\begin{gathered} f(n)=-2f(n-1)+3 \\ f(3)=-2f(3-1)+3 \\ f(3)=-2f(2)+3 \\ f(3)=-2(-1)+3 \\ f(3)=2+3 \\ f(3)=5 \end{gathered}

For f(4), n = 4


\begin{gathered} f(n)=-2f(n-1)+3 \\ f(4)=-2f(4-1)+3 \\ f(4)=-2f(3)+3 \\ f(4)=-2(5)+3 \\ f(4)=-10+3 \\ f(4)=-7 \end{gathered}

For f(5), n = 5


\begin{gathered} f(n)=-2f(n-1)+3 \\ f(5)=-2f(5-1)+3 \\ f(5)=-2f(4)+3 \\ f(5)=-2(-7)+3 \\ f(5)=14+3 \\ f(5)=17 \end{gathered}

The answer is f(5) = 17

User Eneida
by
2.5k points