contestada

How do I write a recursive funtion for 2000 trees to start with and it increases by 200 trees per year?

Respuesta :

Answer:

[tex]f(0)=2000[/tex]

[tex]f(t+1)=f(t)+200[/tex]

Step-by-step explanation:

We are given

initial number of trees is 2000

so,

[tex]f(0)=2000[/tex]

Let's assume

t is the time in years

it increases by 200 trees per year

So, after t years, we can write as

[tex]f(t+1)=f(t)+200[/tex]

So, our recursive function is

[tex]f(0)=2000[/tex]

[tex]f(t+1)=f(t)+200[/tex]


Otras preguntas