OFFSET
0,3
LINKS
Index entries for linear recurrences with constant coefficients, signature (10,-40,82,-91,52,-12).
FORMULA
G.f.: -2*x^2*(x^3-4*x^2+7*x-3) / ((x-1)^3*(2*x-1)^2*(3*x-1)). - Colin Barker, Sep 13 2014
MATHEMATICA
Table[(29*3^n-18(n+3)2^n+6n^2+24n+27)/12, {n, 40}] (* or *) LinearRecurrence[ {10, -40, 82, -91, 52, -12}, {0, 0, 6, 46, 228, 930}, 40] (* Harvey P. Dale, Aug 31 2018 *)
PROG
(PARI) concat([0, 0], Vec(-2*x^2*(x^3-4*x^2+7*x-3)/((x-1)^3*(2*x-1)^2*(3*x-1)) + O(x^100))) \\ Colin Barker, Sep 13 2014
CROSSREFS
KEYWORD
nonn,easy
AUTHOR
Henry Bottomley, Feb 15 2005
STATUS
approved