Fundamental theorem of arithmetic: Difference between revisions
imported>Anita5192 m →Uniqueness: Replaced deleted space. |
imported>Anita5192 Undid revision 1320973481 by Klauscougar (talk)Reverted good faith edit. This is redundant and does not improve readability of the article. |
||
| (One intermediate revision by one other user not shown) | |||
| Line 2: | Line 2: | ||
{{about|the unique factorization of integers into prime numbers|the theorem about roots of a polynomial|Fundamental theorem of algebra|other fundamental theorems|List of theorems called fundamental}} | {{about|the unique factorization of integers into prime numbers|the theorem about roots of a polynomial|Fundamental theorem of algebra|other fundamental theorems|List of theorems called fundamental}} | ||
[[File:Disqvisitiones-800.jpg|thumb|In ''[[Disquisitiones Arithmeticae]]'' (1801) [[Carl Friedrich Gauss|Gauss]] proved the unique factorization theorem<ref name="Gauss1801.loc=16">{{Harvtxt|Gauss|1986|loc=Art. 16}}</ref> and used it to prove the [[law of quadratic reciprocity]].<ref>{{Harvtxt|Gauss|1986|loc=Art. 131}}</ref>]] | [[File:Disqvisitiones-800.jpg|thumb|In ''[[Disquisitiones Arithmeticae]]'' (1801) [[Carl Friedrich Gauss|Gauss]] proved the unique factorization theorem<ref name="Gauss1801.loc=16">{{Harvtxt|Gauss|1986|loc=Art. 16}}</ref> and used it to prove the [[law of quadratic reciprocity]].<ref>{{Harvtxt|Gauss|1986|loc=Art. 131}}</ref>]] | ||
In [[mathematics]], the '''fundamental theorem of arithmetic''', also called the '''unique factorization theorem''' and '''prime factorization theorem''', states that every [[integer]] greater than 1 can be represented uniquely as a product of [[prime number]]s, [[up to]] the order of the factors.<ref>{{harvtxt|Long|1972|p=44}}</ref><ref>{{harvtxt|Pettofrezzo|Byrkit|1970|p=53}}</ref><ref>{{Harvtxt|Hardy|Wright|2008|loc=Thm 2}}</ref> For example, | In [[mathematics]], the '''fundamental theorem of arithmetic''', also called the '''unique factorization theorem''' and '''prime factorization theorem''', states that every [[integer]] greater than 1 is either prime or can be represented uniquely as a product of [[prime number]]s, [[up to]] the order of the factors.<ref>{{harvtxt|Long|1972|p=44}}</ref><ref>{{harvtxt|Pettofrezzo|Byrkit|1970|p=53}}</ref><ref>{{Harvtxt|Hardy|Wright|2008|loc=Thm 2}}</ref> For example, | ||
:<math> | :<math> | ||
1200 = 2^4 \cdot 3^1 \cdot 5^2 = (2 \cdot 2 \cdot 2 \cdot 2) \cdot 3 \cdot (5 \cdot 5) = 5 \cdot 2 \cdot 5 \cdot 2 \cdot 3 \cdot 2 \cdot 2 = \ldots | 1200 = 2^4 \cdot 3^1 \cdot 5^2 = (2 \cdot 2 \cdot 2 \cdot 2) \cdot 3 \cdot (5 \cdot 5) = 5 \cdot 2 \cdot 5 \cdot 2 \cdot 3 \cdot 2 \cdot 2 = \ldots | ||
| Line 9: | Line 9: | ||
The theorem says two things about this example: first, that 1200 {{em|can}} 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 theorem says two things about this example: first, that 1200 {{em|can}} 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]]s may not be unique | The requirement that the factors be prime is necessary: factorizations containing [[composite number]]s may not be unique (for example, <math>12 = 2 \cdot 6 = 3 \cdot 4</math>). | ||
(for example, <math>12 = 2 \cdot 6 = 3 \cdot 4</math>). | |||
Using the standard conventions for the [[product of a sequence]] (the value of the [[empty product]] is {{val|1}} and the product of a single factor is the factor itself), the theorem is often stated as: ''every positive integer can be represented uniquely as a product of prime numbers, up to the order of the factors''. | |||
This theorem is one of the main [[Prime number#Primality of one|reasons why 1 is not considered a prime number]]: if 1 were prime, then factorization into primes would not be unique; for example, <math>2 = 2 \cdot 1 = 2 \cdot 1 \cdot 1 = \ldots</math> | This theorem is one of the main [[Prime number#Primality of one|reasons why 1 is not considered a prime number]]: if 1 were prime, then factorization into primes would not be unique; for example, <math>2 = 2 \cdot 1 = 2 \cdot 1 \cdot 1 = \ldots</math> | ||
The theorem generalizes to other [[algebraic structure]]s that are called [[unique factorization domain]]s and include [[principal ideal domain]]s, [[Euclidean domain]]s, and [[polynomial ring]]s over a [[field (mathematics)|field]]. However, the theorem does not hold for [[algebraic integer]]s. | The theorem generalizes to other [[algebraic structure]]s that are called [[unique factorization domain]]s and include [[principal ideal domain]]s, [[Euclidean domain]]s, and [[polynomial ring]]s over a [[field (mathematics)|field]]. However, the theorem does not hold for [[algebraic integer]]s.{{efn|In a [[ring of algebraic integers]], the factorization into prime elements may be non unique, but one can recover a unique factorization if one factors into [[ideal (ring theory)|ideal]]s.}} This failure of unique factorization is one of the reasons for the difficulty of the proof of [[Fermat's Last Theorem]]. 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 [[Pierre de Fermat|Fermat's]] statement and [[Wiles's proof of Fermat's Last Theorem|Wiles's proof]]. | ||
==History== | ==History== | ||
| Line 44: | Line 45: | ||
|Euclid|[[#CITEREFEuclidHeath1956|Elements Book IX]], Proposition 14}} | |Euclid|[[#CITEREFEuclidHeath1956|Elements Book IX]], Proposition 14}} | ||
(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]]. | (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]].{{efn|{{Harvtxt|Weil|2007|p=5}}: "Even in Euclid, we fail to find a general statement about the uniqueness of the factorization of an integer into primes; surely he may have been aware of it, but all he has is a statement (Eucl.IX.I4) about the l.c.m. of any number of given primes."}} Indeed, in this proposition the exponents are all equal to one, so nothing is said for the general case. | ||
While [[Euclid]] 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 | While [[Euclid]] 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{{efn|{{Cite journal |last=A. Goksel Agargun and E. Mehmet Özkan |title=A Historical Survey of the Fundamental Theorem of Arithmetic |url=https://core.ac.uk/download/pdf/82721726.pdf |journal=Historia Mathematica |pages=209|quote=One could say that Euclid takes the first step on the way to the existence of prime factorization, and al-Farisi takes the final step by actually proving the existence of a finite prime factorization in his first proposition.}}}} and stated for the first time the fundamental theorem of arithmetic.{{efn|{{Cite book|url=https://books.google.com/books?id=7veIAgAAQBAJ&q=fundamental+theorem+of+arithmetic+discovered+al-farisi&pg=PA385|title=Encyclopedia of the History of Arabic Science|last=Rashed|first=Roshdi|date=2002-09-11|publisher=Routledge|isbn=9781134977246|language=en|page=385|quote=The famous physicist and mathematician Kamal al-Din al-Farisi compiled a paper in which he set out deliberately to prove the theorem of Ibn Qurra in an algebraic way. This forced him to an understanding of the first arithmetical functions and to a full preparation which led him to state for the first time the fundamental theorem of arithmetic.}}}} | ||
Article 16 of [[Carl Friedrich Gauss|Gauss]]'s ''[[Disquisitiones Arithmeticae]]'' | Article 16 of [[Carl Friedrich Gauss|Gauss]]'s ''[[Disquisitiones Arithmeticae]]'' seems to be the first proof of the uniqueness part of the theorem.<ref name="Gauss1801.loc=16" /> | ||
==Applications== | ==Applications== | ||
| Line 83: | Line 84: | ||
\end{alignat}</math> | \end{alignat}</math> | ||
However, [[integer factorization]], especially of large numbers, is much more difficult than computing products, GCDs, or LCMs | However, [[integer factorization]], especially of large numbers, is much more difficult than computing products, GCDs, or LCMs, so these formulas have limited use in practice. | ||
===Arithmetic functions=== | ===Arithmetic functions=== | ||
| Line 91: | Line 92: | ||
==Proof== | ==Proof== | ||
The proof uses [[Euclid's lemma]] (''Elements'' VII, 30): If a prime [[Divisor|divides]] the product of two integers, then it must divide at least one of these integers. | The proof of uniqueness uses [[Euclid's lemma]] (''Elements'' VII, 30): If a prime [[Divisor|divides]] the product of two integers, then it must divide at least one of these integers. | ||
===Existence=== | ===Existence=== | ||
It must be shown that every integer greater than {{math|1}} is either prime or a product of primes. | It must be shown that every integer greater than {{math|1}} is either prime or a product of primes. Let {{math|''n''}} be an integer greater than {{math|1}} and make the [[Structural induction|inductive assumption]] that every integer greater than {{math|1}} and less than {{math|''n''}} is either prime or a product of primes. If {{math|''n''}} is prime, there is nothing more to prove. Otherwise, there are integers {{math|''a''}} and {{math|''b''}}, where {{math|1=''n'' = ''a b''}}, and {{math|1 < ''a'' ≤ ''b'' < ''n''}}. By the inductive hypothesis, {{math|1=''a'' = ''p''<sub>1</sub> ''p''<sub>2</sub> ⋅⋅⋅ ''p''<sub>''j''</sub>}} and {{math|1=''b'' = ''q''<sub>1</sub> ''q''<sub>2</sub> ⋅⋅⋅ ''q''<sub>''k''</sub>}} are products of primes. But then {{math|1=''n'' = ''a b'' = ''p''<sub>1</sub> ''p''<sub>2</sub> ⋅⋅⋅ ''p''<sub>''j''</sub> ''q''<sub>1</sub> ''q''<sub>2</sub> ⋅⋅⋅ ''q''<sub>''k''</sub>}} is a product of primes. | ||
===Uniqueness=== | ===Uniqueness=== | ||
| Line 137: | Line 138: | ||
</math> | </math> | ||
Examples like this caused the notion of "prime" to be modified. In <math>\mathbb{Z}\left[\sqrt{-5}\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 + { | Examples like this caused the notion of "prime" to be modified. In <math>\mathbb{Z}\left[\sqrt{-5}\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 + <math>\sqrt{-5}</math>) nor (1 - <math>\sqrt{-5}</math>) even though it divides their product 6. In [[algebraic number theory]] 2 is called [[irreducible element|irreducible]] in <math>\mathbb{Z}\left[\sqrt{-5}\right]</math> (only divisible by itself or a unit) but not [[prime element|prime]] in <math>\mathbb{Z}\left[\sqrt{-5}\right]</math> (if it divides a product it must divide one of the factors). The mention of <math>\mathbb{Z}\left[\sqrt{-5}\right]</math> is required because 2 is prime and irreducible in <math>\mathbb{Z}.</math> Using these definitions it can be proven that in any [[integral domain]] a prime must be irreducible. Euclid's classical lemma can be rephrased as "in the ring of integers <math>\mathbb{Z}</math> every irreducible is prime". This is also true in <math>\mathbb{Z}[i]</math> and <math>\mathbb{Z}[\omega],</math> but not in <math>\mathbb{Z}[\sqrt{-5}].</math> | ||
The rings in which factorization into irreducibles is essentially unique are called [[unique factorization domain]]s. Important examples are [[polynomial ring]]s over the integers or over a [[field (mathematics)|field]], [[Euclidean domain]]s and [[principal ideal domain]]s. | The rings in which factorization into irreducibles is essentially unique are called [[unique factorization domain]]s. Important examples are [[polynomial ring]]s over the integers or over a [[field (mathematics)|field]], [[Euclidean domain]]s and [[principal ideal domain]]s. | ||
| Line 153: | Line 154: | ||
==Notes== | ==Notes== | ||
{{notelist}} | |||
==Citations== | |||
{{reflist|30em}} | {{reflist|30em}} | ||
Latest revision as of 21:46, 7 November 2025
Template:Short description Script error: No such module "about".
In mathematics, the fundamental theorem of arithmetic, also called the unique factorization theorem and prime factorization theorem, states that every integer greater than 1 is either prime or can be represented uniquely as a product of prime numbers, up to the order of the factors.[3][4][5] For example,
The theorem says two things about this example: first, that 1200 Template:Em 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 numbers may not be unique (for example, ).
Using the standard conventions for the product of a sequence (the value of the empty product is Template:Val and the product of a single factor is the factor itself), the theorem is often stated as: every positive integer can be represented uniquely as a product of prime numbers, up to the order of the factors.
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 structures that are called unique factorization domains and include principal ideal domains, Euclidean domains, and polynomial rings over a field. However, the theorem does not hold for algebraic integers.Template:Efn This failure of unique factorization is one of the reasons for the difficulty of the proof of Fermat's Last Theorem. 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's Elements. Template:Quotation
(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.Template:Efn Indeed, in this proposition the exponents are all equal to one, so nothing is said for the general case.
While Euclid took the first step on the way to the existence of prime factorization, Kamāl al-Dīn al-Fārisī took the final stepTemplate:Efn and stated for the first time the fundamental theorem of arithmetic.Template:Efn
Article 16 of Gauss's Disquisitiones Arithmeticae seems to be the first proof of the uniqueness part of the theorem.[1]
Applications
Canonical representation of a positive integer
Every positive integer Template:Math can be represented in exactly one way as a product of prime powers
where Template:Math are primes and the Template:Math are positive integers. This representation is commonly extended to all positive integers, including 1, by the convention that the empty product is equal to 1 (the empty product corresponds to Template:Math).
This representation is called the canonical representation[6] of Template:Math, or the standard form[7][8] of n. For example,
- 999 = 33×37,
- 1000 = 23×53,
- 1001 = 7×11×13.
Factors Template:Math may be inserted without changing the value of Template:Math (for example, Template:Math). 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 Template:Math are positive integers, and the others are zero.
Allowing negative exponents provides a canonical form for positive rational numbers.
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, 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 of uniqueness 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 Template:Math is either prime or a product of primes. Let Template:Math be an integer greater than Template:Math and make the inductive assumption that every integer greater than Template:Math and less than Template:Math is either prime or a product of primes. If Template:Math is prime, there is nothing more to prove. Otherwise, there are integers Template:Math and Template:Math, where Template:Math, and Template:Math. By the inductive hypothesis, Template:Math and Template:Math are products of primes. But then Template:Math is a product of primes.
Uniqueness
Suppose, to the contrary, there is an integer that has two distinct prime factorizations. Let Template:Math be the least such integer and write Template:Math, where each Template:Math and Template:Math is prime. We see that Template:Math divides Template:Math, so Template:Math divides some Template:Math by Euclid's lemma. Without loss of generality, say Template:Math divides Template:Math. Since Template:Math and Template:Math are both prime, it follows that Template:Math. Returning to our factorizations of Template:Math, we may cancel these two factors to conclude that Template:Math. We now have two distinct prime factorizations of some integer strictly smaller than Template:Math, which contradicts the minimality of Template:Math.
Uniqueness without Euclid's lemma
The fundamental theorem of arithmetic can also be proved without using Euclid's lemma.[9] 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 greater than . Now, say
Every must be distinct from every Otherwise, if say then there would exist some positive integer that is smaller than Template:Mvar 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 Template:Mvar have been supposed to have a unique prime factorization, must occur in the factorization of either or Template:Mvar. The latter case is impossible, as Template:Mvar, being smaller than Template:Mvar, 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
Template:More citations needed section 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 integers, the set of all complex numbers 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).[10]
Similarly, in 1844 while working on cubic reciprocity, Eisenstein introduced the ring , where is a cube root of unity. This is the ring of Eisenstein integers, and he proved it has the six units and that it has unique factorization.
However, it was also discovered that unique factorization does not always hold. An example is given by . In this ring one has[11]
Examples like this caused the notion of "prime" to be modified. In 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 2 is called irreducible in (only divisible by itself or a unit) but not prime in (if it divides a product it must divide one of the factors). The mention of is required because 2 is prime and irreducible in Using these definitions it can be proven that in any integral domain a prime must be irreducible. Euclid's classical lemma can be rephrased as "in the ring of integers every irreducible is prime". This is also true in and but not in
The rings in which factorization into irreducibles is essentially unique are called unique factorization domains. Important examples are polynomial rings 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
- List of theorems called fundamental
- Prime signature, a characterization of how many primes divide a given number
Notes
Citations
References
Template:Sfn whitelist 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.
- Script error: No such module "citation/CS1".
- Script error: No such module "citation/CS1".
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".
- Script error: No such module "citation/CS1".
- Script error: No such module "citation/CS1".
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.
- Script error: No such module "citation/CS1".
- Template:Hardy and Wright
- Script error: No such module "citation/CS1"..
- Script error: No such module "citation/CS1"..
- Script error: No such module "citation/CS1".
- Script error: No such module "citation/CS1".
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
- Fermat's Last Theorem Blog: Unique Factorization, a blog that covers the history of Fermat's Last Theorem from Diophantus of Alexandria to the proof by Andrew Wiles.
- "Fundamental Theorem of Arithmetic" by Hector Zenil, Wolfram Demonstrations Project, 2007.
- Script error: No such module "citation/CS1".Template:Cbignore
- Fundamental Theorem of Arithmetic
de:Primfaktorzerlegung#Fundamentalsatz der Arithmetik
- ↑ a b Template:Harvtxt
- ↑ Template:Harvtxt
- ↑ Template:Harvtxt
- ↑ Template:Harvtxt
- ↑ Template:Harvtxt
- ↑ Template:Harvtxt
- ↑ Template:Harvtxt
- ↑ Template:Harvtxt
- ↑ Script error: No such module "citation/CS1".
- ↑ Gauss, BQ, §§ 31–34
- ↑ Template:Harvtxt