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.

Showing 1-4 of 4 results.

A362033 The indices where A362031(n) = 1.

Original entry on oeis.org

1, 2, 4, 9, 17, 37, 88, 185, 387, 783, 1611, 3354, 6959, 14469, 29983, 62386, 127992, 256022, 513110, 1029534, 2069248, 4161860, 8380507, 16880924, 34031112, 68622510, 138439065, 279365954, 563874347, 1138322112, 2298288343, 4640647720
Offset: 1

Views

Author

Scott R. Shannon, Apr 06 2023

Keywords

Comments

See A362031 for further details.

Crossrefs

Programs

  • Python
    # uses imports and generator in A362031
    def agen():
        yield from (n for n, an in enumerate(A362031gen(), 1) if an == 1)
    print(list(islice(agen(), 20))) # Michael S. Branicky, Apr 06 2023
    
  • Python
    from itertools import count, islice
    from sympy import primeomega
    def A362033_gen(): # generator of terms
        a, b, c = {}, {}, 1
        for n in count(1):
            if c == 1: yield n
            d = b[c] = b.get(c,primeomega(c))
            c = a[d] = a.get(d,0)+1
    A362033_list = list(islice(A362033_gen(),10)) # Chai Wah Wu, Apr 06 2023

Extensions

a(20)-a(28) from Michael S. Branicky, Apr 06 2023
a(29)-a(31) from Chai Wah Wu, Apr 06 2023
a(32) from Chai Wah Wu, Apr 08 2023

A362061 a(1) = 1; for n > 1, a(n) is number of terms in the first n-1 terms of the sequence that have the same number of distinct prime factors as a(n-1).

Original entry on oeis.org

1, 1, 2, 1, 3, 2, 3, 4, 5, 6, 1, 4, 7, 8, 9, 10, 2, 11, 12, 3, 13, 14, 4, 15, 5, 16, 17, 18, 6, 7, 19, 20, 8, 21, 9, 22, 10, 11, 23, 24, 12, 13, 25, 26, 14, 15, 16, 27, 28, 17, 29, 30, 1, 5, 31, 32, 33, 18, 19, 34, 20, 21, 22, 23, 35, 24, 25, 36, 26, 27, 37, 38, 28, 29, 39, 30, 2, 40, 31, 41, 42
Offset: 1

Views

Author

Scott R. Shannon, Apr 06 2023

Keywords

Comments

After 5 million terms the most common numbers for the number of distinct prime factors of the terms are 3, 2, 4, 1, and 5, although it is likely these change as n increases.
See A362062 for the indices where a term with k distinct prime factors first appears.

Examples

			a(9) = 5 as the number of distinct prime factors of a(8) = A001221(a(8)) = A001221(4) = 1, and there are five previous terms, a(3), a(5) a(6), a(7) and a(8), that have one prime factor.
a(11) = 1 as the number of distinct prime factors of a(10) = A001221(a(10)) = A001221(6) = 2, and there is only one term, a(10), that has two prime factors.
		

Crossrefs

Programs

A362077 a(1) = 1, a(2) = 2; for n > 2, a(n) is the smallest positive number that has not yet appeared that is a multiple of Omega(a(n-1)).

Original entry on oeis.org

1, 2, 3, 4, 6, 8, 9, 10, 12, 15, 14, 16, 20, 18, 21, 22, 24, 28, 27, 30, 33, 26, 32, 5, 7, 11, 13, 17, 19, 23, 25, 34, 36, 40, 44, 39, 38, 42, 45, 48, 35, 46, 50, 51, 52, 54, 56, 60, 64, 66, 57, 58, 62, 68, 63, 69, 70, 72, 55, 74, 76, 75, 78, 81, 80, 65, 82, 84, 88, 92, 87, 86, 90, 96, 102, 93
Offset: 1

Views

Author

Scott R. Shannon, Apr 08 2023

Keywords

Comments

Other than the first three terms the only other primes in the first 500000 terms are the consecutive terms a(24)..a(30) = 5, 7, 11, 13, 17, 19, 23. It is unknown if more exist.
In the same range the fixed points are 1, 2, 3, 4, and 48559, although it is possible more exist.

Examples

			a(4) = 4 as Omega(a(3)) = A001222(3) = 1, and 4 is the smallest unused number that is a multiple of 1.
a(10) = 15 as Omega(a(9)) = A001222(12) = 3, and 15 is the smallest unused number that is a multiple of 3.
		

Crossrefs

Programs

  • Python
    from sympy import primeomega
    from itertools import count, islice
    def A362077_gen(): # generator of terms
        a, b = {1,2}, 2
        yield from (1,2)
        while True:
            for b in count(p:=primeomega(b),p):
                if b not in a:
                    yield b
                    a.add(b)
                    break
    A362077_list = list(islice(A362077_gen(),20)) # Chai Wah Wu, Apr 11 2023

A362178 a(1) = 1, a(2) = 2; for n > 2, a(n) is the smallest positive number that has not yet appeared that is a multiple of omega(a(n-1)).

Original entry on oeis.org

1, 2, 3, 4, 5, 6, 8, 7, 9, 10, 12, 14, 16, 11, 13, 15, 18, 20, 22, 24, 26, 28, 30, 21, 32, 17, 19, 23, 25, 27, 29, 31, 33, 34, 36, 38, 40, 42, 39, 44, 46, 48, 50, 52, 54, 56, 58, 60, 45, 62, 64, 35, 66, 51, 68, 70, 57, 72, 74, 76, 78, 63, 80, 82, 84, 69, 86, 88, 90, 75, 92, 94, 96, 98, 100
Offset: 1

Views

Author

Scott R. Shannon, Apr 11 2023

Keywords

Comments

Unlike A362077 numerous primes appear in the sequence; in the first 500000 terms there are seventy-four in total. In the same range there are twelve fixed points, the last being 57. It is unknown whether more exist.

Examples

			a(5) = 5 as omega(a(4)) = A001221(4) = 1, and 5 is the smallest unused number that is a multiple of 1.
a(7) = 8 as omega(a(6)) = A001221(6) = 2, and 8 is the smallest unused number that is a multiple of 2.
		

Crossrefs

Programs

  • Python
    from itertools import count, islice
    from sympy import primenu
    def A362178_gen(): # generator of terms
        a, b = {1,2}, 2
        yield from (1,2)
        while True:
            for b in count(p:=primenu(b),p):
                if b not in a:
                    yield b
                    a.add(b)
                    break
    A362178_list = list(islice(A362178_gen(),20)) # Chai Wah Wu, Apr 12 2023
Showing 1-4 of 4 results.