OFFSET
1,1
COMMENTS
Like A336957 no prime or prime power can be a term as if it shared a prime factor with the previous term it would then not contain a prime factor not in the previous term. It is likely all other composite numbers appear.
LINKS
Scott R. Shannon, Table of n, a(n) for n = 1..1000
EXAMPLE
a(2) = 6 as 2*3 = 6, where 2 is a prime factor shared with a(1) = 2 and 3 is a prime factor which is not a factor of a(1).
a(3) = 10 as 2*5 = 10, where 2 is a prime factor shared with a(2) = 6 and 5 is a prime factor which is not a factor of a(2).
a(4) = 12 as 2*2*3 = 12, where 2 is a prime factor shared with a(3) = 10 and 3 is a prime factor which is not a factor of a(3).
PROG
(PARI)
isok(k, fprec, v) = {if (#select(x->(x==k), v) == 0, my(f = Set(factor(k)[, 1]), finter = setintersect(f, fprec)); #setintersect(f, fprec) && #setminus(f, fprec); ); }
lista(nn) = {my(va= vector(nn)); va[1] = 2; for (n=2, nn, my(k=2, fprec = Set(factor(va[n-1])[, 1])); while (! isok(k, fprec, va), k++); va[n] = k; ); va; } \\ Michel Marcus, Nov 30 2020
CROSSREFS
KEYWORD
nonn
AUTHOR
Scott R. Shannon, Nov 28 2020
STATUS
approved