OFFSET
0,1
MATHEMATICA
a = {}; Do[k = 1; While[ Count[ IntegerDigits[3^k], 3] != n, k++ ]; a = Append[a, k], {n, 0, 50} ]; a
Flatten[With[{t=3^Range[900]}, Table[Position[t, _?(DigitCount[#, 10, 3]==n&), 1, 1], {n, 0, 50}]]] (* Harvey P. Dale, Feb 22 2013 *)
CROSSREFS
KEYWORD
base,nonn
AUTHOR
Robert G. Wilson v, Aug 10 2001
EXTENSIONS
Name corrected by Jon E. Schoenfield, Jun 26 2018
STATUS
approved