OFFSET
0,2
LINKS
G. C. Greubel, Table of n, a(n) for n = 0..1000
Index entries for linear recurrences with constant coefficients, signature (8,-12).
FORMULA
G.f.: 4*x/((1-2*x)*(1-6*x)).
a(n) = 8*a(n-1) - 12*a(n-2).
E.g.f.: exp(6*x) - exp(2*x) = 2*exp(4*x)*sinh(2*x). - G. C. Greubel, Feb 09 2021
a(n) = 4*A016129(n-1). - R. J. Mathar, Mar 10 2022
MATHEMATICA
Table[6^n - 2^n, {n, 0, 25}] (* or *) CoefficientList[Series[4x/((1-2x)(1-6x)), {x, 0, 30}], x]
LinearRecurrence[{8, -12}, {0, 4}, 30] (* Harvey P. Dale, Dec 21 2019 *)
PROG
(Magma) [6^n-2^n: n in [0..25]];
(Sage) [2^n*(3^n -1) for n in (0..25)] # G. C. Greubel, Feb 09 2021
CROSSREFS
KEYWORD
nonn,easy
AUTHOR
Vincenzo Librandi, Oct 04 2014
STATUS
approved