MathGroup Archive 2006

[Date Index] [Thread Index] [Author Index]

Search the Archive

Re: how to iterate


vr wrote:
> hi all,
> 
> pls excuse my ignorance. i'm still new to mathematica, and i forgot
> much of what i had learned.
> 
> how can i list the output of the function below for n=4..2006?
> f(n) = ( f(n-1) + f(n-2) + 1 ) / f(n-3)
> given f(1)=1, f(2)=2, f(3)=3.
> 
> thanks for any help in advance.
> 

I think something like
f[n_] := f[n] = ( f[n-1] + f[n-2] + 1 ) / f[n-3]
MyTable = Table[f[n],{n,4,2006}]

might help.

/ johan


  • Prev by Date: Re: how to iterate
  • Next by Date: NIntegrate with a J/Link Function
  • Previous by thread: Re: how to iterate
  • Next by thread: Re: how to iterate