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 (22,-141,220,-100).
FORMULA
a(n) = n*(10^n-1) = 9*A053422(n). - R. J. Mathar, Dec 04 2016
G.f.: -9*x*(-1+10*x^2) / ( (10*x-1)^2*(x-1)^2 ). - R. J. Mathar, Dec 04 2016
EXAMPLE
a(3) = 3*999 = 2997.
MATHEMATICA
Table[(10^n - 1)*n, {n, 1, 30}] (* Stefan Steinerberger *)
LinearRecurrence[{22, -141, 220, -100}, {0, 9, 198, 2997, 39996}, 20] (* Harvey P. Dale, Sep 22 2016 *)
PROG
(PARI) for(n=1, 25, print1(n*(10^n-1), ", ")) \\ G. C. Greubel, Oct 19 2017
(Magma) [n*(10^n-1): n in [1..25]]; // G. C. Greubel, Oct 19 2017
CROSSREFS
KEYWORD
base,easy,nonn
AUTHOR
Amarnath Murthy, Aug 14 2005
STATUS
approved