OFFSET
2,1
LINKS
Andrew Howroyd, Table of n, a(n) for n = 2..200
Index entries for linear recurrences with constant coefficients, signature (29,-307,1467,-3240,2700).
FORMULA
a(n) = n*(169*10^(n-2) + 48*3^(n-2) - 84*n*3^(n-2))/49. - Andrew Howroyd, May 10 2020
From Colin Barker, May 19 2020: (Start)
G.f.: 2*x*(1 + 3*x)*(1 + x - 69*x^2 + 45*x^3) / ((1 - 3*x)^3*(1 - 10*x)^2).
a(n) = 29*a(n-1) - 307*a(n-2) + 1467*a(n-3) - 3240*a(n-4) + 2700*a(n-5) for n>6.
(End)
PROG
(PARI) a(n) = {n*(169*10^(n-2) + 48*3^(n-2) - 84*n*3^(n-2))/49} \\ Andrew Howroyd, May 10 2020
(PARI) Vec(2*x*(1 + 3*x)*(1 + x - 69*x^2 + 45*x^3) / ((1 - 3*x)^3*(1 - 10*x)^2) + O(x^20)) \\ Colin Barker, May 19 2020
CROSSREFS
KEYWORD
nonn,easy
AUTHOR
R. H. Hardin, Apr 20 2009
EXTENSIONS
Terms a(11) and beyond from Andrew Howroyd, May 09 2020
STATUS
approved