OFFSET
0,3
COMMENTS
LINKS
Bruno Berselli, Table of n, a(n) for n = 0..1000
Index entries for linear recurrences with constant coefficients, signature (9,-32,56,-48,16).
FORMULA
G.f.: -x*(4*x^2+8*x+1)/((x-1)*(2*x-1)^4). [From Maksym Voznyy (voznyy(AT)mail.ru), Aug 13 2009]
a(n) = 2^n*(n^3-3*n^2+9*n-13)+13. - Bruno Berselli, Mar 06 2012
MATHEMATICA
LinearRecurrence[{9, -32, 56, -48, 16}, {0, 1, 17, 125, 637}, 27] (* Bruno Berselli, Mar 06 2012 *)
PROG
(Magma) m:=26; R<x>:=PowerSeriesRing(Integers(), m); [0] cat Coefficients(R!(-(4*x^2+8*x+1)/((x-1)*(2*x-1)^4))); // Bruno Berselli, Mar 06 2012
(PARI) for(n=0, 26, print1(2^n*(n^3-3*n^2+9*n-13)+13", ")); \\ Bruno Berselli, Mar 06 2012
CROSSREFS
KEYWORD
nonn,easy
AUTHOR
EXTENSIONS
Typo in definition corrected by R. J. Mathar, Sep 16 2009
STATUS
approved