OFFSET
1,2
LINKS
Sean A. Irvine, Java program (github)
PROG
(PARI) missing(n, v) = {my(nb = 0, k = 1, s = Set(v), ok = 0); while(!ok, if (! setsearch(s, k), nb++); ok = (nb == n); if (!ok, k++); ); k; }
nextt(start, cop) = {my(k = max(start+1, cop+1)); while(gcd(k, cop) == 1, k++); k; }
list4(nn) = {my(v3 = vector(nn), v4 = vector(nn)); v4[1] = 1; for (n=1, nn, v3[n] = missing(n, v4); if (n+1 > nn, break); v4[n+1] = nextt(v4[n], v3[n]); ); v4} \\ Michel Marcus, Sep 06 2019
CROSSREFS
KEYWORD
nonn
AUTHOR
Leroy Quet, Nov 04 2007
EXTENSIONS
Name and one term corrected and extended by Michel Marcus, Sep 06 2019
STATUS
approved