A368133
a(1,2,3) = 1,2,3; let j = a(n-1), M(n) = Product_{i = 1..n-2} { p a distinct prime: p | a(i), gcd(p, j) = 1 }. For n > 3, a(n) is the least novel multiple of M(n) if M(n) > 1; otherwise a(n) is the least novel multiple of A053669(j), the smallest prime which does not divide j.
Original entry on oeis.org
1, 2, 3, 4, 6, 5, 12, 10, 9, 20, 15, 8, 30, 7, 60, 14, 45, 28, 75, 42, 25, 84, 35, 18, 70, 21, 40, 63, 50, 105, 16, 210, 11, 420, 22, 315, 44, 525, 66, 140, 33, 280, 99, 350, 132, 175, 198, 245, 264, 385, 24, 770, 27, 1540, 36, 1155, 26, 2310, 13, 4620, 39, 3080
Offset: 1
a(1, 2, 3) = 1, 2, 3. M(4) = 2 because 2 | a(2) but does not divide a(3); 2 is the only a(m), m < 3, with this property, so a(4) = 4, the least novel multiple of 2.
Now we have a(1,2,3,4) = 1,2,3,4. M(5) = 3 because 3 | a(3) but does not divide a(4); 3 is the only a(m), m < 4, with this property, so a(5) = 2*3 = 6, the least novel multiple of 3.
We now have a(1..5) = 1, 2, 3, 4, 6. M(6) = 1, the empty product, because there is no prime which divides some a(m), m < 5, which does not also divide a(n-1) = 6. This situation invokes the second condition of the definition, so a(6) = 1*5, the least novel multiple of A053669(6) = 5, the smallest prime which does not divide 6. Consequently a(7) = 2*6 = 12 because no prime dividing a(1..5) also divides 5.
The same situation arises again at a(13) = 30 = 2*3*5; every prime divisor of a(m), m < 13, is 2, 3, or 5, which again invokes the second condition, M(14) = 1, the empty product, so a(14) = 1*7, since A053669(30) = 7. Consequently a(15) = 2*7 = 14.
a(91307) = 61 (whereas A362855(91307) = 53; point of divergence from A362855).
-
nn = 10^5; c[] := False; m[] := 1;
Array[Set[{a[#], c[#], m[#]}, {#, True, 2}] &, 3]; j = 3;
s = {2}; r = Max[s]; c[3] = False;
q[x_] := Block[{qq = 2}, While[Divisible[x, qq], qq = NextPrime[qq]]; qq];
Do[(If[# == 1,
Set[k, NextPrime[r]],
While[Or[c[#], # == j] &[# m[#]], m[#]++];
Set[k, # m[#]]] &[Times @@ Complement[s, #]];
s = Union[s, #];
If[Last[#] > r, r = Last[#]]) &@ FactorInteger[j][[All, 1]];
Set[{a[n], c[j], j}, {k, True, k}], {n, 4, nn}];
Array[a, nn] (* Michael De Vlieger, Jan 05 2024 *)
A362631
Lexicographically earliest infinite sequence of distinct positive integers with a(n) = n for n <= 3, and for n > 3 a(n) is the least novel multiple of the greatest prime divisor of a(n-2) which does not divide a(n-1).
Original entry on oeis.org
1, 2, 3, 4, 6, 5, 9, 10, 12, 15, 8, 20, 7, 25, 14, 30, 21, 35, 18, 28, 24, 42, 11, 49, 22, 56, 33, 63, 44, 70, 55, 77, 40, 66, 45, 88, 50, 99, 60, 110, 27, 121, 36, 132, 13, 143, 16, 26, 17, 39, 34, 52, 51, 65, 68, 78, 85, 91, 102, 104, 119, 117, 136, 130, 153, 156, 170, 169, 187, 182, 204, 195, 221, 75, 238, 80, 255, 32, 272, 19
Offset: 1
a(4,5) = 4, 6 and since rad(4)|rad(6) a(6) = least u = 5.
a(11,12) = 8, 20 and since rad(8)|rad(20) a(13) = least u = 7.
a(44,45) = 132, 13 and gpd(132) = 11 does not divide 13, and since it is the 13th occurrence of p = 11, a(46) = 13*11 = 143.
a(45,46) = 13, 143 which forces a(47) = least u = 16 (see Comment).
a(90,91) = 69, 114 and 23 is the greatest prime dividing 69 which does not divide 114. Since 23 has not appeared earlier in the sequence a(92) = 23.
There is as yet no known formula for the row lengths of the table below. Whereas most rows terminate with a multiple of the prime they start with, there are exceptions, e.g., 47, 109. This behavior is open to explanation.
The table starts:
2;
3,4,6;
5,9,10,12,15,8,20;
7,25,14,30,21,35,18,28,24,42;
11,49,22,56,33,63,44,70,55,77,40,66,45,88,50,99,60,110,27,121,36,132;
13,143,16,26;
17,39,34,52,51,65,68,78,85,91,102,104,119,117,136,130,153,156,170,169,187,182,204,195,221,75,238,80,255,32,272;
19,....
- Michael De Vlieger, Table of n, a(n) for n = 1..10000
- Michael De Vlieger, Scatterplot of a(n) n = 1..10000.
- Michael De Vlieger, Log log scatterplot of a(n) n = 1..2^20.
- Michael De Vlieger, Log log scatterplot of a(n), n = 1..10000, showing primes in red, composite prime powers in gold, squarefree composites in green, and numbers neither squarefree nor prime powers in blue. We accentuate powerful numbers that are not prime powers in light blue.
-
mm = 3; nn = 10^4; c[] := False; q[] := 1;
Array[Set[{a[#], c[#]}, {#, True}] &, mm]; q[2]++; u = mm + 1;
i = a[mm - 1]; j = a[mm]; s = {1};
Do[t = FactorInteger[i][[All, 1]];
If[SubsetQ[s, t], q[u]++; Set[k, u],
p = SelectFirst[Reverse@ t, CoprimeQ[j, #] &];
If[! IntegerQ[p], Set[k, u], While[c[p*q[p]], q[p]++]; k = p*q[p]] ];
Set[{a[n], c[k], i, j, s}, {k, True, j, k, t}];
If[k == u, While[c[u], u++]], {n, mm + 1, nn}];
Array[a, nn]
A383342
Lexicographically earliest infinite sequence of distinct positive integers such that the number following any consecutive pair x, y of terms is the smallest novel number divisible by R(x,y) = rad(x*y)/rad(gcd(x,y)).
Original entry on oeis.org
1, 2, 4, 3, 6, 8, 9, 12, 10, 15, 18, 20, 30, 21, 70, 60, 42, 35, 90, 84, 105, 40, 126, 210, 5, 168, 420, 25, 252, 630, 45, 14, 840, 75, 28, 1050, 120, 7, 1260, 150, 49, 1470, 180, 56, 315, 240, 98, 525, 270, 112, 735, 300, 140, 63, 330, 770, 147, 660, 1540, 189
Offset: 1
It follows from the definition that the first two terms must be a(1) = 1, a(2) = 2. R(1,2) = rad(2)/rad(1) = 2 and since 2 is already a term, a(3) = 4.
Since a(2) = 2 and a(3) = 4 have the same rad it follows that a(4) = 3, the smallest novel number.
R(4,3) = rad(12)/rad(1) = 6, so a(5) = 6, since 6 has not occurred earlier.
R(3,6) = rad(18)/rad(3) = 2, so a(6) = 8, the least novel multiple of 2.
R(6,8) = rad(48)/rad(2) = 6/2 = 3 so a(7) = 9, the least novel multiple of 3.
a(23) = 126, a(24) = 210 and R(126,210) = rad(126*210)/rad(42) = 210/42 = 5, which has not occurred earlier, so a(25) = 5.
- Michael De Vlieger, Table of n, a(n) for n = 1..10000
- Michael De Vlieger, Log log scatterplot of a(n), n = 1..2^20.
- Michael De Vlieger, Log log scatterplot of a(n), n = 1..2^16, showing primes in red, proper prime powers in gold, squarefree composites in green, and numbers neither squarefree nor prime powers in blue and purple, where purple indicates powerful numbers that are not prime powers. Primorials are highlighted in large bright green points.
- Michael De Vlieger, Plot p^k | a(n) at (x,y) = (n, pi(p)) for n = 1..2^11, 12X vertical exaggeration, with a color function showing k = 1 in black, k = 2 in red, ... maximum value of k in reference range in magenta. The color bar under the plot indicates numbers as immediately above, red = prime, etc.
-
nn = 120; rad[x_] := rad[x] = Times @@ FactorInteger[x][[All, 1]];
c[] := False; m[] := 1; i = 1; j = 2; c[1] = c[2] = True;
{1, 2}~Join~Reap[Do[k = rad[i*j]/rad[GCD[i, j]];
While[c[k*m[k]], m[k]++]; k *= m[k];
Set[{c[k], i, j}, {True, j, k}]; Sow[k],
{n, 3, nn}] ][[-1, 1]] (* Michael De Vlieger, Apr 25 2025 *)
A370740
a(1) = 1. Thereafter a(n) is the least novel k such that A007947(k*a(n-1)) is the smallest number in A002110 which is not already a term.
Original entry on oeis.org
1, 2, 3, 4, 6, 5, 12, 10, 9, 20, 15, 8, 30, 7, 60, 14, 45, 28, 75, 42, 25, 84, 35, 18, 70, 21, 40, 63, 50, 105, 16, 210, 11, 420, 22, 315, 44, 525, 66, 140, 33, 280, 99, 350, 132, 175, 198, 245, 264, 385, 24, 770, 27, 1540, 36, 1155, 32, 2310, 13, 4620, 26
Offset: 1
a(1) = 1--> a(2) = 2 since 2 is the least primorial exceeding 1.
a(2) = 2--> a(3) = 3 since 2*3 = 6, the next primorial, and no k < 3 is such that rad(k*2) = 6.
a(3) = 3--> a(4) = 4 since rad(3*4) = rad(12) = 6.
a(4) = 4-->a(5) = 6 since rad(4*6) = rad(24) = 6.
a(58,59,60,61) = 2310,13,4620,26 = P(5), prime(6), 2*P(5), 2*prime(6).
Showing 1-4 of 4 results.
Comments