165,140 views
10 votes
10 votes
Match each recusive function with the equivalent explicit function

User AggelosK
by
2.7k points

1 Answer

27 votes
27 votes

the first expression :


\begin{gathered} f(n)=f(n-1)+2;\text{ n}\ge2, \\ \text{where we have f(1)=}8 \end{gathered}

so at n=2,


\begin{gathered} f(2)=f(2-1)+2 \\ f(2)=f(1)+2 \\ f(2)=8+2_{} \\ f(2)=10 \end{gathered}

put n=2 in the equation f(n) = 2n +6


\begin{gathered} f(n)=2n+6 \\ f(2)=4+6 \\ f(2)=10 \end{gathered}

so,

f(n)=f(n-1)+2 is equal to f(n) =2n +6

Now for expression 2 :


\begin{gathered} f(n)=f(n-1)-2;\text{ n}\ge2 \\ \text{where }f(1)=8 \\ \text{put n=2 in the given expression,} \\ f(2)=f(2-1)-2 \\ f(2)=f(1)-2 \\ f(2)=8-2 \\ f(2)=6 \end{gathered}

put n=2 in the expression f(n)=-2n+10


\begin{gathered} f(n)=-2n+10 \\ f(2)=-2*2+10 \\ f(2)=-4+10 \\ f(2)=6 \end{gathered}

In both the expression at n=2, f(2)=6 so,

f(n)=f(n-1)-2 is equal to f(n)=-2n+10.

Now expression 3:


\begin{gathered} f(n)=f(n-1)-3;\text{ n}\ge2 \\ \text{where , f(}1)=9 \end{gathered}

put n=2,


\begin{gathered} f(2)=f(2-1)-3 \\ f(2)=f(1)-3 \\ f(2)=9-3 \\ f(2)=6 \end{gathered}

Now for the expression at the entry of third coloumn,

f(n)=-3n+12

put n=2


\begin{gathered} f(n)=-3n+12 \\ f(2)=-3(2)+12 \\ f(2)=-6+12 \\ f(2)=6 \end{gathered}

since, the f(2) =6,

User Max Collomb
by
3.1k points