OFFSET
1,1
COMMENTS
This sequence includes no 1-digit numbers, only 1.111% of the 2-digit numbers, 2.111% of the 3-digit numbers, 15.744% of the 4-digit numbers, and 74.734% of the 5-digit numbers. 6-digit numbers not in the sequence become increasingly scarce. The only numbers in the interval [300000, 500000] that are not in the sequence are 304702, 328762, 329873, 344218, and 384135. Is 384135 the largest number that is not in the sequence? - Jon E. Schoenfield, Mar 16 2021
LINKS
Harvey P. Dale, Table of n, a(n) for n = 1..10000
EXAMPLE
The last few digits of 2^224 are 610249216. They contain 1024 as a substring.
MAPLE
filter:= n -> StringTools:-Search("1024", sprintf("%d", 2^n)) > 0:
select(filter, [$1..2000]); # Robert Israel, Mar 16 2021
MATHEMATICA
Select[Range[2000], StringContainsQ[ToString[2^#], ToString[2^10]] &]
Select[Range[2000], SequenceCount[IntegerDigits[2^#], {1, 0, 2, 4}]>0&] (* Harvey P. Dale, Dec 15 2024 *)
PROG
(PARI) isok(k) = #strsplit(Str(2^k), Str(2^10)) > 1; \\ Michel Marcus, Mar 16 2021
(Python)
A342601_list, k, m, s = [], 1, 2, str(2**10)
while k < 10**6:
if s in str(m):
A342601_list.append(k)
k += 1
m *= 2 # Chai Wah Wu, Mar 17 2021
CROSSREFS
KEYWORD
nonn,base
AUTHOR
Tanya Khovanova, Mar 16 2021
STATUS
approved