OFFSET
2,1
EXAMPLE
The positive integers which are each coprime to exactly one prime dividing 12 form the sequence: 2,3,4,8,9,10,14,15,16,20,21,22,26,27,28... The 12th of these is 22; so a(12) = 22.
PROG
(PARI) a(n) = {ok = 0; nb = 0; i = 1; pf = factor(n)[, 1]; while(! ok, if (sum(j=1, #pf, gcd(i, pf[j]) == 1) == 1, nb++); if (nb == n, ok = 1, i++); ); i; } \\ Michel Marcus, Feb 10 2014
CROSSREFS
KEYWORD
nonn
AUTHOR
Leroy Quet, Mar 08 2007
EXTENSIONS
Offset corrected and more terms from Michel Marcus, Feb 10 2014
STATUS
approved