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!)
A319224 Integers q for which f(q) = ((((q - 2)! - 1) / q) - 1) / (q + 1) is a prime number. 1
7, 11, 19, 61, 2557 (list; graph; refs; listen; history; text; internal format)
OFFSET
1,1
COMMENTS
For q < 7, f(q) is not an integer.
f(q) for q = 2557 is a PRP7592.
According to Wilson's theorem, f(q) can be an integer only if q is prime.
LINKS
MATHEMATICA
a[q_]:=If[PrimeQ[((((q - 2)! - 1) / q) - 1) / (q + 1)], q]; DeleteCases[Array[a, 100], Null] (* Stefano Spezia, Nov 04 2018 *)
PROG
(PARI) forprime(q=7, 2557, my(p = ((((q - 2)! - 1) / q) - 1) / (q + 1)); if(ispseudoprime(p), print1(q, ", ")))
CROSSREFS
Sequence in context: A307965 A323109 A023267 * A282037 A050562 A321806
KEYWORD
nonn,hard,more
AUTHOR
Rashid Naimi, Sep 13 2018
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 24 00:30 EDT 2024. Contains 371917 sequences. (Running on oeis4.)