OFFSET
0,2
LINKS
Vincenzo Librandi, Table of n, a(n) for n = 0..1000
Index entries for linear recurrences with constant coefficients, signature (8,-13,6).
FORMULA
G.f.: (1+4*x-35*x^2)/((1-x)^2*(1-6*x)).
a(n) = 8*a(n-1) - 13*a(n-2) + 6*a(n-3).
E.g.f.: exp(x)*(exp(5*x) + 6*x). - Elmo R. Oliveira, Sep 10 2024
MATHEMATICA
Table[(6^n + 6 n), {n, 0, 30}] (* or *) CoefficientList[Series[(1 + 4 x - 35 x^2)/((1 - x)^2 (1 - 6 x)), {x, 0, 30}], x]
PROG
(Magma) [6^n+6*n: n in [0..30]]; /* or */ I:=[1, 12, 48]; [n le 3 select I[n] else 8*Self(n-1)-13*Self(n-2)+6*Self(n-3): n in [1..30]];
(PARI) a(n)=6^n+6*n \\ Charles R Greathouse IV, Apr 18 2013
CROSSREFS
KEYWORD
nonn,easy
AUTHOR
Vincenzo Librandi, Mar 02 2013
STATUS
approved