OFFSET
1,1
COMMENTS
Conjecture: a(n) is a prime not exceeding 2n with the only exceptions a(4)=4 and a(6)=9.
Note that a(n) is at least n and there is at least a prime in the interval [n,2n] by the Bertrand Postulate first confirmed by Chebyshev.
Compare this sequence with A208494.
LINKS
Zhi-Wei Sun, Table of n, a(n) for n = 1..2500
Oliver Gerard, Re: A new conjecture on primes, a message to Number Theory List, March 23, 2012.
Zhi-Wei Sun, A new conjecture on primes, a message to Number Theory List, March 20, 2012.
Zhi-Wei Sun, On functions taking only prime values, J. Number Theory 133(2013), no.8, 2794-2812.
EXAMPLE
We have a(4)=4, because 4 divides none of 4!-1!=23, 4!-2!=22, 4!-3!=18, and both 2 and 3 divide 4!-3!=18.
MATHEMATICA
R[n_, m_]:=If[n==1, 1, Product[If[Mod[n!-k!, m]==0, 0, 1], {k, 1, n-1}]] Do[Do[If[R[n, m]==1, Print[n, " ", m]; Goto[aa]], {m, Max[2, n], 2n}]; Print[n]; Label[aa]; Continue, {n, 1, 2500}]
CROSSREFS
KEYWORD
nonn
AUTHOR
Zhi-Wei Sun, Mar 26 2012
STATUS
approved