|
|
A119992
|
|
a(n) = n-th positive integer which is coprime to n!.
|
|
3
|
|
|
1, 3, 7, 11, 17, 19, 29, 31, 37, 41, 47, 53, 61, 67, 71, 73, 83, 89, 101, 103, 107, 109, 127, 131, 137, 139, 149, 151, 163, 167, 179, 181, 191, 193, 197, 199, 223, 227, 229, 233, 241, 251, 263, 269, 271, 277, 283, 293, 307, 311, 313, 317, 337, 347, 349, 353, 359
(list;
graph;
refs;
listen;
history;
text;
internal format)
|
|
|
OFFSET
|
1,2
|
|
COMMENTS
|
Primes not in a(n): {2, 5, 13, 23, 43, 59, 79, 97, 113, 157, 173, 211, 239, 257, 281, 331, 373, 389, 433, 461, 479, 523, 569, 607, 659, ...} - Michael De Vlieger, Oct 02 2017
|
|
LINKS
|
|
|
EXAMPLE
|
1,5,7,11,13,17,19,23,25,...is the sequence of positive integers which are coprime to 4! = 24. 11 is the 4th such integer, so a(4) = 11.
|
|
MAPLE
|
local i, j ;
j := 0 ;
i := 1 ;
while true do
if gcd(i, n!) = 1 then
j := j+1 ;
if j = n then
return i ;
break ;
fi ;
fi ;
i := i+1 ;
od ;
end:
|
|
MATHEMATICA
|
With[{nn = 57}, Table[Select[{1}~Join~Prime@ Range[2 nn], CoprimeQ[n!, #] &][[n]], {n, nn}]] (* Michael De Vlieger, Oct 02 2017 *)
|
|
CROSSREFS
|
|
|
KEYWORD
|
nonn
|
|
AUTHOR
|
|
|
EXTENSIONS
|
|
|
STATUS
|
approved
|
|
|
|