OFFSET
0,4
LINKS
Harvey P. Dale, Table of n, a(n) for n = 0..1000
Index entries for linear recurrences with constant coefficients, signature (6,-11,6).
FORMULA
E.g.f.: (1/2!)*(exp(3*x) - 3*exp(2*x) + 5*exp(x) - 3).
From Colin Barker, Jul 13 2013: (Start)
a(n) = (5 - 3*2^n + 3^n)/2 for n > 0.
a(n) = 6*a(n-1) - 11*a(n-2) + 6*a(n-3) for n > 3.
G.f.: -x*(9*x^2-5*x+1)/((x-1)*(2*x-1)*(3*x-1)). (End)
MATHEMATICA
Join[{0}, LinearRecurrence[{6, -11, 6}, {1, 1, 4}, 30]] (* Harvey P. Dale, Nov 28 2014 *)
PROG
(PARI) x='x+O('x^50); concat([0], Vec(serlaplace((1/2!)*(exp(3*x) - 3*exp(2*x) + 5*exp(x) - 3)))) \\ G. C. Greubel, Oct 07 2017
CROSSREFS
KEYWORD
nonn,easy
AUTHOR
Goran Kilibarda, Vladeta Jovovic, May 24 2004
EXTENSIONS
More terms from Colin Barker, Jul 13 2013
STATUS
approved