OFFSET
0,2
MATHEMATICA
a = {}; Do[k = 1; While[ Count[ IntegerDigits[8^k], 2] != n, k++ ]; a = Append[a, k], {n, 0, 50} ]; a
With[{twos=Table[DigitCount[8^n, 10, 2], {n, 500}]}, Flatten[Table[ Position[ twos, k, {1}, 1], {k, 0, 60}]]] (* Harvey P. Dale, Jul 18 2015 *)
CROSSREFS
KEYWORD
base,nonn
AUTHOR
Robert G. Wilson v, Aug 10 2001
EXTENSIONS
Name corrected by Jon E. Schoenfield, Jun 26 2018
STATUS
approved