OFFSET
0,2
LINKS
Index entries for linear recurrences with constant coefficients, signature (0,0,0,2,0,0,0,-1).
FORMULA
a(n) = 2*a(n-4) - a(n-8).
a(n) = a(n-4) + (period 4: repeat [8, 8, 2, 8]).
From Bruno Berselli, Apr 08 2011: (Start)
G.f.: x*(2+x+6*x^2+8*x^3+6*x^4+x^5+2*x^6)/(1-x^4)^2.
a(n) = (16 - 3*(1+(-1)^n)*(1-i^n))*n/8, where i=sqrt(-1). (End)
E.g.f.: x*(8*cosh(x) - 3*sin(x) + 5*sinh(x))/4. - Stefano Spezia, Aug 08 2025
MATHEMATICA
LinearRecurrence[{0, 0, 0, 2, 0, 0, 0, -1}, {0, 2, 1, 6, 8, 10, 3, 14}, 80] (* Harvey P. Dale, Nov 27 2012 *)
CROSSREFS
KEYWORD
nonn,easy
AUTHOR
Paul Curtz, Mar 23 2011
STATUS
approved
