OFFSET
1,2
COMMENTS
a(n) is the digit reversal of terms of A051885 giving such smallest numbers.
LINKS
Michael S. Branicky, Table of n, a(n) for n = 1..9000
EXAMPLE
a(22) = 994, digit sum = 22.
a(100) = 999999999991.
MATHEMATICA
dsn[n_]:=Module[{d=Quotient[n, 9]}, FromDigits[PadLeft[{n-9d}, d, 9]]]; If[Divisible[#, 10], #/10, #]&/@Array[dsn, 50, 10] (* Harvey P. Dale, Dec 08 2013 *)
PROG
(Python)
def a(n): return int("9"*(n//9)+str(n%9)*(n%9>0))
print([a(n) for n in range(1, 50)]) # Michael S. Branicky, Aug 16 2023
CROSSREFS
KEYWORD
nonn,base
AUTHOR
Amarnath Murthy, Apr 22 2001
EXTENSIONS
More terms from Harvey P. Dale, Dec 08 2013
Offset corrected by Michael S. Branicky, Aug 16 2023
STATUS
approved