define a sequence



try this:

u[n]:=3*u[n-1]+2;
u[0]:5;

RJF

Eric Delevaux wrote:

>Hi everybody
>is there a way to define a sequence in maxima by recurrence?
>for example
>
>u_n+1 = 3*u_n + 2
>with
>u_0 = 5
>
>I read help, doc and faq, browse the web but didn't find anything...
>
>Thanks for help.
>
>Eric
>
>PS : sorry for my poor english, I'm french...
>
>_______________________________________________
>Maxima mailing list
>Maxima@www.math.utexas.edu
>http://www.math.utexas.edu/mailman/listinfo/maxima
>  
>