OFFSET
1,1
LINKS
Harvey P. Dale, Table of n, a(n) for n = 1..1000
FORMULA
a(n) = sum(0 to n-1, ((9-(k % 9))*10^k) ).
EXAMPLE
a(6) = 9+80+700+6000+50000+400000 = 456789.
MATHEMATICA
Accumulate[Table[(9-Mod[n, 9])10^n, {n, 0, 20}]] (* or *) Table[FromDigits[PadLeft[ {}, n, Range[9]]], {n, 20}] (* Harvey P. Dale, May 08 2022 *)
PROG
(PARI) a(n) = sum(k=0, n-1, ((9-(k % 9))*10^k) ); \\ Michel Marcus, Aug 12 2013
CROSSREFS
KEYWORD
nonn
AUTHOR
Prashant Garg (prashant.garg1988(AT)yahoo.com), Nov 30 2007
EXTENSIONS
More terms from Michel Marcus, Aug 12 2013
STATUS
approved