OFFSET
0,2
MATHEMATICA
a = {}; Do[k = 1; While[ Count[ IntegerDigits[3^k], 2] != n, k++ ]; a = Append[a, k], {n, 0, 50} ]; a
With[{pwr3=3^Range[1000]}, IntegerExponent[#, 3]&/@Flatten[Table[ Select[ pwr3, DigitCount[#, 10, 2]==n&, 1], {n, 0, 50}]]] (* Harvey P. Dale, Sep 09 2012 *)
CROSSREFS
KEYWORD
base,nonn
AUTHOR
Robert G. Wilson v, Aug 10 2001
EXTENSIONS
Name corrected by Jon E. Schoenfield, Jun 26 2018
STATUS
approved