login

Year-end appeal: Please make a donation to the OEIS Foundation to support ongoing development and maintenance of the OEIS. We are now in our 61st year, we have over 378,000 sequences, and we’ve reached 11,000 citations (which often say “discovered thanks to the OEIS”).

A239412
Numbers n such that (n!-k)/(n-k) is prime for some k.
0
4, 6, 8, 16, 18, 92, 254, 258, 660, 1850, 2496, 2774, 2832, 7430, 28540, 32124
OFFSET
1,1
COMMENTS
a(14) > 3000.
There is only one value of k that can work, and it is n/2. Thus, all members of the sequence are even.
Even numbers n such that 2*(n-1)!-1 is prime.
(Odd members of A076133) + 1. - Robert Israel, Aug 11 2016
EXAMPLE
(4!-k)/(4-k) is prime for some k (namely, k = 2). Thus, 4 is a member of this sequence.
MAPLE
select(t -> isprime(2*(t-1)!-1), [seq(q, q=2..1000, 2)]); # Robert Israel, Aug 11 2016
MATHEMATICA
Select[Range[2, 10^3, 2], PrimeQ[2 (# - 1)! - 1] &] (* Michael De Vlieger, Aug 11 2016 *)
PROG
(PARI) a(n)=for(k=1, int(n/2), s=(n!-k)/(n-k); if(floor(s)==s, if(ispseudoprime(s), return(k))))
n=1; while(n<1000, if(a(n), print1(n, ", ")); n+=1)
CROSSREFS
Cf. A076133.
Sequence in context: A095299 A079250 A055397 * A295006 A269833 A049421
KEYWORD
nonn,hard,more
AUTHOR
Derek Orr, May 26 2014
EXTENSIONS
Edited and a(14)-a(16) added by Robert Israel, Aug 11 2016
STATUS
approved