OFFSET
0,3
LINKS
G. C. Greubel, Table of n, a(n) for n = 0..1000
Index entries for linear recurrences with constant coefficients, signature (0,1,0,1,0,-1).
FORMULA
G.f.: (1 - x + x^2 + x^3)/((1 - x^2)^2(1 + x^2)).
a(n) = a(n-2) + a(n-4) - a(n-6).
a(n) = (n/2 + 1)*(1 + (-1)^n)/2 - (1 - (-1)^n)*(1 + (-1)^((n-1)/2))/4.
a(n) = (sin(Pi*n/2)*((-1)^n - 1) + (n+3)*(-1)^n + (n+1))/4.
a(n) = Sum_{k=0..floor(n/2)} Jacobi(2^(n-2k), 2(n-2k)+1) [conjecture].
MATHEMATICA
Riffle[Range[50], {-1, 0}] (* Harvey P. Dale, Dec 08 2011 *)
PROG
(PARI) x='x+O('x^50); Vec((1-x+x^2+x^3)/((1-x^2)^2(1+x^2))) \\ G. C. Greubel, Aug 29 2017
CROSSREFS
KEYWORD
easy,sign
AUTHOR
Paul Barry, Jul 24 2005
STATUS
approved