login
The OEIS is supported by the many generous donors to the OEIS Foundation.

 

Logo
Hints
(Greetings from The On-Line Encyclopedia of Integer Sequences!)
A063552 Smallest k such that 2^k has exactly n 7's in its decimal representation. 9
1, 15, 27, 24, 46, 75, 116, 152, 157, 170, 181, 237, 297, 282, 360, 214, 317, 380, 475, 311, 417, 440, 424, 538, 535, 427, 474, 632, 654, 651, 810, 766, 832, 626, 848, 824, 780, 931, 897, 992, 889, 1004, 981, 1079, 1087, 1123, 1224, 1186, 892, 1174, 1200 (list; graph; refs; listen; history; text; internal format)
OFFSET
0,2
LINKS
MATHEMATICA
a = {}; Do[k = 1; While[ Count[ IntegerDigits[2^k], 7] != n, k++ ]; a = Append[a, k], {n, 0, 50} ]; a
Join[{1}, With[{c=DigitCount[#, 10, 7]&/@(2^Range[0, 1300])}, Flatten[ Table[ Position[c, n, 1, 1], {n, 60}]]]-1] (* Harvey P. Dale, Oct 14 2012 *)
PROG
(PARI) a(n)={my(k=1); while(n<>#select(d->d==7, digits(2^k)), k++); k} \\ Harry J. Smith, Aug 26 2009, Andrew Howroyd, Jun 26 2018
CROSSREFS
Sequence in context: A240914 A205881 A132452 * A131541 A359205 A080945
KEYWORD
base,nonn
AUTHOR
Robert G. Wilson v, Aug 10 2001
EXTENSIONS
Name corrected by Jon E. Schoenfield, Jun 25 2018
STATUS
approved

Lookup | Welcome | Wiki | Register | Music | Plot 2 | Demos | Index | Browse | More | WebCam
Contribute new seq. or comment | Format | Style Sheet | Transforms | Superseeker | Recents
The OEIS Community | Maintained by The OEIS Foundation Inc.

License Agreements, Terms of Use, Privacy Policy. .

Last modified April 24 18:17 EDT 2024. Contains 371962 sequences. (Running on oeis4.)