cp's OEIS Frontend

This is a front-end for the Online Encyclopedia of Integer Sequences, made by Christian Perfect. The idea is to provide OEIS entries in non-ancient HTML, and then to think about how they're presented visually. The source code is on GitHub.

A358211 Self-locating strings within e: numbers k such that the string k is at position k (after the decimal point) in the decimal digits of e, where 7 is the 0th digit.

This page as a plain text file.
%I A358211 #24 Dec 19 2022 13:55:52
%S A358211 1,8,215,374,614,849,4142,7945,5964055,8008913,7131377227,8829981707
%N A358211 Self-locating strings within e: numbers k such that the string k is at position k (after the decimal point) in the decimal digits of e, where 7 is the 0th digit.
%e A358211 The first two terms 1 and 8 are depicted here:
%e A358211 Position:      0123456789...
%e A358211 Digits of e: 2.7182818284...
%e A358211                .^......^....
%e A358211 1 is the first term because 1 is in position 1 after the decimal point (when starting to count with 0).
%e A358211 8 is the second term because 8 is in position 8 etc.
%o A358211 (Python)
%o A358211 # after _Michael S. Branicky_ in A064810
%o A358211 # First get a file with e digits, e.g. https://www4.baumann.at/downloads/e.txt
%o A358211 with open('e.txt', 'r') as f: digits_of_e = f.readline()[2:]
%o A358211 def afind():
%o A358211   global digits_of_e
%o A358211   for k in range(len(digits_of_e)):
%o A358211     s = str(k)
%o A358211     if digits_of_e[k:k+len(s)] == s: print(k, end=", ")
%o A358211 afind()
%Y A358211 Cf. A001113, A064810, A205648.
%K A358211 base,nonn,more
%O A358211 0,2
%A A358211 _Chris Baumann_, Nov 04 2022
%E A358211 a(9)-a(12) from _Michael S. Branicky_, Nov 04 2022