login
A063632
Smallest k such that 9^k has exactly n 6's in its decimal representation.
0
1, 7, 4, 20, 26, 24, 39, 17, 59, 65, 72, 97, 69, 121, 141, 104, 125, 136, 132, 147, 144, 163, 179, 161, 177, 184, 208, 191, 257, 193, 262, 281, 294, 267, 318, 334, 297, 347, 319, 310, 369, 315, 365, 349, 399, 387, 383, 414, 373, 408, 434
OFFSET
0,2
MATHEMATICA
a = {}; Do[k = 1; While[ Count[ IntegerDigits[9^k], 6] != n, k++ ]; a = Append[a, k], {n, 0, 50} ]; a
Join[{1}, With[{k6=DigitCount[9^Range[0, 500], 10, 6]}, Flatten[Table[Position[k6, n, 1, 1], {n, 50}]]]-1] (* Harvey P. Dale, Jun 11 2024 *)
CROSSREFS
Sequence in context: A181138 A279942 A279998 * A147601 A075536 A280336
KEYWORD
base,nonn
AUTHOR
Robert G. Wilson v, Aug 10 2001
EXTENSIONS
Name corrected by Jon E. Schoenfield, Jun 26 2018
STATUS
approved