OFFSET
1,2
COMMENTS
If a prime p divides a(n), then there is a run of exactly three terms (one of which is a(n)) that are divisible by p.
If "three" is changed to "two", we get A280864.
Conjecture: This is a permutation of the positive integers.
LINKS
Rémy Sigrist, Table of n, a(n) for n = 1..20000
Rémy Sigrist, PARI program for A338338
EXAMPLE
After 1,2,4,6,3, we have had two successive multiples of 3, so the next term must be a multiple of 3 we have not yet seen, hence 9. The following term is then the smallest number not yet seen which is not a multiple of 3, hence 5.
PROG
(PARI) See Links section.
CROSSREFS
KEYWORD
nonn
AUTHOR
N. J. A. Sloane, Oct 27 2020
EXTENSIONS
Corrected and extended by Rémy Sigrist, Oct 27 2020
STATUS
approved