OFFSET
0,2
MATHEMATICA
a = {}; Do[k = 1; While[ Count[ IntegerDigits[4^k], 2] != n, k++ ]; a = Append[a, k], {n, 0, 50} ]; a
With[{nk2=Table[{k, DigitCount[4^k, 10, 2]}, {k, 700}]}, Table[SelectFirst[nk2, #[[2]] == n&], {n, 0, 50}]][[All, 1]] (* Harvey P. Dale, Jan 21 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