login
The OEIS is supported by the many generous donors to the OEIS Foundation.

 

Logo
Hints
(Greetings from The On-Line Encyclopedia of Integer Sequences!)
A118812 Primes of the form (2n)! - n! + 1. 8
2, 23, 87178286161, 403291461126605629356979201, 5502622159812088949850305428800254867109635014075023360001 (list; graph; refs; listen; history; text; internal format)
OFFSET
1,1
COMMENTS
The next term, if it exists, has more than 7500 digits. - M. F. Hasler, Feb 09 2014
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.
LINKS
FORMULA
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
Cf. A237443 (corresponding values of n).
Sequence in context: A334616 A089987 A162605 * A228241 A054909 A171636
KEYWORD
nonn
AUTHOR
STATUS
approved

Lookup | Welcome | Wiki | Register | Music | Plot 2 | Demos | Index | Browse | More | WebCam
Contribute new seq. or comment | Format | Style Sheet | Transforms | Superseeker | Recents
The OEIS Community | Maintained by The OEIS Foundation Inc.

License Agreements, Terms of Use, Privacy Policy. .

Last modified April 23 01:19 EDT 2024. Contains 371906 sequences. (Running on oeis4.)