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”).

A051915
Numbers k such that 2*k! + 1 is prime.
12
0, 1, 2, 3, 5, 12, 18, 35, 51, 53, 78, 209, 396, 4166, 9091, 9587, 13357, 15917, 17652, 46127
OFFSET
1,3
COMMENTS
Used PrimeForm to prove primality for n = 4166 (classical N-1 test). - David Radcliffe, May 28 2007
EXAMPLE
k = 5 is here because 2*5! + 1 = 241 is prime.
MATHEMATICA
Select[Range[0, 400], PrimeQ[2*#! + 1] &] (* Vladimir Joseph Stephan Orlovsky, Feb 13 2012 *)
PROG
(Magma) [n: n in [0..1000] | IsPrime(2*Factorial(n) +1)]; // Vincenzo Librandi, Feb 21 2015
(PARI) is(k) = ispseudoprime(2*k!+1); \\ Jinyuan Wang, Feb 05 2020
KEYWORD
nonn,more
AUTHOR
Labos Elemer, Dec 18 1999
EXTENSIONS
4166 from David Radcliffe, May 28 2007
More terms from Serge Batalov, Feb 18 2015
STATUS
approved