OFFSET
1,2
COMMENTS
It is conjectured that every positive number appears in A347113. - N. J. A. Sloane, Nov 08 2021
LINKS
Michael De Vlieger, Table of n, a(n) for n = 1..10000 (first 3330 terms from N. J. A. Sloane)
Hugo Pfoertner, Table of n, a(n) for n = 1..132708
Hugo Pfoertner, Illustration of terms corresponding to first 400000 terms of A347113, use zoom to see details.
MATHEMATICA
With[{s = Import["https://oeis.org/A347113/b347113.txt", "Data"][[All, -1]]}, Array[FirstPosition[s, #][[1]] &, 71]] (* Michael De Vlieger, Sep 01 2021 *)
PROG
(Python)
from math import gcd
def A347306(n):
if n == 1:
return 1
i, j, nset, m = 1, 2, {1}, 2
while True:
k = m
i += 1
while k == j or gcd(k, j) == 1 or k in nset:
k += 1
if k == n:
return i
j = k+1
nset.add(k)
while m in nset:
m += 1 # Chai Wah Wu, Sep 02 2021
CROSSREFS
KEYWORD
nonn
AUTHOR
N. J. A. Sloane, Sep 01 2021
STATUS
approved