The OEIS mourns the passing of Jim Simons and is grateful to the Simons Foundation for its support of research in many branches of science, including the OEIS.
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!)
A119497 Primes of the form n! + n!! + 1. 0
3, 5, 769, 1405006117752879898543142713389983127221179514880001 (list; graph; refs; listen; history; text; internal format)
OFFSET
1,1
REFERENCES
G. Balzarotti and P. P. Lava, Le sequenze di numeri interi, Hoepli, 2008, p. 159.
LINKS
EXAMPLE
For n=2, 2! + 2!! + 1 = 2 + 2 + 1 = 5, which is prime.
For n=6, 6! + 6!! + 1 = 720 + 48 + 1 = 769, which is prime.
MAPLE
SFACT:= proc(n) local i, j, k; for k from 1 by 1 to n do i:=k; j:=k-2; while j >0 do i:=i*j; j:=j-2; od: if isprime(k!+i+1) then print(k!+i+1); fi; od: end: SFACT(300);
PROG
(PARI) dfac(n)=prod(k=0, n\2-1, n-k-k)
for(n=1, 42, if(ispseudoprime(t=n!+dfac(n)+1), print1(t", "))); v \\ Charles R Greathouse IV, Feb 17 2011
CROSSREFS
Cf. A118769.
Sequence in context: A002427 A350036 A136134 * A298094 A012783 A062655
KEYWORD
nonn
AUTHOR
EXTENSIONS
No more terms with fewer than a thousand digits. - Charles R Greathouse IV, Feb 17 2011
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 June 9 04:57 EDT 2024. Contains 373227 sequences. (Running on oeis4.)