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”).

A063590
Smallest k such that 5^k has exactly n 5's in its decimal representation.
1
1, 6, 14, 27, 30, 41, 65, 66, 54, 83, 73, 109, 102, 112, 118, 106, 187, 159, 175, 204, 209, 174, 222, 278, 234, 327, 266, 300, 369, 318, 310, 339, 350, 377, 301, 357, 426, 411, 446, 421, 434, 452, 490, 525, 494, 521, 554, 543, 514, 503
OFFSET
1,2
LINKS
MATHEMATICA
a = {}; Do[k = 1; While[ Count[ IntegerDigits[5^k], 5] != n, k++ ]; a = Append[a, k], {n, 1, 50} ]; a
With[{tbl=Table[{k, DigitCount[5^k, 10, 5]}, {k, 600}]}, Table[SelectFirst[tbl, #[[2]]==n&], {n, 50}]][[;; , 1]] (* This program is many times more efficient than the first Mathematica program above. *) (* Harvey P. Dale, Dec 13 2024 *)
CROSSREFS
Sequence in context: A093776 A107317 A071776 * A349723 A378230 A128806
KEYWORD
base,nonn,changed
AUTHOR
Robert G. Wilson v, Aug 10 2001
EXTENSIONS
Name corrected by Jon E. Schoenfield, Jun 26 2018
STATUS
approved