In
number theory
Number theory is a branch of pure mathematics devoted primarily to the study of the integers and arithmetic functions. Number theorists study prime numbers as well as the properties of mathematical objects constructed from integers (for example ...
, Euler's theorem (also known as the Fermat–Euler theorem or Euler's totient theorem) states that, if and are
coprime
In number theory, two integers and are coprime, relatively prime or mutually prime if the only positive integer that is a divisor of both of them is 1. Consequently, any prime number that divides does not divide , and vice versa. This is equiv ...
positive integers, then
is congruent to
modulo
In computing and mathematics, the modulo operation returns the remainder or signed remainder of a division, after one number is divided by another, the latter being called the '' modulus'' of the operation.
Given two positive numbers and , mo ...
, where
denotes
Euler's totient function
In number theory, Euler's totient function counts the positive integers up to a given integer that are relatively prime to . It is written using the Greek letter phi as \varphi(n) or \phi(n), and may also be called Euler's phi function. In ot ...
; that is
:
In 1736,
Leonhard Euler
Leonhard Euler ( ; ; ; 15 April 170718 September 1783) was a Swiss polymath who was active as a mathematician, physicist, astronomer, logician, geographer, and engineer. He founded the studies of graph theory and topology and made influential ...
published a proof of
Fermat's little theorem (stated by
Fermat
Pierre de Fermat (; ; 17 August 1601 – 12 January 1665) was a French mathematician who is given credit for early developments that led to infinitesimal calculus, including his technique of adequality. In particular, he is recognized for his d ...
without proof), which is the restriction of Euler's theorem to the case where is a prime number. Subsequently, Euler presented other proofs of the theorem, culminating with his paper of 1763, in which he proved a generalization to the case where is not prime.
The converse of Euler's theorem is also true: if the above congruence is true, then
and
must be coprime.
The theorem is further generalized by some of
Carmichael's theorems.
The theorem may be used to easily reduce large powers modulo
. For example, consider finding the ones place decimal digit of
, i.e.
. The integers 7 and 10 are coprime, and
. So Euler's theorem yields
, and we get
.
In general, when reducing a power of
modulo
(where
and
are coprime), one needs to work modulo
in the exponent of
:
:if
, then
.
Euler's theorem underlies the
RSA cryptosystem, which is widely used in
Internet
The Internet (or internet) is the Global network, global system of interconnected computer networks that uses the Internet protocol suite (TCP/IP) to communicate between networks and devices. It is a internetworking, network of networks ...
communications. In this cryptosystem, Euler's theorem is used with being a product of two large
prime number
A prime number (or a prime) is a natural number greater than 1 that is not a Product (mathematics), product of two smaller natural numbers. A natural number greater than 1 that is not prime is called a composite number. For example, 5 is prime ...
s, and the security of the system is based on the difficulty of
factoring such an integer.
Proofs
1. Euler's theorem can be proven using concepts from the
theory of groups:
The residue classes modulo that are coprime to form a group under multiplication (see the article
Multiplicative group of integers modulo ''n'' for details). The
order of that group is .
Lagrange's theorem states that the order of any subgroup of a
finite group
In abstract algebra, a finite group is a group whose underlying set is finite. Finite groups often arise when considering symmetry of mathematical or physical objects, when those objects admit just a finite number of structure-preserving tra ...
divides the order of the entire group, in this case . If is any number
coprime
In number theory, two integers and are coprime, relatively prime or mutually prime if the only positive integer that is a divisor of both of them is 1. Consequently, any prime number that divides does not divide , and vice versa. This is equiv ...
to then is in one of these residue classes, and its powers modulo form a subgroup of the group of residue classes, with . Lagrange's theorem says must divide , i.e. there is an integer such that . This then implies,
:
2. There is also a direct proof: Let be a
reduced residue system () and let be any integer coprime to . The proof hinges on the fundamental fact that multiplication by permutes the : in other words if then . (This law of cancellation is proved in the article
Multiplicative group of integers modulo ''n''.
[See Bézout's lemma]) That is, the sets and , considered as sets of congruence classes (), are identical (as sets—they may be listed in different orders), so the product of all the numbers in is congruent () to the product of all the numbers in :
:
and using the cancellation law to cancel each gives Euler's theorem:
:
See also
*
Carmichael number
*
Euler's criterion
*
Wilson's theorem
In algebra and number theory, Wilson's theorem states that a natural number ''n'' > 1 is a prime number if and only if the product of all the positive integers less than ''n'' is one less than a multiple of ''n''. That is (using the notations of ...
Notes
References
The ''
Disquisitiones Arithmeticae'' has been translated from Gauss's Ciceronian Latin into English and German. The German edition includes all of his papers on number theory: all the proofs of quadratic reciprocity, the determination of the sign of the Gauss sum, the investigations into biquadratic reciprocity, and unpublished notes.
*
*
*
*
*
External links
*
Euler-Fermat Theorema
PlanetMath
{{Portal bar, Mathematics
Modular arithmetic
Theorems in number theory
Articles containing proofs
Leonhard Euler