OFFSET
0,2
LINKS
Vincenzo Librandi, Table of n, a(n) for n = 0..900
Index entries for linear recurrences with constant coefficients, signature (20,-116, 160).
FORMULA
From Vincenzo Librandi, Oct 09 2011: (Start)
a(n) = (75*10^n + 2^n - 8^(n+2))/12.
a(n) = 18*a(n-1) - 80*a(n-2) + 2^n.
a(n) = 20*a(n-1) - 116*a(n-2) + 160*a(n-3), n >= 3. (End)
MATHEMATICA
CoefficientList[Series[1/((1 - 2 x) (1 - 8 x) (1 - 10 x)), {x, 0, 17}], x] (* Michael De Vlieger, Jan 31 2018 *)
LinearRecurrence[{20, -116, 160}, {1, 20, 284}, 20] (* Harvey P. Dale, Mar 20 2020 *)
PROG
(Sage) [((10^n - 2^n)/8-(8^n - 2^n)/6)/2 for n in range(2, 20)] # Zerinvary Lajos, Jun 05 2009
(Magma) [((75*10^n + 2^n -8^(n+2))/12) : n in [0..20]]; // Vincenzo Librandi, Oct 09 2011
(PARI) Vec(1/((1-2*x)*(1-8*x)*(1-10*x))+O(x^99)) \\ Charles R Greathouse IV, Sep 26 2012
CROSSREFS
KEYWORD
nonn,easy
AUTHOR
STATUS
approved