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-5 of 5 results.

A370047 a(1) = 1; a(2) = 2; for n > 2, a(n) is smallest unused number such that a(n) shares a factor with a(n-1) and sopfr(a(n)) shares a factor with sopfr(a(n-1)), where sopfr(k) is the sum of the primes dividing k, with repetition.

Original entry on oeis.org

1, 2, 4, 8, 14, 20, 24, 3, 9, 15, 18, 16, 30, 5, 25, 35, 21, 6, 26, 32, 36, 33, 12, 10, 38, 42, 27, 60, 39, 51, 57, 45, 40, 28, 48, 54, 62, 44, 46, 86, 50, 55, 65, 70, 7, 49, 77, 66, 64, 68, 72, 69, 63, 56, 22, 74, 78, 81, 84, 87, 93, 99, 88, 52, 166, 106, 102, 85, 95, 100, 94, 120, 98, 91, 105
Offset: 1

Views

Author

Scott R. Shannon, Feb 08 2024

Keywords

Comments

In the first 100000 terms the primes appear in their natural order, although they are delayed relative to similarly sized numbers. In the same range the fixed points are 1, 2, 9, 27, 165, 88812. The sequence is conjectured to be a permutation of the positive numbers.

Examples

			a(5) = 14 as a(4) = 8 and 14 is the smallest unused number that shares a factor with 8, while sopfr(14) = 9 shares a factor with sopfr(8) = 6.
		

Crossrefs

A370497 a(1) = 1; for n > 1, a(n) is smallest unused number such that a(n) is coprime to a(n-1), sopfr(a(n)) is coprime to sopfr(a(n-1)), and Omega(a(n)) does not equal Omega(a(n-1)), where sopfr(k) is the sum of the primes dividing k, with repetition.

Original entry on oeis.org

1, 2, 27, 4, 3, 10, 11, 6, 7, 8, 5, 9, 13, 12, 17, 14, 19, 15, 23, 16, 29, 18, 31, 20, 21, 37, 22, 41, 24, 25, 28, 33, 40, 39, 43, 26, 45, 32, 47, 30, 53, 34, 59, 35, 48, 49, 44, 57, 52, 51, 56, 55, 54, 61, 36, 67, 38, 63, 46, 71, 42, 73, 50, 79, 58, 75, 62, 83, 60, 89, 64, 97, 65, 76, 69, 68
Offset: 1

Views

Author

Scott R. Shannon, Feb 20 2024

Keywords

Comments

In the first 100000 terms the primes 11, 7 and 5 appear in reverse order, but all others appear in their natural order. In the same range the fixed points begin 1, 2, 4, 13, 294, 295, 296, 299, 304, 309, 640, 649. The sequence is conjectured to be a permutation of the positive numbers.

Examples

			a(3) = 27 as a(2) = 2 and 27 is the smallest unused number that is coprime to 2, sopfr(27) = 9 is coprime to sopfr(2) = 2, and Omega(27) = 3 does not equal Omega(2) = 1.
		

Crossrefs

Programs

  • Python
    from math import gcd
    from sympy import factorint
    from functools import cache
    from itertools import count, islice
    @cache
    def sW(n):
        f = factorint(n)
        return (sum(p*e for p,e in f.items()), sum(f.values()))
    def agen(): # generator of terms
        yield 1
        aset, an, mink = {1, 2}, 2, 3
        while True:
            yield an
            s, W = sW(an)
            an = next(k for k, sk, Wk in ((k,)+sW(k) for k in count(mink)) if k not in aset and gcd(k, an)==1 and gcd(sk, s)==1 and Wk!=W)
            aset.add(an)
            while mink in aset: mink += 1
    print(list(islice(agen(), 76))) # Michael S. Branicky, Feb 21 2024

A370500 a(1) = 1, a(2) = 2; for n > 2, a(n) is the smallest unused positive number such that a(n) does not share a factor with a(n-1) but sopfr(a(n)) does share a factor with soprf(a(n-1)), where sopfr(k) is the sum of the primes dividing k, with repetition.

Original entry on oeis.org

1, 2, 9, 4, 15, 8, 3, 14, 27, 20, 77, 16, 21, 5, 6, 25, 18, 35, 24, 65, 32, 33, 7, 10, 49, 12, 115, 36, 55, 39, 50, 51, 26, 81, 38, 105, 44, 91, 30, 119, 57, 11, 28, 45, 62, 85, 42, 95, 64, 69, 13, 22, 63, 74, 75, 56, 169, 60, 121, 40, 123, 70, 87, 98, 93, 17, 52, 99, 145, 66, 133, 72, 125, 46
Offset: 1

Views

Author

Scott R. Shannon, Feb 20 2024

Keywords

Comments

The fixed points begin 1, 2, 4, 56, 72, 138, 200, 438, 500, 540, 590, 3998. The sequence is conjectured to be a permutation of the positive integers.

Examples

			a(4) = 4 as a(3) = 9 and 4 does not share a factor with 9 while sopfr(4) = 4 does share a factor with sopfr(9) = 6.
		

Crossrefs

A370501 a(1) = 1, a(2) = 2; for n > 2, a(n) is the smallest unused positive number such that a(n) shares a factor with a(n-1) but sopfr(a(n)) does not share a factor with soprf(a(n-1)), where sopfr(k) is the sum of the primes dividing k, with repetition.

Original entry on oeis.org

1, 2, 6, 3, 12, 4, 10, 5, 15, 20, 16, 14, 7, 21, 24, 18, 22, 8, 28, 26, 13, 39, 27, 30, 34, 17, 51, 45, 9, 48, 32, 38, 19, 57, 63, 33, 11, 44, 40, 25, 75, 35, 56, 36, 52, 42, 46, 23, 69, 54, 50, 58, 29, 87, 90, 55, 80, 60, 76, 62, 31, 93, 96, 64, 82, 41, 123, 99, 66, 68, 85, 105, 49, 112
Offset: 1

Views

Author

Scott R. Shannon, Feb 20 2024

Keywords

Comments

The fixed points begin 1, 2, 64, 114, 116, 132, and it is plausible no more exist. The sequence is conjectured to be a permutation of the positive integers.

Examples

			a(6) = 4 as a(5) = 12 and 4 shares a factor with 12 while sopfr(4) = 4 does not share a factor with sopfr(12) = 7.
		

Crossrefs

A370499 a(1) = 1; for n > 1, a(n) is smallest unused number such that a(n) is coprime to a(n-1), sopfr(a(n)) is coprime to sopfr(a(n-1)), Omega(a(n)) does not equal Omega(a(n-1)), the string length of a(n) does not equal the string length of a(n-1), and a(n) has no digit in common with a(n-1), where sopfr(k) is the sum of the primes dividing k, with repetition.

Original entry on oeis.org

1, 20, 7, 15, 208, 5, 12, 305, 17, 4, 11, 6, 13, 8, 19, 200, 3, 10, 223, 9, 23, 100, 27, 101, 22, 103, 24, 107, 25, 104, 29, 105, 2, 45, 109, 26, 113, 28, 111, 40, 117, 32, 147, 38, 127, 30, 149, 33, 112, 37, 102, 43, 106, 47, 108, 35, 124, 39, 116, 49, 125, 34, 151, 36, 157, 42, 131, 44, 115
Offset: 1

Views

Author

Scott R. Shannon, Feb 20 2024

Keywords

Comments

The fixed points begin 1, 2, 11, 13, 40, 357, 2353, 2393, 2465, 2473, 2529, 2649, 2767. It is unknown if the sequence is infinite.

Examples

			a(5) = 208 as a(4) = 15 and 208 is the smallest unused number that is coprime to 15, sopfr(208) = 21 is coprime to sopfr(15) = 8, Omega(208) = 5 does not equal Omega(15) = 2, the string length of "208" = 3 does not equal the string length of "15" = 2, and 208 has no digit in common with 15.
		

Crossrefs

Programs

  • Python
    from math import gcd
    from sympy import factorint
    from functools import cache
    from itertools import count, islice
    @cache
    def sWd(n):
        f = factorint(n)
        return (sum(p*e for p,e in f.items()), sum(f.values()), str(n))
    def agen(): # generator of terms
        yield 1
        aset, an, mink = {1, 20}, 20, 2
        while True:
            yield an
            s, W, d = sWd(an)
            an = next(k for k, sk, Wk, dk in ((k,)+sWd(k) for k in count(mink)) if k not in aset and gcd(k, an)==1 and gcd(sk, s)==1 and Wk!=W and len(dk)!=len(d) and set(dk)&set(d)==set())
            aset.add(an)
            while mink in aset: mink += 1
    print(list(islice(agen(), 70))) # Michael S. Branicky, Feb 21 2024
Showing 1-5 of 5 results.