OFFSET
1,2
COMMENTS
Needs an estimate for the asymptotic growth rate.
LINKS
Stefano Spezia, Table of n, a(n) for n = 1..10000
PROG
(Python)
from math import gcd
def A348780(n):
j, nset, m, s = 2, {1}, 2, 1
for _ in range(n-1):
k = m
while k == j or gcd(k, j) == 1 or k in nset:
k += 1
j = k+1
s += k
nset.add(k)
while m in nset:
m += 1
return s # Chai Wah Wu, Nov 13 2021
CROSSREFS
KEYWORD
nonn
AUTHOR
N. J. A. Sloane, Nov 13 2021
STATUS
approved