A118812 Primes of the form (2n)! - n! + 1.
2, 23, 87178286161, 403291461126605629356979201, 5502622159812088949850305428800254867109635014075023360001
Offset: 1
Keywords
Examples
For n=2, (2*2)! - 2! + 1 = 24 - 2 + 1 = 23, which is prime.
References
- G. Balzarotti and P. P. Lava, Le sequenze di numeri interi, Hoepli, 2008, p. 159.
Crossrefs
Cf. A237443 (corresponding values of n).
Programs
-
Maple
PFACT:=proc(N) local i,r; for i from 1 by 1 to N do r:=(2*i)!-i!+1; if isprime(r) then print(i); fi; od; end: PFACT(100);
-
Mathematica
Select[Table[(2n)!-n!+1,{n,30}],PrimeQ] (* Harvey P. Dale, May 05 2018 *)
-
PARI
for(n=1,999,ispseudoprime(p=(2*n)!-n!+1)&&print1(p",")) \\ M. F. Hasler, Feb 09 2014
Comments