OFFSET
1,1
EXAMPLE
8 is the 3rd composite. 9,15,21,25,... is the sequence of composites which are coprime to 8. 21 is the 3rd term of these composites, so a(3) = 21.
PROG
(PARI) {m=59; c=1; for(n=1, m, c++; while(isprime(c), c++); e=4; k=n; while(k>0, d=e; if(gcd(d, c)==1, k--); e=d+1; while(isprime(e), e++)); print1(d, ", "))} - (Klaus Brockhaus, Aug 15 2006)
CROSSREFS
KEYWORD
nonn
AUTHOR
Leroy Quet, Aug 04 2006
EXTENSIONS
More terms from Klaus Brockhaus, Aug 15 2006
STATUS
approved