Re: how to iterate
- To: mathgroup at smc.vnet.net
 - Subject: [mg65970] Re: how to iterate
 - From: Johan Grönqvist <johan.gronqvist at gmail.com>
 - Date: Tue, 25 Apr 2006 05:18:42 -0400 (EDT)
 - Organization: Lund University, Sweden
 - References: <e2i987$9fc$1@smc.vnet.net>
 - Reply-to: johan.gronqvist at gmail.com
 - Sender: owner-wri-mathgroup at wolfram.com
 
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