OFFSET
1,1
COMMENTS
a(6) is a 41025-digit prime corresponding to n = 5666, and a(7) is a 288639-digit prime corresponding to n = 32918. See A237443 for additional values of n. - Kellen Shenton, Dec 21 2024
Primes in sequence A237580 = n -> (2n)! - n! + 1, i.e., the terms of that sequence which coincide with A237579(n) = least prime factor of (2n)! - n! + 1. - M. F. Hasler, Feb 09 2014
REFERENCES
G. Balzarotti and P. P. Lava, Le sequenze di numeri interi, Hoepli, 2008, p. 159.
EXAMPLE
For n=2, (2*2)! - 2! + 1 = 24 - 2 + 1 = 23, which is prime.
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 *)
PROG
(PARI) for(n=1, 999, ispseudoprime(p=(2*n)!-n!+1)&&print1(p", ")) \\ M. F. Hasler, Feb 09 2014
CROSSREFS
KEYWORD
nonn,changed
AUTHOR
Paolo P. Lava and Giorgio Balzarotti, May 23 2006
STATUS
approved