OFFSET
1,2
LINKS
Rémy Sigrist, PARI program
MATHEMATICA
terms = 100;
rad[n_] := Times @@ FactorInteger[n][[All, 1]];
A280864 = Reap[present = 0; p = 1; pp = 1;
Do[forbidden = GCD[p, pp]; mandatory = p/forbidden;
a = mandatory;
While[BitGet[present, a] > 0 || GCD[forbidden, a] > 1,
a += mandatory];
Sow[a];
present += 2^a; pp = p; p = rad[a],
{terms}]][[2, 1]];
Clear[a];
Table[a[n], {n, 1, terms - 1}] (* Jean-François Alcover, May 10 2024, adapted from Rémy Sigrist's PARI program *)
PROG
(PARI) \\ See Links section.
CROSSREFS
KEYWORD
nonn
AUTHOR
Rémy Sigrist, May 01 2024
STATUS
approved