OFFSET
1,3
LINKS
G. C. Greubel, Table of n, a(n) for n = 1..20
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
KEYWORD
sign
AUTHOR
Michael Somos, Aug 17 2014
STATUS
approved