OFFSET
1,2
LINKS
Chai Wah Wu, Table of n, a(n) for n = 1..54
PROG
(Python)
from math import gcd
A347308_list, nset, m, c, j, i = [1], {1}, 2, 0, 2, 1
for _ in range(10**4):
i += 1
k = m
while k == j or gcd(k, j) == 1 or k in nset:
k += 1
if k > c:
c = k
A347308_list.append(i)
j = k + 1
nset.add(k)
while m in nset:
m += 1 # Chai Wah Wu, Sep 01 2021
CROSSREFS
KEYWORD
nonn
AUTHOR
N. J. A. Sloane, Sep 01 2021
EXTENSIONS
a(23)-a(40) from Alois P. Heinz, Sep 01 2021
a(41)-a(42) from Chai Wah Wu, Sep 01 2021
a(43)-a(45) from Chai Wah Wu, Sep 02 2021
STATUS
approved