Table of congruences

From HandWiki

In mathematics, a congruence is an equivalence relation on the integers. The following sections list important or interesting prime-related congruences.

Table of congruences characterizing special primes

[math]\displaystyle{ 2^{p-1} \equiv 1 \pmod{p} }[/math] special case of Fermat's little theorem, satisfied by all odd prime numbers
[math]\displaystyle{ 2^{p-1} \equiv 1 \pmod{p^2} }[/math] solutions are called Wieferich primes (smallest example: 1093)
[math]\displaystyle{ F_{n - \left(\frac{{n}}{{5}}\right)} \equiv 0 \pmod{n} }[/math] satisfied by all prime numbers
[math]\displaystyle{ F_{p - \left(\frac{{p}}{{5}}\right)} \equiv 0 \pmod{p^2} }[/math] solutions are called Wall–Sun–Sun primes (no examples known)
[math]\displaystyle{ {2n-1 \choose n-1} \equiv 1 \pmod{n^3} }[/math] by Wolstenholme's theorem satisfied by all prime numbers greater than 3
[math]\displaystyle{ {2p-1 \choose p-1} \equiv 1 \pmod{p^4}, }[/math] solutions are called Wolstenholme primes (smallest example: 16843)
[math]\displaystyle{ (n-1)!\ \equiv\ -1 \pmod n }[/math] by Wilson's theorem a natural number n is prime if and only if it satisfies this congruence
[math]\displaystyle{ (p-1)!\ \equiv\ -1 \pmod{p^2} }[/math] solutions are called Wilson primes (smallest example: 5)
[math]\displaystyle{ 4[(p-1)!+1]\ \equiv\ -p \pmod{p(p+2)} }[/math] solutions are the twin primes

Other prime-related congruences

There are other prime-related congruences that provide necessary and sufficient conditions on the primality of certain subsequences of the natural numbers. Many of these alternate statements characterizing primality are related to Wilson's theorem, or are restatements of this classical result given in terms of other special variants of generalized factorial functions. For instance, new variants of Wilson's theorem stated in terms of the hyperfactorials, subfactorials, and superfactorials are given in.[1]

Variants of Wilson's theorem

For integers [math]\displaystyle{ k \geq 1 }[/math], we have the following form of Wilson's theorem:

[math]\displaystyle{ (k-1)! (p-k)! \equiv (-1)^k \pmod{p} \iff p \text{ prime. } }[/math]

If [math]\displaystyle{ p }[/math] is odd, we have that

[math]\displaystyle{ \left(\frac{p-1}{2}\right)!^2 \equiv (-1)^{(p+1)/2} \pmod{p} \iff p \text{ an odd prime. } }[/math]

Clement's theorem concerning the twin primes

Clement's congruence-based theorem characterizes the twin primes pairs of the form [math]\displaystyle{ (p, p+2) }[/math] through the following conditions:

[math]\displaystyle{ 4[(p-1)!+1] \equiv -p \pmod{p(p+2)} \iff p,p+2 \text{ are both prime. } }[/math]

P. A. Clement's original 1949 paper [2] provides a proof of this interesting elementary number theoretic criteria for twin primality based on Wilson's theorem. Another characterization given in Lin and Zhipeng's article provides that

[math]\displaystyle{ 2 \left(\frac{p-1}{2}\right)!^2 + (-1)^{\frac{p-1}{2}} (5p+2) \equiv 0 \iff p,p+2 \text{ are both prime. } }[/math]

Characterizations of prime tuples and clusters

The prime pairs of the form [math]\displaystyle{ (p, p+2k) }[/math] for some [math]\displaystyle{ k \geq 1 }[/math] include the special cases of the cousin primes (when [math]\displaystyle{ k=2 }[/math]) and the sexy primes (when [math]\displaystyle{ k=3 }[/math]). We have elementary congruence-based characterizations of the primality of such pairs, proved for instance in the article.[3] Examples of congruences characterizing these prime pairs include

[math]\displaystyle{ 2k (2k)![(p-1)!+1] \equiv [1-(2k)!]p \pmod{p(p+2k)} \iff p,p+2k \text{ are both prime, } }[/math]

and the alternate characterization when [math]\displaystyle{ p }[/math] is odd such that [math]\displaystyle{ p \not{\mid} (2k-1)!!^2 }[/math] given by

[math]\displaystyle{ 2k(2k-1)!!^2 \left(\frac{p-1}{2}\right)!^2 + (-1)^{\frac{p-1}{2}}\left[(2k-1)!!^2(p+2k)-(-4)^k \cdot p\right] \equiv 0 \iff p,p+2k \text{ are both prime. } }[/math]

Still other congruence-based characterizations of the primality of triples, and more general prime clusters (or prime tuples) exist and are typically proved starting from Wilson's theorem (see, for example, Section 3.3 in [4]).

References

  1. Aebi, Christian; Cairns, Grant (May 2015). "Generalizations of Wilson's Theorem for Double-, Hyper-, Sub- and Superfactorials". The American Mathematical Monthly 122 (5): 433–443. doi:10.4169/amer.math.monthly.122.5.433. 
  2. Clement, P. A. (1949). "Congruences for sets of primes". Amer. Math. Monthly 56 (1): 23–25. doi:10.2307/2305816. 
  3. C. Lin and L. Zhipeng (2005). "On Wilson's theorem and Polignac conjecture". Math. Medley 6. Bibcode2004math......8018C. 
  4. Schmidt, M. D. (2017). New Congruences and Finite Difference Equations for Generalized Factorial Functions. Bibcode2017arXiv170104741S.