OFFSET
0,2
LINKS
Index entries for linear recurrences with constant coefficients, signature (10,-42,96, -129,102,-44,8).
FORMULA
G.f.: (8*x^5-37*x^4+46*x^3-25*x^2+7*x-1) / ((x-1)^4*(2*x-1)^3). - Colin Barker, Feb 25 2015
MATHEMATICA
LinearRecurrence[{10, -42, 96, -129, 102, -44, 8}, {1, 3, 13, 54, 190, 587, 1659}, 30] (* Harvey P. Dale, Aug 01 2022 *)
PROG
(PARI)
T(k, n) = (n^2 + (4*k+1)*n + (2*k)^2) * 2^(n-2) - k^2 + 1
a(n) = sum(k=0, n, T(k, n-k)) \\ Colin Barker, Feb 25 2015
CROSSREFS
KEYWORD
nonn
AUTHOR
EXTENSIONS
Typo in a(25) fixed by Colin Barker, Feb 25 2015
STATUS
approved