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

A360519 Let C consist of 1 together with all numbers with at least two distinct prime factors; this is the lexicographically earliest infinite sequence {a(n)} of distinct elements of C such that, for n>2, a(n) has a common factor with a(n-1) but not with a(n-2).

Original entry on oeis.org

1, 6, 10, 35, 21, 12, 20, 55, 33, 18, 14, 77, 99, 15, 40, 22, 143, 39, 24, 28, 91, 65, 30, 34, 119, 63, 36, 26, 221, 51, 42, 38, 95, 45, 48, 44, 187, 85, 50, 46, 69, 57, 76, 52, 117, 75, 70, 58, 87, 93, 62, 56, 105, 111, 74, 68, 153, 123, 82, 80, 115, 161, 84, 60, 145, 203, 98, 54, 129, 215, 100, 66, 141
Offset: 1

Views

Author

Keywords

Comments

In other words, C contains all positive numbers except powers of primes p^k, k>=1.
This is a modified version of the Enots Wolley sequence A336957. The modification ensures that the sequence does not contain the prime 2.
Let Ker(k), the kernel of k, denote the set of primes dividing k. Thus Ker(36) = {2,3}, Ker(1) = {}.
Theorem: a(1)=1, a(2)=6; thereafter, a(n) is the smallest number m not yet in the sequence such that
(i) Ker(m) intersect Ker(a(n-1)) is nonempty,
(ii) Ker(m) intersect Ker(a(n-2)) is empty, and
(iii) The set Ker(m) \ Ker(a(n-1)) is nonempty.
Conjecture: The sequence is a permutation of C.

Crossrefs

For a number of sequences related to this, see A361102 (the sequence C) and the following entries.

Programs

  • Maple
    with(numtheory);
    N:= 10^4: # to get a(1) to a(n) where a(n+1) is the first term > N
    B:= Vector(N, datatype=integer[4]):
    A[1]:=1; A[2]:=6;
    for n from 3 do
      for k from 10 to N do
        if B[k] = 0 and igcd(k, A[n-1]) > 1 and igcd(k, A[n-2]) = 1 then
              if nops(factorset(k) minus factorset(A[n-1])) > 0 then
           A[n]:= k;
           B[k]:= 1;
           break;
              fi;
        fi
      od:
      if k > N then break; fi;
    od:
    s1:=[seq(A[i], i=1..n-1)];
  • Mathematica
    nn = 2^12; c[_] = False;
    f[x_] := f[x] = Times @@ FactorInteger[x][[All, 1]];
    MapIndexed[
     Set[{a[First[#2]], c[#1]}, {#1, True}] &, {1, 6}];
     u = 10; i = a[1]; j = a[2];
    Do[k = u;
      While[Nand[! PrimePowerQ[k], ! c[k],
        CoprimeQ[i, k], ! CoprimeQ[j, k], ! Divisible[j, f[k]]], k++];
      Set[{a[n], c[k], i, j}, {k, True, j, f[k]}];
      If[k == u, While[Or[c[u], PrimePowerQ[u]], u++]]
      , {n, 3, nn}];
    Array[a, nn] (* Michael De Vlieger, Mar 03 2023 *)

A361109 After A360519(n) has been found, a(n) is the smallest member of C (A361102) that is missing from A360519.

Original entry on oeis.org

6, 10, 12, 12, 12, 14, 14, 14, 14, 14, 15, 15, 15, 22, 22, 24, 24, 24, 26, 26, 26, 26, 26, 26, 26, 26, 26, 38, 38, 38, 38, 44, 44, 44, 44, 46, 46, 46, 46, 52, 52, 52, 52, 54, 54, 54, 54, 54, 54, 54, 54, 54, 54, 54, 54, 54, 54, 54, 54, 54, 54, 54, 54, 54, 54
Offset: 1

Views

Author

Keywords

Examples

			After we have calculated A360519(4) = 35, the smallest term of C that is missing from A360519 is 12, so a(4) = 12.
		

Crossrefs

Programs

  • PARI
    See Links section.

Extensions

More terms from Rémy Sigrist, Mar 03 2023

A361111 The binary expansion of a(n) specifies which primes divide A360519(n).

Original entry on oeis.org

0, 3, 5, 12, 10, 3, 5, 20, 18, 3, 9, 24, 18, 6, 5, 17, 48, 34, 3, 9, 40, 36, 7, 65, 72, 10, 3, 33, 96, 66, 11, 129, 132, 6, 3, 17, 80, 68, 5, 257, 258, 130, 129, 33, 34, 6, 13, 513, 514, 1026, 1025, 9, 14, 2050, 2049, 65, 66, 4098, 4097, 5, 260, 264, 11, 7
Offset: 1

Views

Author

Keywords

Examples

			A360519(6) = 12, which is divisible by 2, 3, but not 5, 7, 11, ... So we write down 1, 1, 0, 0, 0, .... Thus a(6) has binary expansion ...00011, and so a(6) = 3.
		

Crossrefs

Programs

  • PARI
    See Links section.

Formula

a(n) = A087207(A360519(n)). - Rémy Sigrist, Mar 03 2023

Extensions

More terms from Rémy Sigrist, Mar 03 2023
Showing 1-3 of 3 results.