OFFSET
0,2
LINKS
G. C. Greubel, Table of n, a(n) for n = 0..990
Index entries for linear recurrences with constant coefficients, signature (16,-60).
FORMULA
a(n) = (10^(n+1) - 6^(n+1))/4. - Al Hakanson (hawkuu(AT)gmail.com), Dec 31 2008
a(n) = 16*a(n-1) - 60*a(n-2). - Philippe Deléham, Jan 01 2009
a(n) = 10*a(n-1) + 6^n, a(0)=1. - Vincenzo Librandi, Feb 09 2011
E.g.f.: (1/2)*(5*exp(10*x) - 3*exp(6*x)). - G. C. Greubel, Nov 13 2024
MATHEMATICA
Table[(10^(n+1) - 6^(n+1))/4, {n, 0, 40}] (* Vladimir Joseph Stephan Orlovsky, Feb 08 2011 *)
CoefficientList[Series[1/((1-6x)(1-10x)), {x, 0, 40}], x] (* Harvey P. Dale, Mar 12 2011 *)
PROG
(Magma) [(10^(n+1) - 6^(n+1))/4: n in [0..40]]; // G. C. Greubel, Nov 13 2024
(Python)
def A016173(n): return (pow(10, n+1) - pow(6, n+1))//4
print([A016173(n) for n in range(41)]) # G. C. Greubel, Nov 13 2024
CROSSREFS
KEYWORD
nonn
AUTHOR
EXTENSIONS
More terms added by G. C. Greubel, Nov 13 2024
STATUS
approved