OFFSET
2,2
LINKS
Heinrich Ludwig, Table of n, a(n) for n = 2..1000
Index entries for linear recurrences with constant coefficients, signature (3,0,-7,3,6,0,-6,-3,7,0,-3,1).
FORMULA
a(n) = (n^6 + 3*n^5 - 3*n^4 - 2*n^3 - 48*n^2 + 48*n)/288 + IF(MOD(n, 2) = 1)*(3*n^2 - 9*n - 1)/32 + IF(MOD(n, 3) = 1)*2/9.
G.f.: x^3*(-3 - 11*x - 17*x^2 - 13*x^3 - 14*x^4 - x^5 - 2*x^6 + x^7) / ((-1+x)^7 * (1+x)^3 * (1+x+x^2)). - Vaclav Kotesovec, Jun 02 2014
a(n) = 3*a(n-1) - 7*a(n-3) + 3*a(n-4) + 6*a(n-5) - 6*a(n-7) - 3*a(n-8) + 7*a(n-9) - 3*a(n-11) + a(n-12). - Vaclav Kotesovec, Jun 02 2014
MATHEMATICA
Drop[CoefficientList[Series[x^3*(-3 - 11*x - 17*x^2 - 13*x^3 - 14*x^4 - x^5 - 2*x^6 + x^7) / ((-1+x)^7 * (1+x)^3 * (1+x+x^2)), {x, 0, 50}], x], 2] (* Vaclav Kotesovec, Jun 02 2014 *)
CROSSREFS
KEYWORD
nonn,easy
AUTHOR
Heinrich Ludwig, Jun 01 2014
STATUS
approved