[seqfan] Re: A119558 -- FIXED
Harvey P. Dale
hpd1 at nyu.edu
Mon Feb 27 15:12:10 CET 2012
Please ignore my earlier message on this sequence. I had,
indeed, misunderstood the definition and a revised Mma program (see
below) now correctly generates its terms:
RecurrenceTable[{a[1]==a[2]==0,a[3]==1,a[n]==Abs[a[n-1]-a[n-2]]+(-1)^n
a[n-3]},a,{n,80}]
I will submit that program once the OEIS website is operating again (it
appears to be down at the moment).
Apologies for the prior posting on this sequence.
But, once again, even with my now-corrected Mma program, is the
offset correct?
Best,
Harvey
-----Original Message-----
From: seqfan-bounces at list.seqfan.eu
[mailto:seqfan-bounces at list.seqfan.eu] On Behalf Of Harvey P. Dale
Sent: Monday, February 27, 2012 9:05 AM
To: Sequence Fanatics Discussion list
Subject: [seqfan] A119558
This Mma program implements the definition of the above
sequence but generates quite different terms:
RecurrenceTable[{a[1]==a[2]==0,a[3]==1,a[n]==Abs[a[n-1]-a[n-2]]+(-1)^(n
a[n-3])},a,{n,80}]
Is the Mma program wrong, or are the terms of the sequence wrong?
Best,
Harvey
P.S. In any event, given the definition of the sequence, shouldn't the
offset be changed?
_______________________________________________
Seqfan Mailing list - http://list.seqfan.eu/
More information about the SeqFan
mailing list