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.

A370959 Indices of high points in A245340.

Original entry on oeis.org

0, 1, 2, 4, 5, 14, 52, 82, 356, 392, 688, 704, 751, 1325, 1748, 6683, 12570, 24740, 28291, 28307, 45136, 77226, 128419, 135993, 341522, 362992, 643110
Offset: 1

Views

Author

N. J. A. Sloane, Mar 28 2024

Keywords

Crossrefs

The companion to A370956.
Cf. A245340.

Programs

  • Python
    from itertools import count, islice
    def A370959_gen(): # generator of terms
        a, aset, b, c = 0, set(), 0, -1
        for n in count(1):
            aset.add(a)
            if a==b:
                if n-1>c:
                    c = n-1
                    yield a
                while b in aset:
                    b += 1
            a = next(a for a in count(a%n,n) if a not in aset)
    A370959_list = list(islice(A370959_gen(), 20)) # Chai Wah Wu, Mar 28 2024

Extensions

a(17)-a(23) from Michael S. Branicky, Mar 28 2024
a(24)-a(27) from Chai Wah Wu, Mar 28 2024