Services & Resources / Wolfram Forums
-----
 /
MathGroup Archive
2006
*January
*February
*March
*April
*May
*June
*July
*August
*September
*October
*November
*December
*Archive Index
*Ask about this page
*Print this page
*Give us feedback
*Sign up for the Wolfram Insider

MathGroup Archive 2006

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

Search the Archive

Re: how to iterate

  • To: mathgroup at smc.vnet.net
  • Subject: [mg65976] Re: how to iterate
  • From: "Richard" <rkausch at free.fr>
  • Date: Tue, 25 Apr 2006 05:19:04 -0400 (EDT)
  • References: <e2i987$9fc$1@smc.vnet.net>
  • Sender: owner-wri-mathgroup at wolfram.com

Hello Valentino
You don't need to list the values of your sequence f(n) .It is
periodic:
f[1] = 1;
f[2] = 2;
f[3] = 3;
f[n_] := (f[n - 1] + f[n - 2] + 1)/f[n - 3].
This gives f(9)=1;f(10)=2; f(11)=3 and then the period is given by f(i)
for i=1,...8.
Was that the real problem?
Richard Kausch  Paris (F)


  • Prev by Date: Re: Symbolic vectors possible?
  • Next by Date: Re: display of input and output in textbook form
  • Previous by thread: how to iterate
  • Next by thread: Re: how to iterate