OFFSET
0,2
LINKS
Harry J. Smith, Table of n, a(n) for n = 0..150
MATHEMATICA
a = {}; Do[k = 1; While[ Count[ IntegerDigits[2^k], 3] != n, k++ ]; a = Append[a, k], {n, 0, 50} ]; a
With[{dr=Table[{k, DigitCount[2^k, 10, 3]}, {k, 1500}]}, Table[SelectFirst[dr, #[[2]]==n&], {n, 0, 50}]][[;; , 1]] (* Harvey P. Dale, Jul 30 2023 *)
PROG
(PARI) a(n)={my(k=1); while(n<>#select(d->d==3, digits(2^k)), k++); k} \\ Harry J. Smith, Aug 20 2009, Andrew Howroyd, Jun 26 2018
CROSSREFS
KEYWORD
base,nonn
AUTHOR
Robert G. Wilson v, Aug 10 2001
EXTENSIONS
Name corrected by Jon E. Schoenfield, Jun 25 2018
STATUS
approved