In number theory, the Fermat quotient of an integer a with respect to an odd prime p is defined as [1] [2] [3] [4]
or
This article is about the former; for the latter see p-derivation. The quotient is named after Pierre de Fermat.
If the base a is coprime to the exponent p then Fermat's little theorem says that qp(a) will be an integer. If the base a is also a generator of the multiplicative group of integers modulo p, then qp(a) will be a cyclic number, and p will be a full reptend prime.
From the definition, it is obvious that
In 1850, Gotthold Eisenstein proved that if a and b are both coprime to p, then: [5]
Eisenstein likened the first two of these congruences to properties of logarithms. These properties imply
In 1895, Dmitry Mirimanoff pointed out that an iteration of Eisenstein's rules gives the corollary: [6]
From this, it follows that: [7]
M. Lerch proved in 1905 that [8] [9] [10]
Here is the Wilson quotient.
Eisenstein discovered that the Fermat quotient with base 2 could be expressed in terms of the sum of the reciprocals modulo p of the numbers lying in the first half of the range {1, ..., p − 1}:
Later writers showed that the number of terms required in such a representation could be reduced from 1/2 to 1/4, 1/5, or even 1/6:
Eisenstein's series also has an increasingly complex connection to the Fermat quotients with other bases, the first few examples being:
If qp(a) ≡ 0 (mod p) then ap−1 ≡ 1 (mod p2). Primes for which this is true for a = 2 are called Wieferich primes. In general they are called Wieferich primes base a. Known solutions of qp(a) ≡ 0 (mod p) for small values of a are: [2]
a | p (checked up to 5 × 1013) | OEIS sequence |
---|---|---|
1 | 2, 3, 5, 7, 11, 13, 17, 19, 23, 29, ... (All primes) | A000040 |
2 | 1093, 3511 | A001220 |
3 | 11, 1006003 | A014127 |
4 | 1093, 3511 | |
5 | 2, 20771, 40487, 53471161, 1645333507, 6692367337, 188748146801 | A123692 |
6 | 66161, 534851, 3152573 | A212583 |
7 | 5, 491531 | A123693 |
8 | 3, 1093, 3511 | |
9 | 2, 11, 1006003 | |
10 | 3, 487, 56598313 | A045616 |
11 | 71 | |
12 | 2693, 123653 | A111027 |
13 | 2, 863, 1747591 | A128667 |
14 | 29, 353, 7596952219 | A234810 |
15 | 29131, 119327070011 | A242741 |
16 | 1093, 3511 | |
17 | 2, 3, 46021, 48947, 478225523351 | A128668 |
18 | 5, 7, 37, 331, 33923, 1284043 | A244260 |
19 | 3, 7, 13, 43, 137, 63061489 | A090968 |
20 | 281, 46457, 9377747, 122959073 | A242982 |
21 | 2 | |
22 | 13, 673, 1595813, 492366587, 9809862296159 | A298951 |
23 | 13, 2481757, 13703077, 15546404183, 2549536629329 | A128669 |
24 | 5, 25633 | |
25 | 2, 20771, 40487, 53471161, 1645333507, 6692367337, 188748146801 | |
26 | 3, 5, 71, 486999673, 6695256707 | |
27 | 11, 1006003 | |
28 | 3, 19, 23 | |
29 | 2 | |
30 | 7, 160541, 94727075783 |
For more information, see [17] [18] [19] and. [20]
The smallest solutions of qp(a) ≡ 0 (mod p) with a = n are:
A pair (p, r) of prime numbers such that qp(r) ≡ 0 (mod p) and qr(p) ≡ 0 (mod r) is called a Wieferich pair.
In mathematics, the Chinese remainder theorem states that if one knows the remainders of the Euclidean division of an integer n by several integers, then one can determine uniquely the remainder of the division of n by the product of these integers, under the condition that the divisors are pairwise coprime.
In number theory, the Legendre symbol is a multiplicative function with values 1, −1, 0 that is a quadratic character modulo of an odd prime number p: its value at a (nonzero) quadratic residue mod p is 1 and at a non-quadratic residue (non-residue) is −1. Its value at zero is 0.
In number theory, the law of quadratic reciprocity is a theorem about modular arithmetic that gives conditions for the solvability of quadratic equations modulo prime numbers. Due to its subtlety, it has many formulations, but the most standard statement is:
In number theory, Fermat's little theorem states that if p is a prime number, then for any integer a, the number ap − a is an integer multiple of p. In the notation of modular arithmetic, this is expressed as
In mathematics, a Fermat number, named after Pierre de Fermat, the first known to have studied them, is a positive integer of the form
This article collects together a variety of proofs of Fermat's little theorem, which states that
In number theory, Euler's criterion is a formula for determining whether an integer is a quadratic residue modulo a prime. Precisely,
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.
In number theory, a Wall–Sun–Sun prime or Fibonacci–Wieferich prime is a certain kind of prime number which is conjectured to exist, although none are known.
In number theory, the Ankeny–Artin–Chowla congruence is a result published in 1953 by N. C. Ankeny, Emil Artin and S. Chowla. It concerns the class number h of a real quadratic field of discriminant d > 0. If the fundamental unit of the field is
The Solovay–Strassen primality test, developed by Robert M. Solovay and Volker Strassen in 1977, is a probabilistic test to determine if a number is composite or probably prime. The idea behind the test was discovered by M. M. Artjuhov in 1967 (see Theorem E in the paper). This test has been largely superseded by the Baillie–PSW primality test and the Miller–Rabin primality test, but has great historical importance in showing the practical feasibility of the RSA cryptosystem. The Solovay–Strassen test is essentially an Euler–Jacobi probable prime test.
In mathematics, Wolstenholme's theorem states that for a prime number , the congruence
In additive number theory, Fermat's theorem on sums of two squares states that an odd prime p can be expressed as:
The Wilson quotientW(p) is defined as:
Gauss's lemma in number theory gives a condition for an integer to be a quadratic residue. Although it is not useful computationally, it has theoretical significance, being involved in some proofs of quadratic reciprocity.
In number theory, a branch of mathematics, a Mirimanoff's congruence is one of a collection of expressions in modular arithmetic which, if they hold, entail the truth of Fermat's Last Theorem. Since the theorem has now been proven, these are now of mainly historical significance, though the Mirimanoff polynomials are interesting in their own right. The theorem is due to Dmitry Mirimanoff.
In number theory, the law of quadratic reciprocity, like the Pythagorean theorem, has lent itself to an unusually large number of proofs. Several hundred proofs of the law of quadratic reciprocity have been published.
Quartic or biquadratic reciprocity is a collection of theorems in elementary and algebraic number theory that state conditions under which the congruence x4 ≡ p is solvable; the word "reciprocity" comes from the form of some of these theorems, in that they relate the solvability of the congruence x4 ≡ p to that of x4 ≡ q.
In number theory, a Wolstenholme prime is a special type of prime number satisfying a stronger version of Wolstenholme's theorem. Wolstenholme's theorem is a congruence relation satisfied by all prime numbers greater than 3. Wolstenholme primes are named after mathematician Joseph Wolstenholme, who first described this theorem in the 19th century.
In algebraic number theory Eisenstein's reciprocity law is a reciprocity law that extends the law of quadratic reciprocity and the cubic reciprocity law to residues of higher powers. It is one of the earliest and simplest of the higher reciprocity laws, and is a consequence of several later and stronger reciprocity laws such as the Artin reciprocity law. It was introduced by Eisenstein, though Jacobi had previously announced a similar result for the special cases of 5th, 8th and 12th powers in 1839.