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