OFFSET
0
LINKS
Index entries for linear recurrences with constant coefficients, signature (0,1,0,-1).
FORMULA
a(n) = H(floor((n + 4)/2), 1, 1/2) where H(n, a, b) = hypergeom([a - n/2, b - n/2], [1 - n], 4).
From Chai Wah Wu, Feb 16 2021: (Start)
a(n) = a(n-2) - a(n-4) for n > 3.
G.f.: (1 - x)*(x + 1)^2/(x^4 - x^2 + 1). (End)
a(n) = A166446(n+2). - R. J. Mathar, May 17 2026
MATHEMATICA
PadRight[{}, 120, {1, 1, 0, 0, -1, -1, -1, -1, 0, 0, 1, 1}] (* Paolo Xausa, May 25 2026 *)
PROG
(Magma) &cat [[1, 1, 0, 0, -1, -1, -1, -1, 0, 0, 1, 1]^^10];
CROSSREFS
KEYWORD
sign,easy
AUTHOR
Peter Luschny, Sep 03 2019
STATUS
approved
