
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 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 domains,
Euclidean domains, 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 integers. 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, 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.
Proposition 32 is derived from proposition 31, and proves that the decomposition is possible.
(In modern terminology: a
least common multiple 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. 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ī took the final step and stated for the first time the fundamental theorem of arithmetic.
Article 16 of
Gauss's ''
Disquisitiones Arithmeticae'' 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 = 33×37,
:1000 = 23×53,
: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 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 (GCD), and least common multiple (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 and multiplicative functions are determined by their values on the powers of prime numbers.
Proof
The proof uses Euclid's lemma (''Elements'' VII, 30): If a prime divides 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, 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. 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.
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 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 the order and multiplication by units).
Similarly, in 1844 while working on cubic reciprocity, Eisenstein introduced the ring root of unity
In mathematics, a root of unity is any complex number that yields 1 when exponentiation, raised to some positive integer power . Roots of unity are used in many branches of mathematics, and are especially important in number theory, the theory ...
. This is the ring of Eisenstein integers, and he proved it has the six units \pm 1, \pm\omega, \pm\omega^2 and that it has unique factorization.
However, it was also discovered that unique factorization does not always hold. An example is given by \mathbb sqrt/math>. In this ring one has
:
6 =
2 \cdot 3 =
\left(1 + \sqrt\right)\left(1 - \sqrt\right).
Examples like this caused the notion of "prime" to be modified. In \mathbb\left sqrt\right/math> it can be proven that if any of the factors above can be represented as a product, for example, 2 = ''ab'', then one of ''a'' or ''b'' must be a unit. This is the traditional definition of "prime". It can also be proven that none of these factors obeys Euclid's lemma; for example, 2 divides neither (1 + ) nor (1 − ) even though it divides their product 6. In algebraic number theory
Algebraic number theory is a branch of number theory that uses the techniques of abstract algebra to study the integers, rational numbers, and their generalizations. Number-theoretic questions are expressed in terms of properties of algebraic ob ...
2 is called irreducible in \mathbb\left sqrt\right/math> (only divisible by itself or a unit) but not prime in \mathbb\left sqrt\right/math> (if it divides a product it must divide one of the factors). The mention of \mathbb\left sqrt\right/math> is required because 2 is prime and irreducible in \mathbb. Using these definitions it can be proven that in any integral domain
In mathematics, an integral domain is a nonzero commutative ring in which the product of any two nonzero elements is nonzero. Integral domains are generalizations of the ring of integers and provide a natural setting for studying divisibilit ...
a prime must be irreducible. Euclid's classical lemma can be rephrased as "in the ring of integers \mathbb every irreducible is prime". This is also true in \mathbb /math> and \mathbb omega but not in \mathbb sqrt
The rings in which factorization into irreducibles is essentially unique 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. Important examples are 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 the integers or over a field, Euclidean domains and principal ideal domains.
In 1843 Kummer introduced the concept of ideal number, which was developed further by Dedekind (1876) into the modern theory of ideals, special subsets of rings. Multiplication is defined for ideals, and the rings in which they have unique factorization are called Dedekind domains.
There is a version of unique factorization for ordinals, though it requires some additional conditions to ensure uniqueness.
Any commutative Möbius monoid satisfies a unique factorization theorem and thus possesses arithmetical properties similar to those of the multiplicative semigroup of positive integers. Fundamental Theorem of Arithmetic is, in fact, a special case of the unique factorization theorem in commutative Möbius monoids.
See also
*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 ...
* List of theorems called fundamental
* Prime signature, a characterization of how many primes divide a given number
Notes
Citations
References
The '' Disquisitiones Arithmeticae'' has been translated from 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.
*
*
The two monographs Gauss published on biquadratic reciprocity have consecutively numbered sections: the first contains §§ 1–23 and the second §§ 24–76. Footnotes referencing these are of the form "Gauss, BQ, § ''n''". Footnotes referencing the ''Disquisitiones Arithmeticae'' are of the form "Gauss, DA, Art. ''n''".
*
*
These are in Gauss's ''Werke'', Vol II, pp. 65–92 and 93–148; German translations are pp. 511–533 and 534–586 of the German edition of the ''Disquisitiones''.
*
*
* .
* .
*
*
External links
Why isn’t the fundamental theorem of arithmetic obvious?
GCD and the Fundamental Theorem of Arithmetic
at cut-the-knot.
PlanetMath: Proof of fundamental theorem of arithmetic
a blog that covers the history 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 ...
from Diophantus of Alexandria to the proof by Andrew Wiles.
"Fundamental Theorem of Arithmetic"
by Hector Zenil, Wolfram Demonstrations Project, 2007.
*
Fundamental Theorem of Arithmetic
{{Divisor classes
Theorems about prime numbers
Articles containing proofs
Uniqueness theorems
factorization
de:Primfaktorzerlegung#Fundamentalsatz der Arithmetik