OFFSET
1,2
LINKS
Index entries for linear recurrences with constant coefficients, signature (5,-10,10,-5,1).
FORMULA
A007318 * [1, 4, 6, 4, 1, 1, -1, 1, -1, 1, ...].
From R. J. Mathar, Jun 18 2008: (Start)
O.g.f.: x*(1+x)*(x^4 - x^3 + x^2 - x + 1)/(1-x)^5.
a(n) = 2 + 35*(n-1)^2/12 + (n-1)^4/12, n > 1. (End)
EXAMPLE
a(4) = 35 = (1, 3, 3, 1) dot (1, 4, 6, 4) = (1 + 12 + 18 + 4).
MATHEMATICA
CoefficientList[Series[x(1+x)(x^4-x^3+x^2-x+1)/(1-x)^5, {x, 0, 40}], x] (* or *) LinearRecurrence[{5, -10, 10, -5, 1}, {0, 1, 5, 15, 35, 70, 127}, 50] (* Harvey P. Dale, Mar 11 2023 *)
CROSSREFS
KEYWORD
nonn
AUTHOR
Gary W. Adamson, May 12 2008
EXTENSIONS
More terms from R. J. Mathar, Jun 18 2008
STATUS
approved