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 (10,-24).
FORMULA
G.f.: 2*x/((1-4*x)*(1-6*x)).
a(n) = 10*a(n-1) - 24*a(n-2).
a(n) = 2*A081199(n). - Bruno Berselli, Oct 05 2014
E.g.f.: 2*exp(5*x)*sinh(x). - G. C. Greubel, Nov 11 2024
MATHEMATICA
Table[6^n - 4^n, {n, 0, 30}]
CoefficientList[Series[(2 x)/((1-4 x)(1-6 x)), {x, 0, 30}], x]
LinearRecurrence[{10, -24}, {0, 2}, 30] (* Harvey P. Dale, Aug 18 2024 *)
PROG
(Magma) [6^n-4^n: n in [0..30]];
(PARI) vector(20, n, 6^(n-1)-4^(n-1)) \\ Derek Orr, Oct 05 2014
(SageMath)
A248337=BinaryRecurrenceSequence(10, -24, 0, 2)
[A248337(n) for n in range(31)] # G. C. Greubel, Nov 11 2024
CROSSREFS
KEYWORD
nonn,easy
AUTHOR
Vincenzo Librandi, Oct 05 2014
EXTENSIONS
More terms added by G. C. Greubel, Nov 11 2024
STATUS
approved