OFFSET
0,2
LINKS
Colin Barker, Table of n, a(n) for n = 0..1000
Index entries for linear recurrences with constant coefficients, signature (6,-13,12,-4).
FORMULA
From Colin Barker, Nov 25 2014: (Start)
a(n) = (-10+11*2^n+2*(-3+2^n)*n).
a(n) = 6*a(n-1)-13*a(n-2)+12*a(n-3)-4*a(n-4).
G.f.: -(2*x^3+9*x^2-4*x-1) / ((x-1)^2*(2*x-1)^2).
(End)
MATHEMATICA
LinearRecurrence[{6, -13, 12, -4}, {1, 10, 38, 108}, 40] (* Harvey P. Dale, Oct 28 2020 *)
PROG
(PARI) Vec(-(2*x^3+9*x^2-4*x-1)/((x-1)^2*(2*x-1)^2) + O(x^100)) \\ Colin Barker, Nov 25 2014
CROSSREFS
KEYWORD
nonn,easy
AUTHOR
EXTENSIONS
More terms from Colin Barker, Nov 25 2014
STATUS
approved