OFFSET
0,2
EXAMPLE
The first two terms 1 and 8 are depicted here:
Position: 0123456789...
Digits of e: 2.7182818284...
.^......^....
1 is the first term because 1 is in position 1 after the decimal point (when starting to count with 0).
8 is the second term because 8 is in position 8 etc.
PROG
(Python)
# after Michael S. Branicky in A064810
# First get a file with e digits, e.g. https://www4.baumann.at/downloads/e.txt
with open('e.txt', 'r') as f: digits_of_e = f.readline()[2:]
def afind():
global digits_of_e
for k in range(len(digits_of_e)):
s = str(k)
if digits_of_e[k:k+len(s)] == s: print(k, end=", ")
afind()
CROSSREFS
KEYWORD
base,nonn,more
AUTHOR
Chris Baumann, Nov 04 2022
EXTENSIONS
a(9)-a(12) from Michael S. Branicky, Nov 04 2022
STATUS
approved