OFFSET
0,3
COMMENTS
Sequence is identical to its signed second differences less first 3 terms. - R. J. Mathar, May 17 2009
LINKS
G. C. Greubel, Table of n, a(n) for n = 0..1000
Index entries for linear recurrences with constant coefficients, signature (-1,2,-1).
FORMULA
From R. J. Mathar, May 17 2009: (Start)
G.f.: x*(1 - 2*x)/(1 + x - 2*x^2 + x^3). (End)
MATHEMATICA
LinearRecurrence[{-1, 2, -1}, {0, 1, -3}, 35] (* Paolo Xausa, Jun 03 2026 *)
PROG
(PARI) a(n)=([0, 1, 0; 0, 0, 1; -1, 2, -1]^n*[0; 1; -3])[1, 1] \\ Charles R Greathouse IV, Jun 03 2026
CROSSREFS
KEYWORD
sign,easy
AUTHOR
Paul Curtz, Feb 10 2008
EXTENSIONS
More terms from R. J. Mathar, May 17 2009
STATUS
approved
