OFFSET
1,2
COMMENTS
In other words a(n) is the least novel multiple of the squarefree kernel of a(n-1)/p, where p is the smallest prime factor of a(n-1).
If a(n-1) is prime, a(n) is the smallest unused number in the sequence so far.
Conjectured to be a permutation of the positive integers with primes in order.
LINKS
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^14, 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 also shows powerful numbers that are not prime powers.
EXAMPLE
a(2)= 2 (given), therefore a(3) is the smallest number not already a term which is divisible by the squarefree kernel of 2/2 = 1. Thus a(3) = 3. Likewise a(4) = 4. Since A007947(4/2) = 2, a(5) = 6, the least novel multiple of 2.
MATHEMATICA
nn = 120; c[_] := False; m[_] := 1;
Do[Set[{a[i], c[i]}, {i, True}], {i, 2}]; j = a[2];
Do[k = Times @@ FactorInteger[j/FactorInteger[j][[1, 1]] ][[All, 1]];
While[c[k*m[k]], m[k]++]; k *= m[k];
Set[{a[n], c[k], j}, {k, True, k}], {n, 3, nn}];
Array[a, nn] (* Michael De Vlieger, Dec 06 2024 *)
CROSSREFS
KEYWORD
nonn,easy,new
AUTHOR
David James Sycamore, Dec 05 2024
EXTENSIONS
More terms from Michael De Vlieger, Dec 06 2024.
STATUS
approved