OFFSET
1,2
COMMENTS
Similar to A386482 the primes do not occur in their natural order, and the terms preceeding and following prime terms can be high multiples of the prime.
The fixed points in the first 10^6 terms are 1, 2, 240, 723, 2123, 3263, 11885, 27305, 90145, 122419, 918023; more likely exist. The sequence is conjectured to be a permutation of the positive numbers.
See A394417 for the rad value of the product of adjacent terms.
LINKS
Scott R. Shannon, Table of n, a(n) for n = 1..10000
Scott R. Shannon, Image of the first 100000 terms. The colors are graduated across the spectrum from red to violet to show the number of prime factors of each term, counted with multiplicity. The thin green line is a(n) = n.
EXAMPLE
a(5) = 8 as the rad values for the products of previous adjacent terms are 2, 6 and 30, while 8 < a(4) = 10, shares a factor with it, and rad(8*10) = 10 which does not equal any previous rad values. This is the first term to differ from A392505.
MATHEMATICA
Block[{c, j, k, q, r, rad, s, v, nn}, nn = 120; c[_] := False; q[_] := False; rad[x_] := rad[x] = Times @@ FactorInteger[x][[All, 1]]; Map[Set[c[#], True] &, s = {1, 2}]; MapApply[Set[q[rad[Times @@ {##}]], True] &, Partition[s, 2, 1]]; v = 1; j = Last[s]; While[Or[! SquareFreeQ[v], q[rad[v] ] ], v++]; s~Join~Reap[Do[k = v; While[Or[c[k], q[Set[r, rad[j*k] ] ], CoprimeQ[k, j] ], k++]; Sow[k]; Set[{c[k], q[r], j}, {True, True, k}]; If[r == v, While[Or[! SquareFreeQ[v], q[rad[v]]], v++] ], {n, Length[s] + 1, nn}] ][[-1, 1]] ] (* Michael De Vlieger, Mar 29 2026 *)
CROSSREFS
KEYWORD
nonn
AUTHOR
Scott R. Shannon, Mar 28 2026
STATUS
approved
