Wieferich prime

In number theory, a Wieferich prime is a prime number p such that p2 divides 2p − 1 − 1, therefore connecting these primes with Fermat's little theorem, which states that every odd prime p divides 2p − 1 − 1. Wieferich primes were first described by Arthur Wieferich in 1909 in works pertaining to Fermat's Last Theorem, at which time both of Fermat's theorems were already well known to mathematicians.

Wieferich prime
Named afterArthur Wieferich
Publication year1909
Author of publicationWieferich, A.
No. of known terms2
Conjectured no. of termsInfinite
Subsequence of
First terms1093, 3511
Largest known term3511
OEIS indexA001220

Since then, connections between Wieferich primes and various other topics in mathematics have been discovered, including other types of numbers and primes, such as Mersenne and Fermat numbers, specific types of pseudoprimes and some types of numbers generalized from the original definition of a Wieferich prime. Over time, those connections discovered have extended to cover more properties of certain prime numbers as well as more general subjects such as number fields and the abc conjecture.

As of 2024, the only known Wieferich primes are 1093 and 3511 (sequence A001220 in the OEIS).

History and search status

Unsolved problem in mathematics
Are there infinitely many Wieferich primes?
More unsolved problems in mathematics

In 1902, Meyer proved a theorem about solutions of the congruence ap − 1 ≡ 1 (mod pr).: 930  Later in that decade Arthur Wieferich showed specifically that if the first case of Fermat's last theorem has solutions for an odd prime exponent, then that prime must satisfy that congruence for a = 2 and r = 2. In other words, if there exist solutions to xp + yp + zp = 0 in integers x, y, z and p an odd prime with pxyz, then p satisfies 2p − 1 ≡ 1 (mod p2). In 1913, Bachmann examined the residues of . He asked the question when this residue vanishes and tried to find expressions for answering this question.

The prime 1093 was found to be a Wieferich prime by W. Meissner [cs] in 1913 and confirmed to be the only such prime below 2000. He calculated the smallest residue of for all primes p < 2000 and found this residue to be zero for t = 364 and p = 1093, thereby providing a counterexample to a conjecture by Grave about the impossibility of the Wieferich congruence. E. Haentzschel [de] later ordered verification of the correctness of Meissner's congruence via only elementary calculations.: 664  Inspired by an earlier work of Euler, he simplified Meissner's proof by showing that 10932 | (2182 + 1) and remarked that (2182 + 1) is a factor of (2364 − 1). It was also shown that it is possible to prove that 1093 is a Wieferich prime without using complex numbers contrary to the method used by Meissner, although Meissner himself hinted at that he was aware of a proof without complex values.: 665 

The prime 3511 was first found to be a Wieferich prime by N. G. W. H. Beeger in 1922 and another proof of it being a Wieferich prime was published in 1965 by Guy. In 1960, Kravitz doubled a previous record set by Fröberg [sv] and in 1961 Riesel extended the search to 500000 with the aid of BESK. Around 1980, Lehmer was able to reach the search limit of 6×109. This limit was extended to over 2.5×1015 in 2006, finally reaching 3×1015. Eventually, it was shown that if any other Wieferich primes exist, they must be greater than 6.7×1015.

In 2007–2016, a search for Wieferich primes was performed by the distributed computing project Wieferich@Home. In 2011–2017, another search was performed by the PrimeGrid project, although later the work done in this project was claimed wasted. While these projects reached search bounds above 1×1017, neither of them reported any sustainable results.

In 2020, PrimeGrid started another project that searched for Wieferich and Wall–Sun–Sun primes simultaneously. The new project used checksums to enable independent double-checking of each subinterval, thus minimizing the risk of missing an instance because of faulty hardware. The project ended in December 2022, definitely proving that a third Wieferich prime must exceed 264 (about 18×1018).

It has been conjectured (as for Wilson primes) that infinitely many Wieferich primes exist, and that the number of Wieferich primes below x is approximately log(log(x)), which is a heuristic result that follows from the plausible assumption that for a prime p, the (p − 1)-th degree roots of unity modulo p2 are uniformly distributed in the multiplicative group of integers modulo p2.

Properties

Connection with Fermat's Last Theorem

The following theorem connecting Wieferich primes and Fermat's Last Theorem was proven by Wieferich in 1909:

Let p be prime, and let x, y, z be integers such that xp + yp + zp = 0. Furthermore, assume that p does not divide the product xyz. Then p is a Wieferich prime.

The above case (where p does not divide any of x, y or z) is commonly known as the first case of Fermat's Last Theorem (FLTI) and FLTI is said to fail for a prime p, if solutions to the Fermat equation exist for that p, otherwise FLTI holds for p. In 1910, Mirimanoff expanded the theorem by showing that, if the preconditions of the theorem hold true for some prime p, then p2 must also divide 3p − 1 − 1. Granville and Monagan further proved that p2 must actually divide mp − 1 − 1 for every prime m ≤ 89. Suzuki extended the proof to all primes m ≤ 113.

Let Hp be a set of pairs of integers with 1 as their greatest common divisor, p being prime to x, y and x + y, (x + y)p−1 ≡ 1 (mod p2), (x + ξy) being the pth power of an ideal of K with ξ defined as cos 2π/p + i sin 2π/p. K = Q(ξ) is the field extension obtained by adjoining all polynomials in the algebraic number ξ to the field of rational numbers (such an extension is known as a number field or in this particular case, where ξ is a root of unity, a cyclotomic number field).: 332  From uniqueness of factorization of ideals in Q(ξ) it follows that if the first case of Fermat's last theorem has solutions x, y, z then p divides x+y+z and (x, y), (y, z) and (z, x) are elements of Hp.: 333  Granville and Monagan showed that (1, 1) ∈ Hp if and only if p is a Wieferich prime.: 333 

Connection with the abc conjecture and non-Wieferich primes

A non-Wieferich prime is a prime p satisfying 2p − 1 ≢ 1 (mod p2). J. H. Silverman showed in 1988 that if the abc conjecture holds, then there exist infinitely many non-Wieferich primes. More precisely he showed that the abc conjecture implies the existence of a constant only depending on α such that the number of non-Wieferich primes to base α with p less than or equal to a variable X is greater than log(X) as X goes to infinity.: 227  Numerical evidence suggests that very few of the prime numbers in a given interval are Wieferich primes. The set of Wieferich primes and the set of non-Wieferich primes, sometimes denoted by W2 and W2c respectively, are complementary sets, so if one of them is shown to be finite, the other one would necessarily have to be infinite. It was later shown that the existence of infinitely many non-Wieferich primes already follows from a weaker version of the abc conjecture, called the ABC-(k, ε) conjecture. Additionally, the existence of infinitely many non-Wieferich primes would also follow if there exist infinitely many square-free Mersenne numbers as well as if there exists a real number ξ such that the set {nN : λ(2n − 1) < 2 − ξ} is of density one, where the index of composition λ(n) of an integer n is defined as and , meaning gives the product of all prime factors of n.: 4 

Connection with Mersenne and Fermat primes

It is known that the nth Mersenne number Mn = 2n − 1 is prime only if n is prime. Fermat's little theorem implies that if p > 2 is prime, then Mp−1 (= 2p − 1 − 1) is always divisible by p. Since Mersenne numbers of prime indices Mp and Mq are co-prime,

A prime divisor p of Mq, where q is prime, is a Wieferich prime if and only if p2 divides Mq.

Thus, a Mersenne prime cannot also be a Wieferich prime. A notable open problem is to determine whether or not all Mersenne numbers of prime index are square-free. If q is prime and the Mersenne number Mq is not square-free, that is, there exists a prime p for which p2 divides Mq, then p is a Wieferich prime. Therefore, if there are only finitely many Wieferich primes, then there will be at most finitely many Mersenne numbers with prime index that are not square-free. Rotkiewicz showed a related result: if there are infinitely many square-free Mersenne numbers, then there are infinitely many non-Wieferich primes.

Similarly, if p is prime and p2 divides some Fermat number Fn = 22n + 1, then p must be a Wieferich prime.

For the primes 1093 and 3511, it was shown that neither of them is a divisor of any Mersenne number with prime index nor a divisor of any Fermat number, because 364 and 1755 are neither prime nor powers of 2.

Connection with other equations

Scott and Styer showed that the equation px − 2y = d has at most one solution in positive integers (x, y), unless when p4 | 2ordp 2 − 1 if p ≢ 65 (mod 192) or unconditionally when p2 | 2ordp 2 − 1, where ordp 2 denotes the multiplicative order of 2 modulo p.: 215, 217–218  They also showed that a solution to the equation ±ax1 ± 2y1 = ±ax2 ± 2y2 = c must be from a specific set of equations but that this does not hold, if a is a Wieferich prime greater than 1.25 × 1015.: 258 

Binary periodicity of p − 1

Johnson observed that the two known Wieferich primes are one greater than numbers with periodic binary expansions (1092 = 0100010001002=44416; 3510 = 1101101101102=66668). The Wieferich@Home project searched for Wieferich primes by testing numbers that are one greater than a number with a periodic binary expansion, but up to a "bit pseudo-length" of 3500 of the tested binary numbers generated by combination of bit strings with a bit length of up to 24 it has not found a new Wieferich prime.

Abundancy of p − 1

The known Wieferich primes are one greater than mutually friendly numbers (the shared abundancy index being 112/39).

Connection with pseudoprimes

It was observed that the two known Wieferich primes are the square factors of all non-square free base-2 Fermat pseudoprimes up to 25×109. Later computations showed that the only repeated factors of the pseudoprimes up to 1012 are 1093 and 3511. In addition, the following connection exists:

Let n be a base 2 pseudoprime and p be a prime divisor of n. If , then also .: 378  Furthermore, if p is a Wieferich prime, then p2 is a Catalan pseudoprime.

Connection with directed graphs

For all primes p up to 100000, L(pn+1) = L(pn) only in two cases: L(10932) = L(1093) = 364 and L(35112) = L(3511) = 1755, where L(m) is the number of vertices in the cycle of 1 in the doubling diagram modulo m. Here the doubling diagram represents the directed graph with the non-negative integers less than m as vertices and with directed edges going from each vertex x to vertex 2x reduced modulo m.: 74  It was shown, that for all odd prime numbers either L(pn+1) = p · L(pn) or L(pn+1) = L(pn).: 75 

It was shown that and if and only if 2p − 1 ≢ 1 (mod p2) where p is an odd prime and is the fundamental discriminant of the imaginary quadratic field . Furthermore, the following was shown: Let p be a Wieferich prime. If p ≡ 3 (mod 4), let be the fundamental discriminant of the imaginary quadratic field and if p ≡ 1 (mod 4), let be the fundamental discriminant of the imaginary quadratic field . Then and (χ and λ in this context denote Iwasawa invariants).: 27 

Furthermore, the following result was obtained: Let q be an odd prime number, k and p are primes such that p = 2k + 1, k ≡ 3 (mod 4), p ≡ −1 (mod q), p ≢ −1 (mod q3) and the order of q modulo k is . Assume that q divides h+, the class number of the real cyclotomic field , the cyclotomic field obtained by adjoining the sum of a p-th root of unity and its reciprocal to the field of rational numbers. Then q is a Wieferich prime.: 55  This also holds if the conditions p ≡ −1 (mod q) and p ≢ −1 (mod q3) are replaced by p ≡ −3 (mod q) and p ≢ −3 (mod q3) as well as when the condition p ≡ −1 (mod q) is replaced by p ≡ −5 (mod q) (in which case q is a Wall–Sun–Sun prime) and the incongruence condition replaced by p ≢ −5 (mod q3).: 376 

Generalizations

Near-Wieferich primes

A prime p satisfying the congruence 2(p−1)/2 ≡ ±1 + Ap (mod p2) with small |A| is commonly called a near-Wieferich prime (sequence A195988 in the OEIS). Near-Wieferich primes with A = 0 represent Wieferich primes. Recent searches, in addition to their primary search for Wieferich primes, also tried to find near-Wieferich primes.

Wieferich pairs

A Wieferich pair is a pair of primes p and q that satisfy

pq − 1 ≡ 1 (mod q2) and qp − 1 ≡ 1 (mod p2)

so that a Wieferich prime p ≡ 1 (mod 4) will form such a pair (p, 2): the only known instance in this case is p = 1093. There are only 7 known Wieferich pairs.

(2, 1093), (3, 1006003), (5, 1645333507), (5, 188748146801), (83, 4871), (911, 318917), and (2903, 18787) (sequence OEISA282293 in OEIS)

Wieferich numbers

A Wieferich number is an odd natural number n satisfying the congruence 2φ(n) ≡ 1 (mod n2), where φ denotes the Euler's totient function (according to Euler's theorem, 2φ(n) ≡ 1 (mod n) for every odd natural number n). If Wieferich number n is prime, then it is a Wieferich prime. The first few Wieferich numbers are:

1, 1093, 3279, 3511, 7651, 10533, 14209, 17555, 22953, 31599, 42627, 45643, 52665, 68859, 94797, 99463, ... (sequence A077816 in the OEIS)

It can be shown that if there are only finitely many Wieferich primes, then there are only finitely many Wieferich numbers. In particular, if the only Wieferich primes are 1093 and 3511, then there exist exactly 104 Wieferich numbers, which matches the number of Wieferich numbers currently known.

More generally, a natural number n is a Wieferich number to base a, if aφ(n) ≡ 1 (mod n2).: 31 

Another definition specifies a Wieferich number as odd natural number n such that n and are not coprime, where m is the multiplicative order of 2 modulo n. The first of these numbers are:

21, 39, 55, 57, 105, 111, 147, 155, 165, 171, 183, 195, 201, 203, 205, 219, 231, 237, 253, 273, 285, 291, 301, 305, 309, 327, 333, 355, 357, 385, 399, ... (sequence A182297 in the OEIS)

As above, if Wieferich number q is prime, then it is a Wieferich prime.

Wieferich places

Let K be a global field, i.e. a number field or a function field in one variable over a finite field and let E be an elliptic curve. If v is a non-archimedean place of norm qv of K and a ∈ K, with v(a) = 0 then v(aqv − 1 − 1) ≥ 1. v is called a Wieferich place for base a, if v(aqv − 1 − 1) > 1, an elliptic Wieferich place for base PE, if NvPE2 and a strong elliptic Wieferich place for base PE if nvPE2, where nv is the order of P modulo v and Nv gives the number of rational points (over the residue field of v) of the reduction of E at v.: 206 

See also

  • Wall–Sun–Sun prime – another type of prime number which in the broadest sense also resulted from the study of FLT
  • Wolstenholme prime – another type of prime number which in the broadest sense also resulted from the study of FLT
  • Wilson prime
  • Table of congruences – lists other congruences satisfied by prime numbers
  • PrimeGrid – primes search project
  • BOINC
  • Distributed computing

Further reading

  • Haussner, R. (1926), "Über die Kongruenzen 2p−1 − 1 ≡ 0 (mod p2) für die Primzahlen p=1093 und 3511", Archiv for Mathematik og Naturvidenskab (in German), 39 (5): 7, JFM 52.0141.06, DNB 363953469
  • Haussner, R. (1927), "Über numerische Lösungen der Kongruenz up−1 − 1 ≡ 0 (mod p2)", Journal für die Reine und Angewandte Mathematik (in German), 1927 (156): 223–226, doi:10.1515/crll.1927.156.223, S2CID 117969297
  • Ribenboim, P. (1979), Thirteen lectures on Fermat's Last Theorem, Springer-Verlag, pp. 139, 151, ISBN 978-0-387-90432-0
  • Guy, Richard K. (2004), Unsolved Problems in Number Theory (3rd ed.), Springer Verlag, p. 14, ISBN 978-0-387-20860-2
  • Crandall, R. E.; Pomerance, C. (2005), Prime numbers: a computational perspective (PDF), Springer Science+Business Media, pp. 31–32, ISBN 978-0-387-25282-7
  • Ribenboim, P. (1996), The new book of prime number records, New York: Springer-Verlag, pp. 333–346, ISBN 978-0-387-94457-9

wikipedia, wiki, encyclopedia, book, library, article, read, free download, Information about Wieferich prime, What is Wieferich prime? What does Wieferich prime mean?