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.

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

Original entry on oeis.org

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
Offset: 1

Views

Author

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

Keywords

Comments

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

Examples

			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.
		

Crossrefs

Programs

  • 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
    print(list(islice(agen(), 60))) # Michael S. Branicky, Jul 10 2022

Formula

a(n) > A078197(n). - Michael S. Branicky, Jul 10 2022

Extensions

Terms corrected and a(45) and beyond from Michael S. Branicky, Jul 10 2022