OFFSET
0,2
COMMENTS
Number of integer sequences of length n+1 with sum zero and sum of absolute values 4. - R. H. Hardin, Feb 22 2009
Partial sums of A034262. - Jeremy Gardiner, Jun 23 2013
LINKS
T. D. Noe, Table of n, a(n) for n = 0..1000
Index entries for linear recurrences with constant coefficients, signature (5,-10,10,-5,1).
FORMULA
G.f.: (-2*x*(x^2+x+1))/(x-1)^5. - Maksym Voznyy (voznyy(AT)mail.ru), Jul 27 2009
E.g.f.: exp(x)*x*(8 + 16*x + 8*x^2 + x^3)/4. - Stefano Spezia, Oct 08 2022
MATHEMATICA
a[n_]:=Sum[i+i^3, {i, 1, n}]; (* Vladimir Joseph Stephan Orlovsky, Dec 05 2008 *)
Array[# (# + 1) (#^2 + # + 2)/4 &, 39, 0] (* or *)
CoefficientList[Series[-2x (x^2 + x + 1)/(x - 1)^5, {x, 0, 38}], x] (* or *)
LinearRecurrence[{5, -10, 10, -5, 1}, {0, 2, 12, 42, 110}, 39] (* Robert G. Wilson v, Aug 05 2018 *)
CROSSREFS
KEYWORD
nonn,easy
AUTHOR
STATUS
approved