
In
mathematics
Mathematics is a field of study that discovers and organizes methods, Mathematical theory, theories and theorems that are developed and Mathematical proof, proved for the needs of empirical sciences and mathematics itself. There are many ar ...
, the fundamental theorem of arithmetic, also called the unique factorization theorem and prime factorization theorem, states that every
integer
An integer is the number zero (0), a positive natural number (1, 2, 3, ...), or the negation of a positive natural number (−1, −2, −3, ...). The negations or additive inverses of the positive natural numbers are referred to as negative in ...
greater than 1 is prime or can be represented uniquely as a product of
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,
up to Two Mathematical object, mathematical objects and are called "equal up to an equivalence relation "
* if and are related by , that is,
* if holds, that is,
* if the equivalence classes of and with respect to are equal.
This figure of speech ...
the order of the factors. For example,
:
The theorem says two things about this example: first, that 1200 be represented as a product of primes, and second, that no matter how this is done, there will always be exactly four 2s, one 3, two 5s, and no other primes in the product.
The requirement that the factors be prime is necessary: factorizations containing
composite number
A composite number is a positive integer that can be formed by multiplying two smaller positive integers. Accordingly it is a positive integer that has at least one divisor other than 1 and itself. Every positive integer is composite, prime numb ...
s may not be unique
(for example,
).
This theorem is one of the main
reasons why 1 is not considered a prime number: if 1 were prime, then factorization into primes would not be unique; for example,
The theorem generalizes to other
algebraic structure
In mathematics, an algebraic structure or algebraic system consists of a nonempty set ''A'' (called the underlying set, carrier set or domain), a collection of operations on ''A'' (typically binary operations such as addition and multiplicatio ...
s that are called
unique factorization domain
In mathematics, a unique factorization domain (UFD) (also sometimes called a factorial ring following the terminology of Bourbaki) is a ring in which a statement analogous to the fundamental theorem of arithmetic holds. Specifically, a UFD is ...
s and include
principal ideal domain
In mathematics, a principal ideal domain, or PID, is an integral domain (that is, a non-zero commutative ring without nonzero zero divisors) in which every ideal is principal (that is, is formed by the multiples of a single element). Some author ...
s,
Euclidean domain
In mathematics, more specifically in ring theory, a Euclidean domain (also called a Euclidean ring) is an integral domain that can be endowed with a Euclidean function which allows a suitable generalization of Euclidean division of integers. Th ...
s, and
polynomial ring
In mathematics, especially in the field of algebra, a polynomial ring or polynomial algebra is a ring formed from the set of polynomials in one or more indeterminates (traditionally also called variables) with coefficients in another ring, ...
s over a
field. However, the theorem does not hold for
algebraic integer
In algebraic number theory, an algebraic integer is a complex number that is integral over the integers. That is, an algebraic integer is a complex root of some monic polynomial (a polynomial whose leading coefficient is 1) whose coefficients ...
s. This failure of unique factorization is one of the reasons for the difficulty of the proof of
Fermat's Last Theorem
In number theory, Fermat's Last Theorem (sometimes called Fermat's conjecture, especially in older texts) states that no three positive number, positive integers , , and satisfy the equation for any integer value of greater than . The cases ...
. The implicit use of unique factorization in rings of algebraic integers is behind the error of many of the numerous false proofs that have been written during the 358 years between
Fermat's statement and
Wiles's proof.
History
The fundamental theorem can be derived from Book VII, propositions 30, 31 and 32, and Book IX, proposition 14 of
Euclid
Euclid (; ; BC) was an ancient Greek mathematician active as a geometer and logician. Considered the "father of geometry", he is chiefly known for the '' Elements'' treatise, which established the foundations of geometry that largely domina ...
's ''
Elements''.
(In modern terminology: if a prime ''p'' divides the product ''ab'', then ''p'' divides either ''a'' or ''b'' or both.) Proposition 30 is referred to as
Euclid's lemma
In algebra and number theory, Euclid's lemma is a lemma that captures a fundamental property of prime numbers:
For example, if , , , then , and since this is divisible by 19, the lemma implies that one or both of 133 or 143 must be as well. In ...
, and it is the key in the proof of the fundamental theorem of arithmetic.
(In modern terminology: every integer greater than one is divided evenly by some prime number.) Proposition 31 is proved directly by
infinite descent
In mathematics, a proof by infinite descent, also known as Fermat's method of descent, is a particular kind of proof by contradiction used to show that a statement cannot possibly hold for any number, by showing that if the statement were to hold f ...
.
Proposition 32 is derived from proposition 31, and proves that the decomposition is possible.
(In modern terminology: a
least common multiple
In arithmetic and number theory, the least common multiple (LCM), lowest common multiple, or smallest common multiple (SCM) of two integers ''a'' and ''b'', usually denoted by , is the smallest positive integer that is divisible by both ''a'' and ...
of several prime numbers is not a multiple of any other prime number.) Book IX, proposition 14 is derived from Book VII, proposition 30, and proves partially that the decomposition is unique – a point critically noted by
André Weil
André Weil (; ; 6 May 1906 – 6 August 1998) was a French mathematician, known for his foundational work in number theory and algebraic geometry. He was one of the most influential mathematicians of the twentieth century. His influence is du ...
. Indeed, in this proposition the exponents are all equal to one, so nothing is said for the general case.
While
Euclid
Euclid (; ; BC) was an ancient Greek mathematician active as a geometer and logician. Considered the "father of geometry", he is chiefly known for the '' Elements'' treatise, which established the foundations of geometry that largely domina ...
took the first step on the way to the existence of prime factorization,
Kamāl al-Dīn al-Fārisī
Kamal al-Din Hasan ibn Ali ibn Hasan al-Farisi or Abu Hasan Muhammad ibn Hasan (1267– 12 January 1319, long assumed to be 1320)) () was a Persian Muslim scientist. He made two major contributions to science, one on optics, the other on numbe ...
took the final step and stated for the first time the fundamental theorem of arithmetic.
Article 16 of
Gauss
Johann Carl Friedrich Gauss (; ; ; 30 April 177723 February 1855) was a German mathematician, astronomer, Geodesy, geodesist, and physicist, who contributed to many fields in mathematics and science. He was director of the Göttingen Observat ...
's ''
Disquisitiones Arithmeticae
(Latin for ''Arithmetical Investigations'') is a textbook on number theory written in Latin by Carl Friedrich Gauss in 1798, when Gauss was 21, and published in 1801, when he was 24. It had a revolutionary impact on number theory by making the f ...
'' seems to be the first proof of the uniqueness part of the theorem.
Applications
Canonical representation of a positive integer
Every positive integer can be represented in exactly one way as a product of prime powers
:
where are primes and the are positive integers. This representation is commonly extended to all positive integers, including 1, by the convention that the
empty product
In mathematics, an empty product, or nullary product or vacuous product, is the result of multiplication, multiplying no factors. It is by convention equal to the multiplicative identity (assuming there is an identity for the multiplication operat ...
is equal to 1 (the empty product corresponds to ).
This representation is called the canonical representation of , or the standard form of ''n''. For example,
:999 = 3
3×37,
:1000 = 2
3×5
3,
:1001 = 7×11×13.
Factors may be inserted without changing the value of (for example, ). In fact, any positive integer can be uniquely represented as an
infinite product
In mathematics, for a sequence of complex numbers ''a''1, ''a''2, ''a''3, ... the infinite product
:
\prod_^ a_n = a_1 a_2 a_3 \cdots
is defined to be the limit of the partial products ''a''1''a''2...''a'n'' as ''n'' increases without bound ...
taken over all the positive prime numbers, as
:
where a finite number of the are positive integers, and the others are zero.
Allowing negative exponents provides a canonical form for positive
rational number
In mathematics, a rational number is a number that can be expressed as the quotient or fraction of two integers, a numerator and a non-zero denominator . For example, is a rational number, as is every integer (for example,
The set of all ...
s.
Arithmetic operations
The canonical representations of the product,
greatest common divisor
In mathematics, the greatest common divisor (GCD), also known as greatest common factor (GCF), of two or more integers, which are not all zero, is the largest positive integer that divides each of the integers. For two integers , , the greatest co ...
(GCD), and
least common multiple
In arithmetic and number theory, the least common multiple (LCM), lowest common multiple, or smallest common multiple (SCM) of two integers ''a'' and ''b'', usually denoted by , is the smallest positive integer that is divisible by both ''a'' and ...
(LCM) of two numbers ''a'' and ''b'' can be expressed simply in terms of the canonical representations of ''a'' and ''b'' themselves:
:
However,
integer factorization
In mathematics, integer factorization is the decomposition of a positive integer into a product of integers. Every positive integer greater than 1 is either the product of two or more integer factors greater than 1, in which case it is a comp ...
, especially of large numbers, is much more difficult than computing products, GCDs, or LCMs. So these formulas have limited use in practice.
Arithmetic functions
Many arithmetic functions are defined using the canonical representation. In particular, the values of
additive
Additive may refer to:
Mathematics
* Additive function, a function in number theory
* Additive map, a function that preserves the addition operation
* Additive set-function see Sigma additivity
* Additive category, a preadditive category with fin ...
and
multiplicative functions are determined by their values on the powers of prime numbers.
Proof
The proof uses
Euclid's lemma
In algebra and number theory, Euclid's lemma is a lemma that captures a fundamental property of prime numbers:
For example, if , , , then , and since this is divisible by 19, the lemma implies that one or both of 133 or 143 must be as well. In ...
(''Elements'' VII, 30): If a prime
divides
In mathematics, a divisor of an integer n, also called a factor of n, is an integer m that may be multiplied by some integer to produce n. In this case, one also says that n is a '' multiple'' of m. An integer n is divisible or evenly divisibl ...
the product of two integers, then it must divide at least one of these integers.
Existence
It must be shown that every integer greater than is either prime or a product of primes. First, is prime. Then, by
strong induction
Mathematical induction is a method for proving that a statement P(n) is true for every natural number n, that is, that the infinitely many cases P(0), P(1), P(2), P(3), \dots all hold. This is done by first proving a simple case, then ...
, assume this is true for all numbers greater than and less than . If is prime, there is nothing more to prove. Otherwise, there are integers and , where , and . By the induction hypothesis, and are products of primes. But then is a product of primes.
Uniqueness
Suppose, to the contrary, there is an integer that has two distinct prime factorizations. Let be the least such integer and write , where each and is prime. We see that divides , so divides some by
Euclid's lemma
In algebra and number theory, Euclid's lemma is a lemma that captures a fundamental property of prime numbers:
For example, if , , , then , and since this is divisible by 19, the lemma implies that one or both of 133 or 143 must be as well. In ...
. Without loss of generality, say divides . Since and are both prime, it follows that . Returning to our factorizations of , we may cancel these two factors to conclude that . We now have two distinct prime factorizations of some integer strictly smaller than , which contradicts the minimality of .
Uniqueness without Euclid's lemma
The fundamental theorem of arithmetic can also be proved without using Euclid's lemma. The proof that follows is inspired by Euclid's original version of the
Euclidean algorithm
In mathematics, the Euclidean algorithm,Some widely used textbooks, such as I. N. Herstein's ''Topics in Algebra'' and Serge Lang's ''Algebra'', use the term "Euclidean algorithm" to refer to Euclidean division or Euclid's algorithm, is a ...
.
Assume that
is the smallest positive integer which is the product of prime numbers in two different ways. Incidentally, this implies that
, if it exists, must be a
composite number
A composite number is a positive integer that can be formed by multiplying two smaller positive integers. Accordingly it is a positive integer that has at least one divisor other than 1 and itself. Every positive integer is composite, prime numb ...
greater than
. Now, say
:
Every
must be distinct from every
Otherwise, if say
then there would exist some positive integer
that is smaller than and has two distinct prime factorizations. One may also suppose that
by exchanging the two factorizations, if needed.
Setting
and
one has
Also, since
one has
It then follows that
:
As the positive integers less than have been supposed to have a unique prime factorization,
must occur in the factorization of either
or . The latter case is impossible, as , being smaller than , must have a unique prime factorization, and
differs from every
The former case is also impossible, as, if
is a divisor of
it must be also a divisor of
which is impossible as
and
are distinct primes.
Therefore, there cannot exist a smallest integer with more than a single distinct prime factorization. Every positive integer must either be a prime number itself, which would factor uniquely, or a composite that also factors uniquely into primes, or in the case of the integer
, not factor into any prime.
Generalizations
The first generalization of the theorem is found in Gauss's second monograph (1832) on
biquadratic reciprocity. This paper introduced what is now called the
ring
(The) Ring(s) may refer to:
* Ring (jewellery), a round band, usually made of metal, worn as ornamental jewelry
* To make a sound with a bell, and the sound made by a bell
Arts, entertainment, and media Film and TV
* ''The Ring'' (franchise), a ...
of
Gaussian integer
In number theory, a Gaussian integer is a complex number whose real and imaginary parts are both integers. The Gaussian integers, with ordinary addition and multiplication of complex numbers, form an integral domain, usually written as \mathbf ...
s, the set of all
complex number
In mathematics, a complex number is an element of a number system that extends the real numbers with a specific element denoted , called the imaginary unit and satisfying the equation i^= -1; every complex number can be expressed in the for ...
s ''a'' + ''bi'' where ''a'' and ''b'' are integers. It is now denoted by
He showed that this ring has the four units ±1 and ±''i'', that the non-zero, non-unit numbers fall into two classes, primes and composites, and that (except for order), the composites have unique factorization as a product of primes (
up to Two Mathematical object, mathematical objects and are called "equal up to an equivalence relation "
* if and are related by , that is,
* if holds, that is,
* if the equivalence classes of and with respect to are equal.
This figure of speech ...
the order and multiplication by units).
Similarly, in 1844 while working on
cubic reciprocity
Cubic reciprocity is a collection of theorems in elementary and algebraic number theory that state conditions under which the congruence ''x''3 ≡ ''p'' (mod ''q'') is solvable; the word "reciprocity" comes from the form of ...
,
Eisenstein introduced the ring