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.

A355918 Highest index in n-th inventory in A355916 and A355917.

Original entry on oeis.org

0, 1, 3, 5, 7, 11, 13, 16, 17, 19, 22, 23, 26, 27, 29, 32, 34, 36, 38, 40, 42, 44, 46, 48, 50, 52, 55, 56, 59, 62, 64, 66, 67, 71, 72, 73, 74, 75, 78, 81, 82, 84, 85, 88, 89, 91, 93, 95, 97, 99, 102, 103, 106, 108, 109, 111, 113, 115, 117, 119, 121, 123, 125
Offset: 1

Views

Author

N. J. A. Sloane, Sep 24 2022

Keywords

Crossrefs

Programs

  • C
    See Links section.
    
  • Python
    from collections import Counter
    from itertools import count, islice
    def agen():
        num, inventory = 0, Counter([0, 0])
        yield 0
        for k in count(2):
            c = [inventory[num], num]
            if c[0] == 0: yield num; num = 0
            else: num = num + 1
            inventory.update(c)
    print(list(islice(agen(), 63))) # Michael S. Branicky, Sep 25 2022

Extensions

More terms from Rémy Sigrist, Sep 25 2022