OFFSET
0,1
MATHEMATICA
a = {}; Do[k = 1; While[ Count[ IntegerDigits[9^k], 9] != n, k++ ]; a = Append[a, k], {n, 0, 50} ]; a
Module[{nn=500, tbl}, tbl=Table[{n, DigitCount[9^n, 10, 9]}, {n, nn}]; Table[SelectFirst[ tbl, #[[2]] == k&], {k, 0, 50}]][[All, 1]] (* Harvey P. Dale, Jan 06 2023 *)
CROSSREFS
KEYWORD
base,nonn
AUTHOR
Robert G. Wilson v, Aug 10 2001
EXTENSIONS
Name corrected by Jon E. Schoenfield, Jun 26 2018
STATUS
approved