OFFSET
1,1
LINKS
Michel Marcus, Table of n, a(n) for n = 1..1000
EXAMPLE
The composites which are coprime to 6 are: 25,35,49,55,65,77,85,...So a(6) is the 6th of these, which is 77.
MATHEMATICA
f[n_] := Block[{k = 1, c = n}, While[c > 0, k++; While[PrimeQ[k] || GCD[k, n] > 1, k++ ]; c--; ]; k]; Table[f[n], {n, 61}] (* Ray Chandler, Jan 08 2007 *)
PROG
(PARI) a(n) = {my(c=2, nb=0); while(nb != n, c++; if (!isprime(c) && (gcd(c, n)==1), nb++)); c; } \\ Michel Marcus, Sep 06 2019
CROSSREFS
KEYWORD
nonn
AUTHOR
Leroy Quet, Jan 06 2007
EXTENSIONS
Extended by Ray Chandler, Jan 08 2007
STATUS
approved