OFFSET
1,1
EXAMPLE
The first 6 primes which are coprime to 6 are 5,7,11,13,17,19. So a(6)=5*7*11*13*17*19 = 1616615.
MATHEMATICA
f[n_] := Block[{c = n, k = 0, p, t = 1}, While[c > 0, k++; While[p = Prime[k]; GCD[p, n] > 1, k++ ]; c--; t *= p; ]; t]; Table[f[n], {n, 17}] (* Ray Chandler, Dec 14 2006 *)
CROSSREFS
KEYWORD
nonn
AUTHOR
Leroy Quet, Dec 13 2006
EXTENSIONS
Extended by Ray Chandler, Dec 14 2006
STATUS
approved