OFFSET
1,2
LINKS
N. J. A. Sloane, Table of n, a(n) for n = 1..9988
PROG
(Python)
from math import gcd, prod
from itertools import count, islice
def agen(): # generator of terms
alst, aset, mink = [1], {1}, 2; yield 1
for n in count(2):
k, s = mink, n - n//2
prodall = prod(alst[n-n//2-1:n-1])
while k in aset or gcd(prodall, k) != 1: k += 1
alst.append(k); aset.add(k)
if k%2 == 1: yield k
while mink in aset: mink += 1
print(list(islice(agen(), 77))) # Michael S. Branicky, May 23 2022
CROSSREFS
KEYWORD
nonn
AUTHOR
N. J. A. Sloane, May 22 2022
STATUS
approved