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

A119497
Primes of the form n! + n!! + 1.
0
3, 5, 769, 1405006117752879898543142713389983127221179514880001
OFFSET
1,1
REFERENCES
G. Balzarotti and P. P. Lava, Le sequenze di numeri interi, Hoepli, 2008, p. 159.
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