OFFSET
0,2
LINKS
G. C. Greubel, Table of n, a(n) for n = 0..995
Index entries for linear recurrences with constant coefficients, signature (14,-40).
FORMULA
G.f.: 6*x/((1-4*x)*(1-10*x)).
a(n) = 14*a(n-1) - 40*a(n-2).
a(n+1) = 6*A016157(n). [Bruno Berselli, Oct 05 2014]
E.g.f.: 2*exp(7*x)*sinh(3*x). - G. C. Greubel, Nov 13 2024
MATHEMATICA
Table[10^n - 4^n, {n, 0, 30}] (* or *)
CoefficientList[Series[(6 x)/((1-4 x)(1-10 x)), {x, 0, 30}], x]
PROG
(Magma) [10^n-4^n: n in [0..30]];
(PARI) vector(20, n, 10^(n-1)-4^(n-1)) \\ Derek Orr, Oct 05 2014
(Python)
def A248338(n): return pow(10, n) - pow(4, n)
print([A248338(n) for n in range(41)]) # G. C. Greubel, Nov 13 2024
CROSSREFS
KEYWORD
nonn,easy,changed
AUTHOR
Vincenzo Librandi, Oct 05 2014
STATUS
approved