|
Search: id:A131539
|
|
|
| A131539 |
|
Least power of 2 having exactly n consecutive 5's in its decimal representation. |
|
+0 1
|
| |
|
|
OFFSET
|
1,1
|
|
|
EXAMPLE
|
a(3)=76 because 2^76(i.e. 75557863725914323419136) is the smallest power of 2 to contain a run of 3 consecutive fives in its decimal form.
|
|
MATHEMATICA
|
a = ""; Do[ a = StringJoin[a, "5"]; b = StringJoin[a, "5"]; k = 1; While[ StringPosition[ ToString[2^k], a] == {} || StringPosition[ ToString[2^k], b] != {}, k++ ]; Print[k], {n, 1, 10} ]
|
|
CROSSREFS
|
Sequence in context: A022444 A089828 A082982 this_sequence A117868 A062508 A083086
Adjacent sequences: A131536 A131537 A131538 this_sequence A131540 A131541 A131542
|
|
KEYWORD
|
more,nonn,base
|
|
AUTHOR
|
Shyam Sunder Gupta (guptass(AT)rediffmail.com), Aug 26 2007
|
|
|
Search completed in 0.002 seconds
|