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”).

A243005
a(n) = (a(n-1) - a(n-2)) * a(n-1) / a(n-3) with a(0) = 2, a(1) = 1, a(2) = -1.
1
2, 1, -1, 1, 2, -2, 8, 40, -640, 54400, 74854400, -8748608000000, 1406963176644608000000, 26445277668952736475397120000000000, -79938741224658033822711947577298183091491962880000000000
OFFSET
0,1
LINKS
FORMULA
0 = a(n)*a(n+3) + a(n+1)*a(n+2) - a(n+2)*a(n+2) for all n>0.
a(n+1) = - a(n) * A243004(n) 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[n] == a[n - 1]*(a[n - 1] - a[n - 2])/a[n - 3],
a[0] == 2, a[1] == 1, a[2] == -1}, a, {n, 0, 15}] (* G. C. Greubel, Aug 06 2018 *)
PROG
(PARI) {a(n) = if( n<0, 0, if( n<3, [2, 1, -1][n+1], (a(n-1) - a(n-2)) * a(n-1) / a(n-3)))};
(Magma) I:=[2, 1, -1]; [n le 3 select I[n] else Self(n-1)*(Self(n-1) - Self(n-2))/Self(n-3): n in [1..15]]; // G. C. Greubel, Aug 06 2018
CROSSREFS
Cf. A243004.
Sequence in context: A353524 A122520 A284995 * A058393 A131256 A362414
KEYWORD
sign
AUTHOR
Michael Somos, Aug 17 2014
STATUS
approved