OFFSET
0,2
COMMENTS
Absolute values of pairwise sums are in A052534.
LINKS
FORMULA
G.f.: (1-x)/(1+2*x-x^2-x^3).
a(n) = -2*a(n-1) + a(n-2) + a(n-3). - Wesley Ivan Hurt, Dec 29 2023
MATHEMATICA
CoefficientList[Series[(1-x)/(1+2*x-x^2-x^3), {x, 0, 60}], x] (* Harvey P. Dale, Feb 20 2020 *)
PROG
(PARI) Vec((1-x)/(1+2*x-x^2-x^3)+O(x^99)) \\ Charles R Greathouse IV, Sep 27 2012
(Magma) R<x>:=PowerSeriesRing(Integers(), 40); Coefficients(R!((1-x)/(1+2*x-x^2-x^3))); // Vincenzo Librandi, Feb 21 2020
CROSSREFS
KEYWORD
sign,easy
AUTHOR
N. J. A. Sloane, Nov 17 2002
STATUS
approved