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.

A377926 Indices of records in A228407.

Original entry on oeis.org

0, 1, 4, 8, 13, 15, 22, 28, 29, 30, 31, 62, 78, 94, 108, 138, 169, 205, 238, 279, 290, 291, 292, 293, 294, 295, 296, 297, 298, 299, 300, 301, 302, 303, 304, 305, 306, 307, 419, 519, 611, 667, 884, 3341, 3415, 3839, 4623, 4665, 5974, 5975, 5976, 5977, 5978, 5979, 5980, 5981, 5982, 5983, 5984, 5985, 5986, 5987, 5988, 5989, 5990, 5991, 5992, 5993, 5994, 5995, 5996, 5997, 5998
Offset: 1

Views

Author

N. J. A. Sloane, Dec 14 2024

Keywords

Crossrefs

Programs

  • Python
    from itertools import islice
    from collections import Counter
    def A377926_gen(): # generator of terms
        yield from (0,1)
        l, s, b, c, j = Counter('11'), 1, {11}, 11, 1
        while True:
            i = s
            while True:
                if i not in b:
                    li, o = Counter(str(i)), 0
                    for d in (l+li).values():
                        if d % 2:
                            if o > 0:
                                break
                            o += 1
                    else:
                        j += 1
                        if i>c:
                            yield j
                            c = i
                        l = li
                        b.add(i)
                        while s in b:
                            b.remove(s)
                            s += 1
                        break
                i += 1
    A377926_list = list(islice(A377926_gen(),40)) # Chai Wah Wu, Dec 14 2024