OFFSET
0,3
LINKS
Alois P. Heinz, Table of n, a(n) for n = 0..10000 (first 210 terms from R. H. Hardin)
Index entries for linear recurrences with constant coefficients, signature (2,-1,1,-2,1)
FORMULA
a(n) = 2*a(n-1) - a(n-2) + a(n-3) - 2*a(n-4) + a(n-5).
From Alois P. Heinz, Mar 07 2018: (Start)
a(n) = 1 + floor(n*(n+1)/3).
G.f.: -(x^2+1)*(x^2-x+1)/((x^2+x+1)*(x-1)^3). (End)
EXAMPLE
All 15 solutions for n=6:
-2 -1 -3 -2 -2 -1 -1 -3 -2 -3 -4 0 -2 -3 -2
1 -1 3 0 3 1 0 2 -1 0 2 0 -2 1 2
1 2 0 2 -1 0 1 1 3 3 2 0 4 2 0
CROSSREFS
KEYWORD
nonn
AUTHOR
R. H. Hardin, Mar 04 2012
EXTENSIONS
a(0)=1 prepended by Alois P. Heinz, Mar 07 2018
STATUS
approved