OFFSET
0,2
LINKS
Vincenzo Librandi, Table of n, a(n) for n = 0..1000
Index entries for linear recurrences with constant coefficients, signature (29,-296,1204,-1440).
FORMULA
G.f.: 1/((1-2x)(1-8x)(1-9x)(1-10x)).
a(n) = (21*10^(n+3) - 48*9^(n+3) + 28*8^(n+3) - 2^(n+3))/336. [Yahia Kahloune, Jun 06 2013]
MATHEMATICA
CoefficientList[Series[1/((1 - 2 x) (1 - 8 x) (1 - 9 x) (1 - 10 x)), {x, 0, 20}], x] (* Wesley Ivan Hurt, Apr 08 2017 *)
Table[(21 10^(n+3) - 48 9^(n+3) + 28 8^(n+3) - 2^(n+3))/336, {n, 0, 30}] (* Vincenzo Librandi, Apr 09 2017 *)
LinearRecurrence[{29, -296, 1204, -1440}, {1, 29, 545, 8425}, 30] (* Harvey P. Dale, Nov 13 2017 *)
PROG
(Magma) [(21*10^(n+3)-48*9^(n+3)+28*8^(n+3)-2^(n+3))/336: n in [0..20]]; // Vincenzo Librandi, Apr 09 2017
CROSSREFS
KEYWORD
nonn
AUTHOR
STATUS
approved