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.

A362062 First index in A362061 where A001221(A362061(a(n))) = n.

Original entry on oeis.org

1, 3, 10, 52, 398, 4734, 78428, 1326821, 26386288, 645482585
Offset: 0

Views

Author

Scott R. Shannon, Apr 06 2023

Keywords

Crossrefs

Programs

  • Python
    from sympy import primefactors
    from collections import Counter
    from itertools import count, islice
    def agen(): # generator of terms
        an, c, d, d2, k = 1, Counter(), dict(), dict(), 0
        for n in count(1):
            if an in d: dpf = d[an]
            else: dpf, d2[dpf] = len(primefactors(an)), n
            c[dpf] += 1
            an = c[dpf]
            if k in d2: yield d2[k]; k += 1
    print(list(islice(agen(), 7))) # Michael S. Branicky, Apr 06 2023
    
  • Python
    from itertools import count
    from sympy import primenu
    def A362062(n):
        a, b, c = {}, {}, 1
        for m in count(1):
            d = b[c] = b.get(c,primenu(c))
            if d == n: return m
            c = a[d] = a.get(d,0)+1 # Chai Wah Wu, Apr 07 2023

Extensions

a(9) from Chai Wah Wu, Apr 07 2023