login

Year-end appeal: Please make a donation to the OEIS Foundation to support ongoing development and maintenance of the OEIS. We are now in our 61st year, we have over 378,000 sequences, and we’ve reached 11,000 citations (which often say “discovered thanks to the OEIS”).

A063558
Smallest k such that 3^k has exactly n 3's in its decimal representation.
0
2, 1, 13, 21, 29, 65, 66, 56, 69, 114, 101, 112, 137, 165, 172, 219, 233, 185, 252, 299, 268, 261, 322, 394, 310, 345, 435, 329, 405, 500, 498, 427, 395, 517, 586, 555, 548, 590, 596, 574, 578, 531, 717, 661, 689, 732, 669, 789, 718, 875, 834
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
Sequence in context: A358205 A118679 A087451 * A174170 A264373 A217490
KEYWORD
base,nonn
AUTHOR
Robert G. Wilson v, Aug 10 2001
EXTENSIONS
Name corrected by Jon E. Schoenfield, Jun 26 2018
STATUS
approved