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