OFFSET
0,3
LINKS
Vincenzo Librandi, Table of n, a(n) for n = 0..1000
Index entries for linear recurrences with constant coefficients, signature (11,-38,40).
FORMULA
a(n) = (4*5^n - 3*4^n - 2^n)/6.
G.f.: x*(1-3*x)/((1-2*x)*(1-4*x)*(1-5*x)).
From Elmo R. Oliveira, Aug 29 2024: (Start)
E.g.f.: exp(2*x)*(4*exp(3*x) - 3*exp(2*x) - 1)/6.
a(n) = 11*a(n-1) - 38*a(n-2) + 40*a(n-3) for n > 2. (End)
PROG
(Magma) [(4*5^n-3*4^n-2^n)/6: n in [0..30]]; // Vincenzo Librandi, Jul 17 2011
CROSSREFS
KEYWORD
easy,nonn
AUTHOR
Paul Barry, Mar 28 2003
STATUS
approved