A364154 Lexicographically earliest sequence of distinct positive integers such that a(n) is least novel multiple m of the product of all primes less than the greatest prime factor of a(n-1) which do not divide a(n-1); a(1) = 1.
1, 2, 3, 4, 5, 6, 7, 30, 8, 9, 10, 12, 11, 210, 13, 2310, 14, 15, 16, 17, 30030, 18, 19, 510510, 20, 21, 40, 24, 22, 105, 26, 1155, 28, 45, 32, 23, 9699690, 25, 36, 27, 34, 15015, 38, 255255, 42, 35, 48, 29, 223092870, 31, 6469693230, 33, 70, 39, 770, 51, 10010
Offset: 1
Keywords
Examples
a(1) = 1 and there are no primes < 1 which divide 1 therefore m = 1 so a(2) = 2, the least unused number. Likewise a(3) = 3. a(4) = 2*2 = 4 since 2 is the only prime < 3 which does not divide 3 and 2 has already occurred. Since a(7) = 7, a(8) = 2*3*5 = 30.
Links
- Michael De Vlieger, Table of n, a(n) for n = 1..4992
- Michael De Vlieger, Log log scatterplot of log_10(a(n)), n = 1..2^16.
- Michael De Vlieger, Plot p^e | a(n) at (x,y) = (n, pi(p)) for n = 1..2^11, with a color function representing e = 1 as black, e = 2 as red, ..., the maximum value of e in the dataset as magenta. Under the plot, we indicate the empty product in black, primes in red, composite prime powers in gold, squarefree composites in green, and all other numbers in blue.
Programs
-
Mathematica
nn = 120; c[] := False; m[] := 1; a[1] = j = 1; c[1] = True; Do[k = Times @@ Complement[Prime@ Range[PrimePi@ Last[#] - 1], #] &[ FactorInteger[j][[All, 1]] ]; While[c[k m[k]], m[k]++]; k *= m[k]; Set[{a[n], c[k], j}, {k, True, k}], {n, 2, nn}]; Array[a, nn]
-
PARI
lista(nn) = my(c, m, v=List([1, 2])); for(k=3, nn, c=m=1; forprime(p=2, vecmax(factor(v[k-1])[, 1]), if(v[k-1]%p, m*=p)); while(setsearch(Set(v), c*m), c++); listput(v, c*m)); Vec(v) \\ Jinyuan Wang, Jul 11 2023
Extensions
More terms from Jinyuan Wang, Jul 11 2023
Comments