login
Numbers k such that k > first location of string of k in decimal expansion of e.
2

%I #6 Jul 10 2022 16:07:14

%S 7,8,18,23,28,35,36,45,47,49,52,53,57,59,60,62,66,67,69,70,71,72,74,

%T 75,76,77,81,82,84,87,90,93,94,95,96,97,99,135,138,166,174,178,181,

%U 182,193,195,200,217,218,232,233,235,240,244,247,249,251,260,264,266

%N Numbers k such that k > first location of string of k in decimal expansion of e.

%C 'Location' starts from the first digit after the decimal point and refers to the first digit of a(n).

%H Michael S. Branicky, <a href="/A143504/b143504.txt">Table of n, a(n) for n = 1..10000</a>

%H Robert Nemiroff and Jerry Bonnell, <a href="http://antwrp.gsfc.nasa.gov/htmltest/gifcity/e.1mil">The Number e to 1 Million Digits</a>.

%F a(n) > A078197(n). - _Michael S. Branicky_, Jul 10 2022

%e 1 is not a term since it is less than its location in e, 2.

%e 7 is a term since it is greater than its location in e, 1.

%e 18 is a term since it is greater than its location in e, 2.

%o (Python)

%o from sympy import E

%o from itertools import count, islice

%o digits_of_e = str(E.n(10**5))[1:-1] # raise to 10**6 for b-file

%o def agen():

%o for k in count(1):

%o kloc = digits_of_e.find(str(k))

%o assert kloc > 0, ("Increase precision", k)

%o if k > kloc: yield k

%o print(list(islice(agen(), 60))) # _Michael S. Branicky_, Jul 10 2022

%Y Cf. A001113, A038099, A078197.

%K base,nonn

%O 1,1

%A Leonid Ianoushevitch (leonid163(AT)mail.ru), Oct 24 2008

%E Terms corrected and a(45) and beyond from _Michael S. Branicky_, Jul 10 2022