OFFSET
1,1
COMMENTS
Greedy sequence corresponding to the 421st Erdős Problem.
LINKS
Touch Sungkawichai, Table of n, a(n) for n = 1..20000
Thomas F. Bloom, Erdős Problem #421
PROG
(Python)
from itertools import count, islice
def A389544_gen(): # generator of terms
an, conP, endP = 2, {1, 2}, {1, 2} # an; set of all consecutive/ending products resp.
while True:
yield an
an = next(k for k in count(an+1) if k not in conP and all(k*p not in conP for p in endP))
endP = {an} | {an*p for p in endP}
conP |= endP
print(list(islice(A389544_gen(), 68))) # Michael S. Branicky, Jan 04 2026
CROSSREFS
KEYWORD
nonn,nice
AUTHOR
Touch Sungkawichai, Jan 02 2026
STATUS
approved
