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.

A348247 Where prime(n) first appears in A307730.

Original entry on oeis.org

2, 4, 47, 52, 1374, 1385, 3738, 3755, 6680, 6703, 84626, 84657, 89480, 89521, 91832, 91879, 173092, 173151, 192882, 192949, 524587, 524660, 865301, 865384, 876543, 876640, 890479, 890582, 904273, 904382, 918859, 918986, 1628979, 1629116, 1647107, 1647256, 1666775
Offset: 1

Views

Author

N. J. A. Sloane, Oct 17 2021

Keywords

Crossrefs

Programs

  • Python
    from collections import Counter
    from sympy import prime
    def A348247(n):
        c, b, p, i = Counter(), 1, prime(n), 1
        while True:
            k, kb = 1, b
            while c[kb] >= kb:
                k += 1
                kb += b
            if kb == p:
                return i
            c[kb] += 1
            b = k
            i += 1 # Chai Wah Wu, Oct 21 2021

Extensions

More terms from Chai Wah Wu, Oct 21 2021