OFFSET
1,1
LINKS
Andrew Howroyd, Table of n, a(n) for n = 1..1000
Index entries for linear recurrences with constant coefficients, signature (8,-19,12).
FORMULA
a(n) = 8*a(n-1) - 19*a(n-2) + 12*a(n-3) for n > 3.
G.f.: 3*x*(1 - 5*x + 8*x^2)/((1 - x)*(1 - 3*x)*(1 - 4*x)).
MATHEMATICA
LinearRecurrence[{8, -19, 12}, {3, 9, 39}, 30] (* Paolo Xausa, Oct 03 2024 *)
PROG
(PARI) Vec(3*(1 - 5*x + 8*x^2)/((1 - x)*(1 - 3*x)*(1 - 4*x)) + O(x^25))
CROSSREFS
KEYWORD
nonn,easy
AUTHOR
Andrew Howroyd, Feb 24 2023
STATUS
approved