cp's OEIS Frontend

This is a front-end for the Online Encyclopedia of Integer Sequences, made by Christian Perfect. The idea is to provide OEIS entries in non-ancient HTML, and then to think about how they're presented visually. The source code is on GitHub.

Showing 1-1 of 1 results.

A319224 Integers q for which f(q) = ((((q - 2)! - 1) / q) - 1) / (q + 1) is a prime number.

Original entry on oeis.org

7, 11, 19, 61, 2557
Offset: 1

Views

Author

Rashid Naimi, Sep 13 2018

Keywords

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.
a(6) > 30000. - Michael S. Branicky, Apr 18 2025

Crossrefs

Programs

  • Mathematica
    a[q_]:=If[PrimeQ[((((q - 2)! - 1) / q) - 1) / (q + 1)], q]; DeleteCases[Array[a, 100], Null] (* Stefano Spezia, Nov 04 2018 *)
  • PARI
    forprime(q=7, 2557, my(p = ((((q - 2)! - 1) / q) - 1) / (q + 1)); if(ispseudoprime(p), print1(q, ", ")))
Showing 1-1 of 1 results.