|
|
A143504
|
|
Numbers k such that k > first location of string of k in decimal expansion of e.
|
|
2
|
|
|
7, 8, 18, 23, 28, 35, 36, 45, 47, 49, 52, 53, 57, 59, 60, 62, 66, 67, 69, 70, 71, 72, 74, 75, 76, 77, 81, 82, 84, 87, 90, 93, 94, 95, 96, 97, 99, 135, 138, 166, 174, 178, 181, 182, 193, 195, 200, 217, 218, 232, 233, 235, 240, 244, 247, 249, 251, 260, 264, 266
(list;
graph;
refs;
listen;
history;
text;
internal format)
|
|
|
OFFSET
|
1,1
|
|
COMMENTS
|
'Location' starts from the first digit after the decimal point and refers to the first digit of a(n).
|
|
LINKS
|
|
|
FORMULA
|
|
|
EXAMPLE
|
1 is not a term since it is less than its location in e, 2.
7 is a term since it is greater than its location in e, 1.
18 is a term since it is greater than its location in e, 2.
|
|
PROG
|
(Python)
from sympy import E
from itertools import count, islice
digits_of_e = str(E.n(10**5))[1:-1] # raise to 10**6 for b-file
def agen():
for k in count(1):
kloc = digits_of_e.find(str(k))
assert kloc > 0, ("Increase precision", k)
if k > kloc: yield k
|
|
CROSSREFS
|
|
|
KEYWORD
|
base,nonn
|
|
AUTHOR
|
Leonid Ianoushevitch (leonid163(AT)mail.ru), Oct 24 2008
|
|
EXTENSIONS
|
|
|
STATUS
|
approved
|
|
|
|