OFFSET
1,2
COMMENTS
LINKS
Michael De Vlieger, Table of n, a(n) for n = 1..10000
EXAMPLE
a(1)=1 implies a(2)=2, the smallest novel squarefree number divisible by 2, the least non divisor prime of 1. Likewise a(3)=3. a(4) must be the smallest squarefree multiple of 2, the least non divisor prime of 3, so a(4) cannot be 4, it must be 6 which is squarefree.
MATHEMATICA
nn = 120; c[_] := False; s = {1}; m[_] := 1; j = 1; c[1] = True;
f[x_] := Block[{q = 2}, While[Divisible[x, q], q = NextPrime[q]]; q];
{j}~Join~Reap[Monitor[Do[k = f[j];
While[Or[c[k*m[k]], ! SquareFreeQ[k*m[k]]], m[k]++];
k *= m[k]; j = Sow[k]; c[k] = True, {n, 2, nn}], n] ][[-1, 1]] (* Michael De Vlieger, Dec 28 2024 *)
CROSSREFS
KEYWORD
nonn
AUTHOR
David James Sycamore, Dec 25 2024
EXTENSIONS
More terms from Jinyuan Wang, Dec 25 2024
STATUS
approved