OFFSET
0,2
LINKS
Vincenzo Librandi, Table of n, a(n) for n = 0..1000
Index entries for linear recurrences with constant coefficients, signature (12,-21,10).
FORMULA
G.f.: (1-4*x+21*x^2)/((1-x)^2*(1-10*x)). - Vincenzo Librandi, Jul 15 2012
a(n) = 10*a(n-1) +18*n -38 = 12*a(n-1) -21*a(n-2) +10*a(n-3). - Vincenzo Librandi, Jul 15 2012
MATHEMATICA
CoefficientList[Series[(1-4*x+21*x^2)/((1-x)^2*(1-10*x)), {x, 0, 30}], x] (* Vincenzo Librandi, Jul 15 2012 *)
PROG
(Magma) [10^n-2*n: n in [0..20]]; // Vincenzo Librandi, Jul 15 2012
CROSSREFS
KEYWORD
nonn,easy
AUTHOR
Vincenzo Librandi, Feb 26 2010
STATUS
approved