OFFSET
1,2
LINKS
Index entries for linear recurrences with constant coefficients, signature (21,-120,100).
FORMULA
a(1) = 1; for n>1, a(n) = n*10^(n-1)+a(n-1).
G.f.: x/((1-x)*(1-10*x)^2).
a(n) = 10^n*(n+1)/9-1/81*10^(n+1)+1/81.
a(n) = (10^n*(9*n-1)+1)/81. - Kenneth E. Caviness, Mar 30 2011
E.g.f.: (1 - exp(9*x) + 90*x*exp(9*x))*exp(x)/81. - Ilya Gutkovskiy, May 02 2016
a(n) = Sum_{i=0..n}(i*10^(i-1)). - José de Jesús Camacho Medina, Dec 14 2016
PROG
(Magma) [(10^n*(9*n-1)+1)/81: n in [1..25]]; // Vincenzo Librandi, Mar 31 2011
(PARI) a(n) = sum(i=0, n, i*10^(i-1)); \\ Michel Marcus, Dec 15 2016
CROSSREFS
KEYWORD
nonn,easy,base
AUTHOR
EXTENSIONS
Better description from Stephen G Penrice, Oct 03 2000
STATUS
approved