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.

A079849 First differences of A079848.

Original entry on oeis.org

1, 2, 6, 12, 14, 10, 50, 4, 48, 62, 22, 120, 30, 104, 154, 116, 40, 122, 178, 66, 218, 28, 72, 296, 220, 290, 130, 552, 80, 322, 158, 400, 302, 528, 520, 170, 268, 236, 576, 454, 600, 470, 766, 224, 1090, 666, 180, 764, 868, 606, 572, 294, 738, 70, 918, 1122, 1196
Offset: 1

Views

Author

Amarnath Murthy, Feb 18 2003

Keywords

Crossrefs

Cf. A079848.

Programs

  • Python
    from itertools import islice
    from sympy import nextprime
    def A079849_gen(): # generator of terms
        aset2, alist, k, m = set(), [2], 2, 2
        while (k:=nextprime(k)):
            bset2 = set()
            for a in alist:
                if (b:=k-a) in aset2:
                    break
                bset2.add(b)
            else:
                yield k-m
                alist.append(m:=k)
                aset2.update(bset2)
    A079849_list = list(islice(A079849_gen(),30)) # Chai Wah Wu, Sep 11 2023

Extensions

Extended by Ray Chandler, Feb 11 2007