OFFSET
1,1
COMMENTS
For n <= 2^14, the only primes in the sequence are {2, 3, 5, 11}. Apart from 2, these primes are followed by their squares in A393471. These may be the only primes in this sequence. - Michael De Vlieger, Mar 24 2026
LINKS
Scott R. Shannon, Table of n, a(n) for n = 1..10000
Michael De Vlieger, Log log scatterplot of a(n), n = 1..2^14, showing primes in red and squarefree composites in other colors. Terms in yellow are even squarefree semiprimes and terms in light green are odd squarefree semiprimes, appearing in two increasingly well defined trajectories near the bottom of the graph.
Scott R. Shannon, Image of the first 100000 terms.
FORMULA
MATHEMATICA
Block[{c, q}, nn = 120; c[_] := False; q[_] := False; Set[{i, j}, {1, 2}]; u = 3; MapIndexed[Set[{c[#], q[#]}, {True, True}] &, {1, 2}]; rad[x] := Times @@ FactorInteger[x][[All, 1]]; {i, j}~Join~Reap[Do[If[PrimePowerQ[j], p = FactorInteger[j][[1, 1]]; k = 1; While[Or[c[#], q[rad[j*#] ] ] &[p*k], k++]; k *= p, k = u; While[Or[c[k], q[rad[j*k] ], CoprimeQ[j, k] ], k++] ]; Sow[rad[j*k] ]; Set[{q[rad[j*k] ], c[k], i, j}, {True, True, j, k}]; If[k == u, While[c[u], u++]], {n, 3, nn}] ][[-1, 1]] ] (* Michael De Vlieger, Mar 24 2026 *)
CROSSREFS
KEYWORD
nonn,look
AUTHOR
Scott R. Shannon, Mar 24 2026
STATUS
approved
