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

A063430
Smallest k such that 2^k has exactly n 4's in its decimal representation.
9
1, 2, 18, 22, 64, 91, 117, 111, 164, 138, 182, 233, 219, 253, 343, 266, 264, 321, 315, 331, 450, 349, 451, 469, 553, 504, 510, 687, 592, 630, 710, 744, 808, 767, 828, 889, 722, 951, 789, 942, 918, 964, 1066, 1033, 890, 1183, 1263, 1171, 1229, 1130, 1291
OFFSET
0,2
LINKS
MATHEMATICA
a = {}; Do[k = 1; While[ Count[ IntegerDigits[2^k], 4] != n, k++ ]; a = Append[a, k], {n, 0, 50} ]; a
PROG
(PARI) a(n)={my(k=1); while(n<>#select(d->d==4, digits(2^k)), k++); k} \\ Harry J. Smith, Aug 20 2009, Andrew Howroyd, Jun 26 2018
KEYWORD
base,nonn
AUTHOR
Robert G. Wilson v, Aug 10 2001
EXTENSIONS
Name corrected by Jon E. Schoenfield, Jun 25 2018
STATUS
approved