OFFSET
1,1
COMMENTS
a(42) > 50000.
k=2 and k=4 produce values (-7 and -5) whose absolute value is a prime.
Terms > 2000 correspond to probable primes.
LINKS
Henri & Renaud Lifchitz, PRP Records. Search for n!3-9.
OpenPFGW Project, Primality Tester
EXAMPLE
17!3 - 3^2 = 17*14*11*8*5*2 - 9 = 209431 is prime, so 17 is in the sequence. - Jens Kruse Andersen, Aug 20 2014
MATHEMATICA
MultiFactorial[n_, k_]:=If[n<1, 1, If[n<k+1, n, n*MultiFactorial[n-k, k]]];
lst={}; Do[If[PrimeQ[MultiFactorial[n, 3]-3^2], AppendTo[lst, n]], {n, 50000}]; lst
CROSSREFS
KEYWORD
nonn,more
AUTHOR
Robert Price, May 30 2014
EXTENSIONS
a(41) from Robert Price, Sep 19 2014
STATUS
approved