|
|
A215732
|
|
a(n) is the first digit to appear n times in succession in a power of 2.
|
|
19
|
|
|
1, 5, 7, 5, 6, 8, 7, 1, 9, 9, 6, 3, 2, 9, 1, 4
(list;
graph;
refs;
listen;
history;
text;
internal format)
|
|
|
OFFSET
|
1,2
|
|
COMMENTS
|
Assumes that there are no 2 digits that appear n times in succession for the first time in the same power of 2. - Chai Wah Wu, Apr 26 2019
|
|
LINKS
|
|
|
EXAMPLE
|
2^16 = 65536 is the first power of 2 with a repeated digit (cf. A045875), with 5 repeated, so a(2) = 5. - N. J. A. Sloane, Aug 23 2012
|
|
MATHEMATICA
|
n = 1; x = 1; lst = {};
For[i = 1, i <= 10000, i++,
z = Split[IntegerDigits[x]]; a = Length /@ z; b = Max[a];
For[j = n, j <= b, j++,
AppendTo[lst, First[First[Part[z, First[Position[a, b]]]]]]; n++
|
|
PROG
|
(Python)
l, x = [str(d)*n for d in range(10)], 1
for m in range(10**9):
s = str(x)
for k in range(10):
if l[k] in s:
return k
x *= 2
return 'search limit reached'
|
|
CROSSREFS
|
|
|
KEYWORD
|
nonn,base,hard,more,changed
|
|
AUTHOR
|
|
|
EXTENSIONS
|
|
|
STATUS
|
approved
|
|
|
|