OFFSET
1,3
COMMENTS
LINKS
Heinrich Ludwig, Table of n, a(n) for n = 1..1000
Index entries for linear recurrences with constant coefficients, signature (4,-1,-16,19,20,-45,0,45,-20,-19,16,1,-4,1).
FORMULA
a(n) = (n^8 - 14*n^6 + 30*n^5 + 12*n^4 - 60*n^3 + 40*n^2)/192 + IF(MOD(n, 2) = 1, 4*n^4 - 20*n^3 + 22*n^2 - 2*n - 7)/64.
a(n) = 4*a(n-1) - a(n-2) - 16*a(n-3) + 19*a(n-4) + 20*a(n-5) - 45*a(n-6) + 45*a(n-8) - 20*a(n-9) - 19*a(n-10) + 16*a(n-11) + a(n-12) - 4*a(n-13) + a(n-14).
G.f.: x^2*(1 +13*x +135*x^2 +622*x^3 +1449*x^4 +2143*x^5 +1557*x^6 +781*x^7 +34*x^8 -8*x^9 -8*x^10 +x^11) / ((1 -x)^9*(1 +x)^5). - Colin Barker, Dec 18 2016
PROG
(PARI) concat(0, Vec(x^2*(1 +13*x +135*x^2 +622*x^3 +1449*x^4 +2143*x^5 +1557*x^6 +781*x^7 +34*x^8 -8*x^9 -8*x^10 +x^11) / ((1 -x)^9*(1 +x)^5) + O(x^40))) \\ Colin Barker, Dec 18 2016
CROSSREFS
KEYWORD
nonn,easy
AUTHOR
Heinrich Ludwig, Dec 18 2016
STATUS
approved