OFFSET
1,2
COMMENTS
Odd numbers appear in order, at a(2k) for k > 0. - Michael De Vlieger, Apr 13 2022
LINKS
MATHEMATICA
nn = 10000; c[_] = 0; a[1] = c[1] = 1; a[2] = 3; c[3] = u = 2; Do[k = u; While[Nand[c[k] == 0, CoprimeQ[a[i-1], k]], k++]; Set[{a[i], c[k]}, {k, i}]; If[a[i] == u, While[c[u] > 0, u++]], {i, 3, nn}]; Array[c, nn] (* Michael De Vlieger, Apr 13 2022 *)
CROSSREFS
KEYWORD
nonn
AUTHOR
Reinhard Zumkeller, Jun 22 2003
STATUS
approved