OFFSET
0,1
LINKS
G. C. Greubel, Table of n, a(n) for n = 0..2500
Index entries for linear recurrences with constant coefficients, signature (0,0,0,0,0,0,0,0,0,0,0,0,0,0,-1).
FORMULA
G.f.: (-3 + x - 2*x^2 + 2*x^3 + 2*x^4 + 8*x^6 - 4*x^7 + 4*x^8 - 8*x^9 - 2*x^11 - 2*x^12 + 2*x^13 - x^14) / (1 + x^15).
a(n) = -a(n + 15) = a(n + 30) = a(-n) for all n in Z.
0 = a(n)*(+3*a(n+1) +a(n+2) -2*a(n+3)) + a(n+1)*(+a(n+1) +2*a(n+2) +a(n+3)) + a(n+2)*(+a(n+2) +3*a(n+3)) for all n in Z.
EXAMPLE
G.f. = -3 + x - 2*x^2 + 2*x^3 + 2*x^4 + 8*x^6 - 4*x^7 + 4*x^8 - 8*x^9 + ...
MATHEMATICA
CoefficientList[Series[(-3+x-2*x^2+2*x^3+2*x^4+8*x^6-4*x^7+ 4*x^8-8*x^9 - 2*x^11-2*x^12+2*x^13-x^14)/(1+x^15), {x, 0, 60}], x] (* G. C. Greubel, Aug 07 2018 *)
PROG
(PARI) {a(n) = (-1)^(n\15) * [-3, 1, -2, 2, 2, 0, 8, -4, 4, -8, 0, -2, -2, 2, -1][n%15 + 1]};
(PARI) x='x+O('x^60); Vec((-3+x-2*x^2+2*x^3+2*x^4+8*x^6-4*x^7+ 4*x^8- 8*x^9-2*x^11-2*x^12+2*x^13-x^14)/(1+x^15)) \\ G. C. Greubel, Aug 07 2018
(Magma) m:=60; R<x>:=PowerSeriesRing(Integers(), m); Coefficients(R!((-3+x-2*x^2+2*x^3+2*x^4+8*x^6-4*x^7+ 4*x^8-8*x^9 - 2*x^11-2*x^12 +2*x^13-x^14)/(1+x^15))); // G. C. Greubel, Aug 07 2018
CROSSREFS
KEYWORD
sign,easy
AUTHOR
Michael Somos, Jan 19 2014
STATUS
approved