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.

A370975 a(n) = (A370952(n+1) - A370952(n)) /(2*n+1).

Original entry on oeis.org

1, 1, -1, 1, 1, 1, -2, 2, -1, 1, -1, 1, -1, 1, -1, 1, -1, 1, -1, 1, -1, 1, -1, 1, 1, 1, -1, 1, -1, 1, -2, 2, -2, 2, -2, 2, -2, 2, -2, 2, -2, 2, -2, 2, -1, -1, 2, -2, 2, 1, -2, 2, -2, 2, -2, 2, -2, 2, -2, 2, -2, 2, -2, 2, -2, 2, -2, 2, -2, 2, -2, 2, -2, 2, -2, 2, -2, 2, -2, 2
Offset: 1

Views

Author

N. J. A. Sloane, Apr 17 2024

Keywords

Crossrefs

Programs

  • Python
    from itertools import count, islice
    def A370975_gen(): # generator of terms
        a, aset = 1, {0,1}
        for p in count(3,2):
            for b in count(a%p,p):
                if b not in aset:
                    aset.add(b)
                    yield (b-a)//p
                    a = b
                    break
    A370095_list = list(islice(A370975_gen(),20)) # Chai Wah Wu, Apr 17 2024