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.

A384799 Positions of records in A384797.

Original entry on oeis.org

1, 2, 3, 4, 6, 8, 9, 10, 12, 15, 16, 18, 20, 22, 24, 27, 28, 30, 33, 35, 36, 40, 45, 48, 52, 54, 55, 56, 60, 65, 70, 78, 80, 90, 95, 100, 105, 108, 110, 120, 130, 135, 140, 150, 155, 156, 160, 165, 168, 180, 190, 200, 205, 210, 225, 240, 255, 260, 270, 280, 285, 300
Offset: 1

Views

Author

Hugo Pfoertner, Jun 17 2025

Keywords

Crossrefs

Programs

  • Python
    from itertools import count, islice
    def A384799_gen(): # generator of terms
        s, m = {0}, 1
        for n in count(1):
            c = n+1
            for i in range(n+1):
                if (k:=n**2+i**2) in s:
                    c -= 1
                else:
                    s.add(k)
            if c>m:
                yield n
                m = c
    A384799_list = list(islice(A384799_gen(),30)) # Chai Wah Wu, Jul 07 2025