login

Year-end appeal: Please make a donation to the OEIS Foundation to support ongoing development and maintenance of the OEIS. We are now in our 61st year, we have over 378,000 sequences, and we’ve reached 11,000 citations (which often say “discovered thanks to the OEIS”).

A243004
a(n) = - (a(n-1) + 1) * a(n-2) with a(1) = a(2) = 1.
2
1, 1, -2, 1, 4, -5, 16, 85, -1376, 116875, 160821376, -18795998436875, 3022798331911925818624, 56816512721604915117046454761796875, -171744859879920049932215165532641220369502555067505818624
OFFSET
1,3
LINKS
FORMULA
0 = a(n) + a(n+2) + a(n)*a(n+1) for all n>0.
a(3*n) < 0, a(3*n + 1) > 0, a(3*n + 2) > 0, for all n>0.
MATHEMATICA
RecurrenceTable[{a[1]==a[2]==1, a[n]==-(a[n-1]+1)a[n-2]}, a, {n, 15}] (* Harvey P. Dale, Dec 08 2014 *)
PROG
(PARI) {a(n) = if( n<3, n>0, - (a(n-1) + 1) * a(n-2))};
(Magma) I:=[1, 1]; [n le 2 select I[n] else -(1 + Self(n-1))*Self(n-2): n in [1..10]]; // G. C. Greubel, Aug 06 2018
CROSSREFS
Sequence in context: A091232 A336398 A209337 * A375156 A137424 A083007
KEYWORD
sign
AUTHOR
Michael Somos, Aug 17 2014
STATUS
approved