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.

Previous Showing 11-18 of 18 results.

A338341 Primes p in A338338 that occur in the middle of a run of three terms in A338338 that are divisible by p.

Original entry on oeis.org

3, 13, 19, 23, 29, 43, 47, 59, 61, 73, 83, 97, 103, 107, 113, 127, 137, 139, 149, 157, 163, 179, 191, 193, 223, 227, 229, 233, 251, 269, 271, 283, 307, 313, 317, 331, 349, 353, 367, 373, 389, 397, 401, 409, 419, 433, 439, 449, 457, 461, 463, 467, 491, 499, 503, 509, 541, 547, 557
Offset: 1

Views

Author

N. J. A. Sloane, Oct 27 2020

Keywords

Crossrefs

Programs

  • PARI
    See Links section.

A338343 Primes p in A338338 that occur at the end of a run of three terms in A338338 that are divisible by p.

Original entry on oeis.org

167, 239, 337, 379, 479, 601, 1181, 1301, 1511, 1721, 1871, 2069, 2099, 2239, 2281, 2377, 2467, 2477, 2609, 2749, 2803, 2843, 2879, 2917, 2963, 3049, 3089, 3209, 3221, 3299, 3361, 3389, 3499, 3907, 3923, 4049, 4127, 4153, 4201, 4271, 4327, 4637, 4651, 4673, 4733, 4871
Offset: 1

Views

Author

N. J. A. Sloane, Oct 27 2020

Keywords

Crossrefs

Programs

  • C
    See Links section.

A338345 Numbers k such that A338338(k) is a prime.

Original entry on oeis.org

2, 5, 7, 11, 19, 33, 38, 42, 54, 73, 78, 82, 91, 95, 120, 125, 145, 152, 157, 161, 175, 186, 190, 206, 236, 260, 264, 270, 290, 294, 325, 331, 335, 341, 372, 377, 381, 387, 429, 430, 448, 453, 474, 480, 493, 502, 514, 552, 562, 568, 586, 600, 601, 605, 610, 619, 649, 655, 675
Offset: 1

Views

Author

N. J. A. Sloane, Oct 27 2020

Keywords

Comments

This is the sorted union of A338340, A338342, and A338344.
Note that the primes in A338338 appear in their natural order.

Crossrefs

Programs

  • PARI
    See Links section.

A338347 a(n) = index k such that A338338(k) = n, or -1 if n does not appear in A338338.

Original entry on oeis.org

1, 2, 5, 3, 7, 4, 11, 10, 6, 8, 19, 14, 33, 12, 15, 18, 38, 22, 42, 9, 23, 20, 54, 26, 68, 32, 27, 13, 73, 16, 78, 37, 28, 39, 60, 35, 82, 41, 34, 17, 91, 24, 95, 21, 44, 53, 120, 36, 90, 31, 49, 64, 125, 56, 29, 25, 43, 72, 145, 45, 152, 79, 48, 81, 69, 57, 157, 40, 55, 46
Offset: 1

Views

Author

N. J. A. Sloane, Oct 27 2020

Keywords

Comments

There is a strong conjecture that A338338 is a permutation of the positive integers. If that is true, this is the inverse permutation.

Crossrefs

Programs

  • PARI
    See Links section.

A338457 Numbers k such that A338338(k) = k.

Original entry on oeis.org

1, 2, 15, 27, 354, 893, 2127, 2133, 2427, 2649, 4098, 4107, 6189, 19721, 124064, 140287, 1200685, 17347808, 18209035, 32738176, 35033632
Offset: 1

Views

Author

Rémy Sigrist, Oct 28 2020

Keywords

Crossrefs

Programs

  • C
    See Links section.

A280864 Lexicographically earliest infinite sequence of distinct positive terms such that, for any prime p, any run of consecutive multiples of p has length exactly 2.

Original entry on oeis.org

1, 2, 4, 3, 6, 8, 5, 10, 12, 9, 7, 14, 16, 11, 22, 18, 15, 20, 24, 21, 28, 26, 13, 17, 34, 30, 45, 19, 38, 32, 23, 46, 36, 27, 25, 35, 42, 48, 29, 58, 40, 55, 33, 39, 52, 44, 77, 49, 31, 62, 50, 65, 78, 54, 37, 74, 56, 63, 51, 68, 60, 75, 41, 82, 64, 43, 86
Offset: 1

Views

Author

Rémy Sigrist, Jan 09 2017

Keywords

Comments

In other words, each multiple of a prime p has exactly one neighbor that is also a multiple of p.
This sequence is similar to A280866; the first difference occurs at n=42: a(42)=55 whereas A280866(42)=50.
Conjectured to be a permutation of the positive integers.
Sometimes referred to as the "cup of coffee" sequence, since it feels as if just one more cup of coffee is all it would take to prove that this is indeed a permutation of the positive integers. - N. J. A. Sloane, Nov 04 2020
There are several short cycles, and apparently at least two infinite cycles. For a list see the attached file "Properties of A280864". - N. J. A. Sloane, Feb 03 2017
Properties (For proofs, see the attached file "Properties of A280864")
Theorem 1: This sequence contains every prime and every even number. (Added by N. J. A. Sloane, Jan 15 2017)
Theorem 2: The sequence contains infinitely many odd composite numbers. (Added by N. J. A. Sloane, Feb 14 2017)
Theorem 3: If p is an odd prime, the sequence contains infinitely many odd multiples of p. (Added by N. J. A. Sloane, Mar 12 2017, with corrected proof Apr 03 2017)
There are two types of primes in this sequence: Type I, the first time a term a(n) is divisible by p is when a(n)=p for some n; Type II, the first time a term a(n) is divisible by p is when a(n)=k*p for some n and some k>1 (the Type II primes are listed in A280745).
Conjecture 4: If a prime p divides a(n) then p <= n. - N. J. A. Sloane, Apr 07 2017 and Apr 16 2017
Theorem 5: The sequence is a permutation of the natural numbers iff it contains every square. - N. J. A. Sloane, Apr 14 2017
From Bob Selcoe, Apr 03 2017: (Start)
Define the "radical class" C_R to be the set of numbers which have the same radical R (or the same largest squarefree divisor - i.e., the same product of their prime factors). These are the columns in A284311. So for example C_10 is the set of numbers with radical 10 or prime factors {2,5}: {10, 20, 40, 50, 80, 100, 160, ...}.
If the sequence contains any members of C_R, then those members must appear in order; so for example, if 160 has appeared, {10, 20, 40, 50, 80} will have already appeared, in that order. Naturally, this holds for prime powers; for example, C_5: if 3125 has appeared, {5, 25, 125, 625} will have appeared earlier, in that order.
After seeing a(n), let S be smallest missing number (A280740) and let prime(G) be largest prime already appearing in the sequence. Conjecture: Prime(G) < S <= prime(G+1), and a(35) = 25 = S is the only nonprime S term (following a(31) = 23, preceding a(39) = 29). (End)

Examples

			The first terms, alongside their required and forbidden prime factors are:
n   a(n)  Required  Forbidden
--  ----  --------  ---------
1      1  none      none
2      2  none      none
3      4  2         none
4      3  none      2
5      6  3         none
6      8  2         3
7      5  none      2
8     10  5         none
9     12  2         5
10     9  3         2
11     7  none      3
12    14  7         none
13    16  2         7
14    11  none      2
15    22  11        none
16    18  2         11
17    15  3         2
18    20  5         3
19    24  2         5
20    21  3         2
21    28  7         3
22    26  2         7
23    13  13        2
24    17  none      13
25    34  17        none
26    30  2         17
27    45  3, 5      2
28    19  none      3, 5
29    38  19        none
30    32  2         19
31    23  none      2
32    46  23        none
33    36  2         23
34    27  3         2
35    25  none      3
36    35  5         none
37    42  7         5
38    48  2, 3      7
39    29  none      2, 3
40    58  29        none
41    40  2         29
42    55  5         2
		

Crossrefs

A280754 gives fixed points.
Cf. A280866.
In the same spirit as A064413 and A098550.
A338338, A338444, and A375029 are variants.
A373797 is a finite version.

Programs

  • Maple
    N:= 1000: # to get all terms until the first term > N
    A[1]:= 1:
    A[2]:= 2:
    G:= {}:
    Avail:= [$3..N]:
    found:= true:
    lastn:= 2:
    for n from 3 while found and nops(Avail)>0 do
      found:= false;
      H:= G;
      G:= numtheory:-factorset(A[n-1]);
      r:= convert(G minus H,`*`);
      s:= convert(G intersect H, `*`);
      for j from 1 to nops(Avail) do
        if Avail[j] mod r = 0 and igcd(Avail[j],s) = 1 then
          found:= true;
          A[n]:= Avail[j];
          Avail:= subsop(j=NULL,Avail);
          lastn:= n;
          break
        fi
      od;
    od:
    seq(A[i],i=1..lastn); # Robert Israel, Mar 22 2017
  • Mathematica
    terms = 100;
    rad[n_] := Times @@ FactorInteger[n][[All, 1]];
    A280864 = Reap[present = 0; p = 1; pp = 1; Do[forbidden = GCD[p, pp]; mandatory = p/forbidden; a = mandatory; While[BitGet[present, a] > 0 || GCD[forbidden, a] > 1, a += mandatory]; Sow[a]; present += 2^a; pp = p; p = rad[a], terms]][[2, 1]] (* Jean-François Alcover, Nov 23 2017, translated from Rémy Sigrist's PARI program *)

Extensions

Added "infinite" to definition. - N. J. A. Sloane, Sep 28 2019

A338441 Lexicographically earliest sequence of distinct squarefree numbers such that for any prime p, any run of consecutive multiples of p has length exactly 3.

Original entry on oeis.org

1, 2, 6, 30, 15, 5, 3, 21, 42, 14, 10, 35, 70, 154, 22, 11, 7, 77, 231, 33, 39, 13, 26, 34, 102, 51, 57, 19, 38, 46, 138, 69, 66, 110, 330, 105, 273, 91, 65, 55, 165, 429, 78, 130, 170, 85, 17, 23, 115, 230, 190, 114, 285, 195, 455, 182, 210, 390, 1365, 1001
Offset: 1

Views

Author

Rémy Sigrist, Oct 28 2020

Keywords

Comments

This sequence is a squarefree variant of A338338.
Conjecture: this is a permutation of the squarefree numbers (A005117).

Examples

			The first terms, alongside their prime factors, are:
  n   a(n)  Prime factors
  --  ----  -------------
   1     1
   2     2  2
   3     6  2 3
   4    30  2 3 5
   5    15    3 5
   6     5      5
   7     3    3
   8    21    3   7
   9    42  2 3   7
  10    14  2     7
  11    10  2   5
  12    35      5 7
  13    70  2   5 7
  14   154  2     7 11
  15    22  2       11
  16    11          11
		

Crossrefs

Programs

  • C
    // See Links section.

A338346 1, followed by first differences of A338340.

Original entry on oeis.org

1, 5, 4, 8, 19, 40, 4, 9, 34, 32, 4, 25, 20, 54, 30, 41, 46, 53, 23, 40, 9, 12, 87, 9, 9, 56, 9, 27, 33, 53, 25, 124, 93, 22, 26, 128, 98, 4, 177, 63, 179, 29, 165, 9, 114, 164, 14, 29, 262, 188, 9, 127, 58, 10, 10, 58, 30, 97, 268, 229, 223, 28, 9, 97, 62, 9, 67, 87, 43, 52
Offset: 1

Views

Author

N. J. A. Sloane, Oct 27 2020

Keywords

Comments

A338338 has a natural division into blocks, where the blocks (after the initial 1) start at the primes described in A338339 and A338340. The first few blocks are
[1], [2, 4, 6, 3, 9], [5, 10, 20, 8], [7, 14, 28, 12, 15, 30, 40, 16], [11, 22, 44, 18, ..., 36, 48, 32], [17, ...
and the present sequence gives the lengths of the successive blocks.

Crossrefs

Previous Showing 11-18 of 18 results.