OFFSET
0,2
LINKS
Vincenzo Librandi, Table of n, a(n) for n = 0..2000
Index entries for linear recurrences with constant coefficients, signature (9,-33,63,-66,36,-8).
FORMULA
a(n) = (9*n^2 + n) * 2^(n-2) - n^2 + 1. - Ralf Stephan, Feb 05 2004
G.f.: -(8*x^5-43*x^4+53*x^3-23*x^2+4*x-1) / ((x-1)^3*(2*x-1)^3). - Colin Barker, Feb 25 2015
PROG
(Magma) [(9*n^2 + n) * 2^(n-2) - n^2 + 1: n in [0..30]]; // Vincenzo Librandi, Sep 26 2011
(PARI) Vec(-(8*x^5-43*x^4+53*x^3-23*x^2+4*x-1)/((x-1)^3*(2*x-1)^3) + O(x^100)) \\ Colin Barker, Feb 25 2015
CROSSREFS
KEYWORD
nonn,easy
AUTHOR
STATUS
approved