Created by Ajay Kumar
Last edited March 24, 2026
Created a new article
 
Suresh330 (talk | contribs)
added article and added references
 
Line 1: Line 1:
{{Short description|Mathematics of integer properties}}
{{Short description|Branch of pure mathematics}}
{{for|the book by André Weil|Number Theory: An Approach Through History from Hammurapi to Legendre}}
{{distinguish|Number Theory (book)|Numerology}}
{{distinguish|Numerology}}
[[File:A 150x150 Ulam spiral of dots with varying widths (emphasis primes).svg|thumb|The distribution of [[prime number]]s, a central point of study in number theory, illustrated by an [[Ulam spiral]]. It shows the conditional [[Independence (probability theory)|independence]] between being prime and being a value of certain quadratic polynomials.]]
[[File:Spirale Ulam 150.jpg|thumb|250x250px|The distribution of [[prime number]]s is a central point of study in number theory. This [[Ulam spiral]] serves to illustrate it, hinting, in particular, at the conditional [[Independence (probability theory)|independence]] between being prime and being a value of certain quadratic polynomials.]]
{{Math topics TOC}}
{{Math topics TOC}}
'''Number theory''' (or '''arithmetic''' or '''higher arithmetic''' in older usage) is a branch of [[pure mathematics]] devoted primarily to the study of the [[integer]]s and [[arithmetic function]]s. German mathematician [[Carl Friedrich Gauss]] (1777–1855) said, "Mathematics is the queen of the sciences—and number theory is the queen of mathematics."{{sfn|Long|1972|p=1}}<ref group="note">German original: "Die Mathematik ist die Königin der Wissenschaften, und die Arithmetik ist die Königin der Mathematik."</ref> Number theorists study [[prime number]]s as well as the properties of [[mathematical object]]s constructed from integers (for example, [[rational number]]s), or defined as generalizations of the integers (for example, [[algebraic integer]]s).
'''Number theory''' is a branch of [[pure mathematics]] devoted primarily to the study of the [[integer]]s and [[arithmetic function]]s. Number theorists study [[prime number]]s as well as the properties of [[mathematical object]]s constructed from integers (for example, [[rational number]]s), or defined as generalizations of the integers (for example, [[algebraic integer]]s).  


Integers can be considered either in themselves or as solutions to equations ([[Diophantine geometry]]). Questions in number theory are often best understood through the study of [[Complex analysis|analytical]] objects (for example, the [[Riemann zeta function]]) that encode properties of the integers, primes or other number-theoretic objects in some fashion ([[analytic number theory]]). One may also study [[real number]]s in relation to rational numbers, for example, as approximated by the latter ([[Diophantine approximation]]).
Integers can be considered either in themselves or as solutions to equations ([[Diophantine geometry]]). Questions in number theory can often be understood through the study of [[Complex analysis|analytical]] objects, such as the [[Riemann zeta function]], that encode properties of the integers, primes or other number-theoretic objects in some fashion ([[analytic number theory]]). One may also study [[real number]]s in relation to rational numbers, as for instance how irrational numbers can be approximated by fractions ([[Diophantine approximation]]).


The older term for number theory is ''arithmetic''. By the early twentieth century, it had been superseded by "number theory".<ref group="note">Already in 1921, [[T. L. Heath]] had to explain: "By arithmetic, Plato meant, not arithmetic in our sense, but the science which considers numbers in themselves, in other words, what we mean by the Theory of Numbers." {{harv|Heath|1921|p=13}}</ref> (The word "[[arithmetic]]" is used by the general public to mean "[[Elementary arithmetic|elementary calculations]]"; it has also acquired other meanings in [[mathematical logic]], as in ''[[Peano arithmetic]]'', and [[computer science]], as in ''[[floating-point arithmetic]]''.) The use of the term ''arithmetic'' for ''number theory'' regained some ground in the second half of the 20th century, arguably in part due to French influence.<ref group="note">Take, for example, {{harvnb|Serre|1973}}. In 1952, [[Harold Davenport|Davenport]] still had to specify that he meant ''The Higher Arithmetic''. [[G. H. Hardy|Hardy]] and Wright wrote in the introduction to ''[[An Introduction to the Theory of Numbers]]'' (1938): "We proposed at one time to change [the title] to ''An introduction to arithmetic'', a more novel and in some ways a more appropriate title; but it was pointed out that this might lead to misunderstandings about the content of the book." {{harv|Hardy|Wright|2008}}</ref> In particular, ''arithmetical'' is commonly preferred as an adjective to ''number-theoretic''.
Number theory is one of the oldest branches of mathematics alongside geometry. One quirk of number theory is that it deals with statements that are simple to understand but are very difficult to solve. Examples of this are [[Fermat's Last Theorem]], which was proved 358 years after the original formulation, and [[Goldbach's conjecture]], which remains unsolved since the 18th century. German mathematician [[Carl Friedrich Gauss]] (1777–1855) once remarked, "Mathematics is the queen of the sciences—and number theory is the queen of mathematics."{{sfn|Long|1972|p=1}} It was regarded as the epitome of pure mathematics, with no applications outside mathematics, until the 1970s, when prime numbers became the basis for the creation of [[public-key cryptography]] algorithms, such as the [[RSA cryptosystem]].


==History==
== Definition ==
===Origins===
Number theory is the branch of mathematics that studies [[Integer|integers]] and their [[Property (mathematics)|properties]] and relations.<ref name=":7">{{Cite web |last=Karatsuba |first=A.A. |date=2020 |title=Number theory |url=https://encyclopediaofmath.org/wiki/Number_theory |access-date=2025-05-03 |website=Encyclopedia of Mathematics |publisher=Springer}}</ref> The integers comprise a [[Set (mathematics)|set]] that extends the set of [[Natural number|natural numbers]] <math>\{1, 2, 3, \dots\}</math> to include number <math>0</math> and the negation of natural numbers <math>\{-1, -2, -3, \dots\}</math>. Number theorists study [[Prime number|prime numbers]] as well as the properties of [[Mathematical object|mathematical objects]] constructed from integers (for example, [[Rational number|rational numbers]]), or defined as generalizations of the integers (for example, [[Algebraic integer|algebraic integers]]).<ref name=":5">{{Cite book |last=Moore |first=Patrick |title=The Gale Encyclopedia of Science |publisher=Gale |year=2004 |isbn=0-7876-7559-8 |editor-last=Lerner |editor-first=K. Lee |edition=3rd |volume=4 |pages= |language=en |chapter=Number theory |editor-last2=Lerner |editor-first2=Brenda Wilmoth}}</ref><ref name=":1" />
====Dawn of arithmetic====
[[Image:Plimpton 322.jpg|right|thumb|The Plimpton 322 tablet]]
The earliest historical find of an arithmetical nature is a fragment of a table: the broken clay tablet [[Plimpton 322]] ([[Larsa|Larsa, Mesopotamia]], ca. 1800 BC) contains a list of "[[Pythagorean triple]]s", that is, integers <math>(a,b,c)</math> such that <math>a^2+b^2=c^2</math>.
The triples are too many and too large to have been obtained by [[brute force method|brute force]]. The heading over the first column reads: "The ''takiltum'' of the diagonal which has been subtracted such that the width..."<ref>{{harvnb|Neugebauer & Sachs|1945|p=40}}. The term ''takiltum'' is problematic. Robson prefers the rendering "The holding-square of the diagonal from which 1 is torn out, so that the short side comes up...".{{harvnb|Robson|2001|p=192}}</ref>


The table's layout suggests<ref>{{harvnb|Robson|2001|p=189}}. Other sources give the modern formula <math>(p^2-q^2,2pq,p^2+q^2)</math>. Van der Waerden gives both the modern formula and what amounts to the form preferred by Robson.{{harv|van der Waerden|1961|p=79}}</ref> that it was constructed by means of what amounts, in modern language, to the [[Identity (mathematics)|identity]]
Number theory is closely related to arithmetic and some authors use the terms as synonyms.<ref>{{multiref|{{harvnb|Lozano-Robledo|2019|p=[https://books.google.com/books?id=ESiODwAAQBAJ&pg=PR13 xiii]}}|{{harvnb|Nagel|Newman|2008|p=[https://books.google.com/books?id=WgwUCgAAQBAJ&pg=PA4 4]}}}}</ref> However, the word "arithmetic" is used today to mean the study of numerical operations and extends to the [[Real number|real numbers]].<ref>{{multiref|{{harvnb|Romanowski|2008|pp=302–303}}|{{harvnb|HC staff|2022b}}|{{harvnb|MW staff|2023}}|{{harvnb|Bukhshtab|Pechaev|2020}}}}</ref> In a more specific sense, number theory is restricted to the study of integers and focuses on their properties and relationships.<ref>{{multiref|{{harvnb|Wilson|2020|pp=[https://books.google.com/books?id=fcDgDwAAQBAJ&pg=PA1 1–2]}}|{{harvnb|Karatsuba|2020}}|{{harvnb|Campbell|2012|p=[https://books.google.com/books?id=yoEFp-Q2OXIC&pg=PT33 33]}}|{{harvnb|Robbins|2006|p=[https://books.google.com/books?id=TtLMrKDsDuIC&pg=PR12-IA1 1]}}}}</ref> Traditionally, it is known as higher arithmetic.<ref>{{multiref|{{harvnb|Duverney|2010|p=[https://books.google.com/books?id=sr5S9oN1xPAC&pg=PR5 v]}}|{{harvnb|Robbins|2006|p=[https://books.google.com/books?id=TtLMrKDsDuIC&pg=PR12-IA1 1]}}}}</ref> By the early twentieth century, the term ''number theory'' had been widely adopted.<ref group="note">The term 'arithmetic' may have regained some ground, arguably due to French influence. Take, for example, {{harvnb|Serre|1996}}. In 1952, [[Harold Davenport|Davenport]] still had to specify that he meant ''The Higher Arithmetic''. [[G. H. Hardy|Hardy]] and Wright wrote in the introduction to ''[[An Introduction to the Theory of Numbers]]'' (1938): "We proposed at one time to change [the title] to ''An introduction to arithmetic'', a more novel and in some ways a more appropriate title; but it was pointed out that this might lead to misunderstandings about the content of the book." {{harv|Hardy|Wright|2008}}</ref> The term number means whole numbers, which refers to either the natural numbers or the integers.<ref name=":4">{{Cite book |last1=Effinger |first1=Gove |title=Elementary Number Theory |last2=Mullen |first2=Gary L. |publisher=CRC Press |year=2022 |isbn=978-1-003-19311-1 |location=Boca Raton |language=en |chapter=}}</ref><ref name=":6">{{Cite book |last=Weisstein |first=Eric W. |title=CRC Concise Encyclopedia of Mathematics |publisher=Chapman & Hall/CRC |year=2003 |isbn=1-58488-347-2 |edition=2nd |pages= |language=en |chapter=}}</ref><ref>{{Cite book |last=Weisstein |first=Eric W. |title=CRC Concise Encyclopedia of Mathematics |publisher=Chapman & Hall/CRC |year=2003 |isbn=1-58488-347-2 |edition=2nd |pages=3202 |language=en |chapter=Whole Number}}</ref>


:<math>\left(\frac{1}{2} \left(x - \frac{1}{x}\right)\right)^2 + 1 = \left(\frac{1}{2} \left(x + \frac{1}{x} \right)\right)^2,</math>
[[Elementary number theory]] studies aspects of integers that can be investigated using elementary methods such as [[Elementary proof|elementary proofs]].<ref name=":3">{{multiref|{{harvnb|Page|2003|pp=[https://www.sciencedirect.com/science/article/abs/pii/B0122274105005032 18–19, 34]}}|{{harvnb|Bukhshtab|Nechaev|2014}}}}</ref> [[Analytic number theory]], by contrast, relies on [[complex numbers]] and techniques from analysis and [[calculus]].<ref>{{multiref|{{harvnb|Page|2003|p=[https://www.sciencedirect.com/science/article/abs/pii/B0122274105005032 34]}}|{{harvnb|Karatsuba|2014}}}}</ref> [[Algebraic number theory]] employs [[algebraic structures]] such as [[Field (mathematics)|fields]] and [[Ring (mathematics)|rings]] to analyze the properties of and relations between numbers. [[Geometric number theory]] uses concepts from geometry to study numbers.<ref>{{multiref|{{harvnb|Page|2003|pp=[https://www.sciencedirect.com/science/article/abs/pii/B0122274105005032 34–35]}}|{{harvnb|Vinogradov|2019}}}}</ref> Further branches of number theory are [[probabilistic number theory]],<ref>{{harvnb|Kubilyus|2018}}</ref> [[combinatorial number theory]],<ref>{{harvnb|Pomerance|Sárközy|1995|p=[https://books.google.com/books?id=5ktBP5vUl5gC&pg=PA969 969]}}</ref> [[computational number theory]],<ref>{{harvnb|Pomerance|2010}}</ref> and applied number theory, which examines the application of number theory to science and technology.<ref>{{multiref|{{harvnb|Yan|2002|pp=12, 303–305}}|{{harvnb|Yan|2013a|p=[https://books.google.com/books?id=74oBi4ys0UUC&pg=PA15 15]}}}}</ref>


which is implicit in routine [[Old Babylonian language|Old Babylonian]] exercises.{{sfn|van der Waerden|1961|p=184}} If some other method was used,<ref>Neugebauer {{harv|Neugebauer|1969|pp=36–40}} discusses the table in detail and mentions in passing Euclid's method in modern notation {{harv|Neugebauer|1969|p=39}}.</ref> the triples were first constructed and then reordered by <math>c/a</math>, presumably for actual use as a "table", for example, with a view to applications.
== History ==
[[File:Plimpton 322.jpg|thumb|alt=Babylonian tablet listing Pythagorean triples.|The Babylonians demonstrated an early understanding of Pythagorean triples.]]
In recorded history, knowledge of numbers existed in the ancient civilisations of Mesopotamia, Egypt, China, and India.<ref>{{harvnb|Dunham|2025}}</ref> The earliest historical find of an arithmetical nature is the [[Plimpton 322]], dated c.&nbsp;1800&nbsp;BC. It is a broken clay tablet that contains a list of [[Pythagorean triple]]s, that is, integers <math>(a,b,c)</math> such that <math>a^2+b^2=c^2</math>. The triples are too numerous and too large to have been obtained by [[brute force method|brute force]].<ref>{{harvnb|Neugebauer|Sachs|1945|p=40}}. The term {{tlit|akk|takiltum}} is problematic. Robson prefers the rendering "The holding-square of the diagonal from which 1 is torn out, so that the short side comes up...".{{harvnb|Robson|2001|p=192}}</ref> The table's layout suggests that it was constructed by means of what amounts, in modern language, to the [[Identity (mathematics)|identity]]<ref>{{harvnb|Robson|2001|p=189}}. Other sources give the modern formula <math>(p^2-q^2,2pq,p^2+q^2)</math>. Van der Waerden gives both the modern formula and what amounts to the form preferred by Robson.{{harv|van der Waerden|1961|p=79}}</ref><math display="block">\left(\frac{1}{2} \left(x - \frac{1}{x}\right)\right)^2 + 1 = \left(\frac{1}{2} \left(x + \frac{1}{x} \right)\right)^2,</math>which is implicit in routine [[Old Babylonian language|Old Babylonian]] exercises.<ref>Neugebauer {{harv|Neugebauer|1969|pp=36–40}} discusses the table in detail and mentions in passing Euclid's method in modern notation {{harv|Neugebauer|1969|p=39}}.</ref> It has been suggested instead that the table was a source of numerical examples for school problems.{{sfn|Friberg|1981|p=302}}<ref group="note">{{harvnb|Robson|2001|p=201}}. This is controversial. See [[Plimpton 322]]. Robson's article is written polemically {{harv|Robson|2001|p=202}} with a view to "perhaps [...] knocking [Plimpton 322] off its pedestal" {{harv|Robson|2001|p=167}}; at the same time, it settles to the conclusion that


It is not known what these applications may have been, or whether there could have been any; [[Babylonian astronomy]], for example, truly came into its own only later. It has been suggested instead that the table was a source of numerical examples for school problems.{{sfn|Friberg|1981|p=302}}<ref group="note">{{harvnb|Robson|2001|p=201}}. This is controversial. See [[Plimpton 322]]. Robson's article is written polemically {{harv|Robson|2001|p=202}} with a view to "perhaps [...] knocking [Plimpton 322] off its pedestal" {{harv|Robson|2001|p=167}}; at the same time, it settles to the conclusion that <blockquote>[...] the question "how was the tablet calculated?" does not have to have the same answer as the question "what problems does the tablet set?" The first can be answered most satisfactorily by reciprocal pairs, as first suggested half a century ago, and the second by some sort of right-triangle problems {{harv|Robson|2001|p=202}}. </blockquote>
<blockquote>[...] the question "how was the tablet calculated?" does not have to have the same answer as the question "what problems does the tablet set?" The first can be answered most satisfactorily by reciprocal pairs, as first suggested half a century ago, and the second by some sort of right-triangle problems {{harv|Robson|2001|p=202}}.</blockquote>
Robson takes issue with the notion that the scribe who produced Plimpton 322 (who had to "work for a living", and would not have belonged to a "leisured middle class") could have been motivated by his own "idle curiosity" in the absence of a "market for new mathematics".{{harv|Robson|2001|pp=199–200}}</ref>


While Babylonian number theory—or what survives of [[Babylonian mathematics]] that can be called thus—consists of this single, striking fragment, Babylonian algebra (in the secondary-school sense of "[[algebra]]") was exceptionally well developed.{{sfn|van der Waerden|1961|p=43}} Late Neoplatonic sources<ref name="vanderW2">[[Iamblichus]], ''Life of Pythagoras'',(trans., for example, {{harvnb|Guthrie|1987}}) cited in {{harvnb|van der Waerden|1961|p=108}}. See also [[Porphyry (philosopher)|Porphyry]], ''Life of Pythagoras'', paragraph 6, in {{harvnb|Guthrie|1987|para=6}}
Robson takes issue with the notion that the scribe who produced Plimpton 322 (who had to "work for a living", and would not have belonged to a "leisured middle class") could have been motivated by his own "idle curiosity" in the absence of a "market for new mathematics".{{harv|Robson|2001|pp=199–200}}</ref> Plimpton 322 tablet is the only surviving evidence of what today would be called number theory within Babylonian mathematics, though a kind of [[Babylonian mathematics#Algebra|Babylonian algebra]] was much more developed.{{sfn|van der Waerden|1961|p=63–75}}
Van der Waerden {{harv|van der Waerden|1961|pp=87–90}} sustains the view that Thales knew Babylonian mathematics.</ref> state that [[Pythagoras]] learned mathematics from the Babylonians. Much earlier sources<ref name="stanencyc">Herodotus (II. 81) and Isocrates (''Busiris'' 28), cited in: {{harvnb|Huffman|2011}}. On Thales, see Eudemus ap. Proclus, 65.7, (for example, {{harvnb|Morrow|1992|p=52}}) cited in: {{harvnb|O'Grady|2004|p=1}}. Proclus was using a work by [[Eudemus of Rhodes]] (now lost), the ''Catalogue of Geometers''. See also introduction, {{harvnb|Morrow|1992|p=xxx}} on Proclus's reliability.</ref> state that [[Thales]] and Pythagoras traveled and studied in [[Egypt]].


[[Euclid]] IX 21–34 is very probably Pythagorean;<ref name="Becker">{{harvnb|Becker|1936|p=533}}, cited in: {{harvnb|van der Waerden|1961|p=108}}.</ref> it is very simple material ("odd times even is even", "if an odd number measures [= divides] an even number, then it also measures [= divides] half of it"), but it is all that is needed to prove that [[square root of 2|<math>\sqrt{2}</math>]]
Although other civilizations probably influenced [[Ancient Greek mathematics|Greek mathematics]] at the beginning,<ref>{{harvnb|van der Waerden|1961|p=87–90}}</ref> all evidence of such borrowings appear relatively late,<ref name="vanderW2">[[Iamblichus]], ''Life of Pythagoras'',(trans., for example, {{harvnb|Guthrie|1987}}) cited in {{harvnb|van der Waerden|1961|p=108}}. See also [[Porphyry (philosopher)|Porphyry]], ''Life of Pythagoras'', paragraph 6, in {{harvnb|Guthrie|1987|para=6}}</ref><ref name="stanencyc">Herodotus (II. 81) and Isocrates (''Busiris'' 28), cited in: {{harvnb|Huffman|2011}}. On Thales, see Eudemus ap. Proclus, 65.7, (for example, {{harvnb|Morrow|1992|p=52}}) cited in: {{harvnb|O'Grady|2004|p=1}}. Proclus was using a work by [[Eudemus of Rhodes]] (now lost), the ''Catalogue of Geometers''. See also introduction, {{harvnb|Morrow|1992|p=xxx}} on Proclus's reliability.</ref> and it is likely that Greek {{tlit|grc|arithmētikḗ}}, the theoretical or philosophical study of numbers, is an indigenous tradition.{{sfn|Boyer|Merzbach|1991|p=82}} Ancient Greek mathematicians conventionally separated numbers (mostly positive integers but occasionally rationals) from magnitudes or lengths, with only the former being the subject of arithmetic.  
is [[Irrational number|irrational]].{{sfn|Becker|1936}} [[Pythagoreanism|Pythagorean mystics]] gave great importance to the odd and the even.{{sfn|van der Waerden|1961|p=109}}
The discovery that <math>\sqrt{2}</math> is irrational is credited to the early Pythagoreans (pre-[[Theodorus of Cyrene|Theodorus]]).<ref name="Thea">Plato, ''Theaetetus'', p. 147 B, (for example, {{harvnb|Jowett|1871}}), cited
in {{harvnb|von Fritz|2004|p=212}}: "Theodorus was writing out for us something about roots, such as the roots of three or five, showing that they are incommensurable by the unit;..." ''See also'' [[Spiral of Theodorus]].</ref> By revealing (in modern terms) that numbers could be irrational, this discovery seems to have provoked the first foundational crisis in mathematical history; its proof or its divulgation are sometimes credited to [[Hippasus of Metapontum|Hippasus]], who was expelled or split from the Pythagorean sect.{{sfn|von Fritz|2004}} This forced a distinction between ''[[number]]s'' (integers and the rationals—the subjects of arithmetic), on the one hand, and ''lengths'' and ''proportions'' (which we would identify with real numbers, whether rational or not), on the other hand.


The Pythagorean tradition spoke also of so-called [[polygonal number|polygonal]] or [[figurate numbers]].{{sfn|Heath|1921|p=76}} While [[square number]]s, [[cubic number]]s, etc., are seen now as more natural than [[triangular number]]s, [[pentagonal number]]s, etc., the study of the sums of triangular and pentagonal numbers would prove fruitful in the [[early modern period]] (17th to early 19th centuries).
A keen interest in [[divisibility]] is found in early Greek arithmetic. [[Pythagoreans]] often attributed mystical qualities to [[Perfect number|perfect]] and [[amicable numbers]], and dedicated time to the study [[polygonal number|polygonal]] or [[figurate numbers]].{{sfn|Heath|1921|p=76}} Later, Euclid devoted part of his ''[[Euclid's Elements|Elements]]'' to topics that belong to elementary number theory, including [[Prime number|prime numbers]] and [[Divisibility rule|divisibility]].<ref>{{Cite book |last=Corry |first=Leo |title=A Brief History of Numbers |publisher=Oxford University Press |year=2015 |isbn=978-0-19-870259-7 |language=en |chapter=Construction Problems and Numerical Problems in the Greek Mathematical Tradition}}</ref> He gave the [[Euclidean algorithm]] for computing the [[greatest common divisor]] of two numbers and a [[Euclid's theorem|proof implying the infinitude of primes]]. Building on the works of the earlier Pythagoreans, [[Nicomachus of Gerasa]] wrote an ''Introduction to Arithmetic'' that was to be influential in later centuries, while [[Theon of Smyrna|Theon of Smyrna's]] ''Mathematics Useful For Understanding Plato'' discusses the idea of [[Modular arithmetic#Congruence|congruences]]. The most important late antique author was arguably [[Diophantus of Alexandria]], who probably lived in the 3rd century AD. He wrote the ''[[Arithmetica]]'', a collection of worked-out problems where the task is invariably to find rational solutions to a system of polynomial equations, usually of the form <math>f(x,y)=z^2</math> or <math>f(x,y,z)=w^2</math>. In modern parlance, [[Diophantine equation]]s are [[polynomial equation]]s to which rational or integer solutions are sought.


We know of no clearly arithmetical material in [[Egyptian mathematics|ancient Egyptian]] or [[Vedic]] sources, though there is some algebra in each. The [[Chinese remainder theorem]] appears as an exercise<ref>''Sunzi Suanjing'', Chapter 3, Problem 26. This can be found in {{harvnb|Lam|Ang|2004|pp=219–220}}, which contains a full translation of the ''Suan Ching'' (based on {{harvnb|Qian|1963}}). See also the discussion in {{harvnb|Lam|Ang|2004|pp=138–140}}.</ref> in ''[[Sunzi Suanjing]]'' (3rd, 4th or 5th century CE).<ref name="YongSe">The date of the text has been narrowed down to 220–420 CE (Yan Dunjie) or 280–473 CE (Wang Ling) through internal evidence (= taxation systems assumed in the text). See {{harvnb|Lam|Ang|2004|pp=27–28}}.</ref> (There is one important step glossed over in Sunzi's solution:<ref group="note">''Sunzi Suanjing'', Ch. 3, Problem 26,
After the fall of Rome, development shifted to Asia, albeit intermittently. The [[Chinese remainder theorem]] appears as an exercise<ref>''Sunzi Suanjing'', Chapter 3, Problem 26. This can be found in {{harvnb|Lam|Ang|2004|pp=219–220}}, which contains a full translation of the ''Suan Ching'' (based on {{harvnb|Qian|1963}}). See also the discussion in {{harvnb|Lam|Ang|2004|pp=138–140}}.</ref> in ''[[Sunzi Suanjing]]'' (between the third and fifth centuries).<ref name="YongSe">The date of the text has been narrowed down to 220–420&nbsp;AD (Yan Dunjie) or 280–473&nbsp;AD (Wang Ling) through internal evidence (= taxation systems assumed in the text). See {{harvnb|Lam|Ang|2004|pp=27–28}}.</ref> The result was later generalized with a complete solution called ''Da-yan-shu'' ({{lang|zh|大衍術}}) in [[Qin Jiushao]]'s 1247 ''[[Mathematical Treatise in Nine Sections]].''<ref>{{harvnb|Dauben|2007|page=310}}</ref><ref>{{harvnb|Libbrecht|1973}}</ref> There is also some numerical mysticism in Chinese mathematics,<ref group="note">See, for example, ''Sunzi Suanjing'', Ch. 3, Problem 36, in {{harvnb|Lam|Ang|2004|pp=223–224}}:<blockquote>
in {{harvnb|Lam|Ang|2004|pp=219–220}}:<blockquote>
[26] Now there are an unknown number of things. If we count by threes, there is a remainder 2; if we count by fives, there is a remainder 3; if we count by sevens, there is a remainder 2. Find the number of things. ''Answer'': 23.<br />
''Method'': If we count by threes and there is a remainder 2, put down 140. If we count by fives and there is a remainder 3, put down 63. If we count by sevens and there is a remainder 2, put down 30. Add them to obtain 233 and subtract 210 to get the answer. If we count by threes and there is a remainder 1, put down 70. If we count by fives and there is a remainder 1, put down 21. If we count by sevens and there is a remainder 1, put down 15. When [a number] exceeds 106, the result is obtained by subtracting 105.</blockquote></ref> it is the problem that was later solved by [[Āryabhaṭa]]'s [[Kuṭṭaka]] – see [[#Āryabhaṭa, Brahmagupta, Bhāskara|below]].)
 
There is also some numerical mysticism in Chinese mathematics,<ref group="note">See, for example, ''Sunzi Suanjing'', Ch. 3, Problem 36, in {{harvnb|Lam|Ang|2004|pp=223–224}}:<blockquote>
[36] Now there is a pregnant woman whose age is 29. If the gestation period is 9 months, determine the sex of the unborn child. ''Answer'': Male.<br />
[36] Now there is a pregnant woman whose age is 29. If the gestation period is 9 months, determine the sex of the unborn child. ''Answer'': Male.<br />
''Method'': Put down 49, add the gestation period and subtract the age. From the remainder take away 1 representing the heaven, 2 the earth, 3 the man, 4 the four seasons, 5 the five phases, 6 the six pitch-pipes, 7 the seven stars [of the Dipper], 8 the eight winds, and 9 the nine divisions [of China under Yu the Great]. If the remainder is odd, [the sex] is male and if the remainder is even, [the sex] is female.</blockquote>
''Method'': Put down 49, add the gestation period and subtract the age. From the remainder take away 1 representing the heaven, 2 the earth, 3 the man, 4 the four seasons, 5 the five phases, 6 the six pitch-pipes, 7 the seven stars [of the Dipper], 8 the eight winds, and 9 the nine divisions [of China under Yu the Great]. If the remainder is odd, [the sex] is male and if the remainder is even, [the sex] is female.</blockquote>
This is the last problem in Sunzi's otherwise matter-of-fact treatise.</ref> but, unlike that of the Pythagoreans, it seems to have led nowhere. Like the Pythagoreans' [[perfect number]]s, [[magic squares]] have passed from superstition into [[Recreational mathematics|recreation]].
This is the last problem in Sunzi's otherwise matter-of-fact treatise.</ref> but, unlike that of the Pythagoreans, it seems to have led nowhere. While Greek astronomy probably influenced Indian learning{{sfn|Plofker|2008|p=119}} it seems to be the case that Indian mathematics is otherwise an autochthonous tradition.<ref name="Plofbab">Any early contact between Babylonian and Indian mathematics remains conjectural {{harv|Plofker|2008|p=42}}.</ref>{{sfn|Mumford|2010|p=387}} [[Āryabhaṭa]] (476–550&nbsp;AD) showed that pairs of simultaneous congruences <math>n\equiv a_1 \bmod m_1</math>, <math>n\equiv a_2 \bmod m_2</math> could be solved by a method he called ''kuṭṭaka'', or ''pulveriser'';<ref>Āryabhaṭa, Āryabhatīya, Chapter 2, verses 32–33, cited in: {{harvnb|Plofker|2008|pp=134–140}}. See also {{harvnb|Clark|1930|pp=42–50}}. A slightly more explicit description of the kuṭṭaka was later given in [[Brahmagupta]], ''Brāhmasphuṭasiddhānta'', XVIII, 3–5 (in {{harvnb|Colebrooke|1817|p=325}}, cited in {{harvnb|Clark|1930|p=42}}).</ref> this is a procedure close to the Euclidean algorithm.{{sfn|Mumford|2010|p=388}} Āryabhaṭa seems to have had in mind applications to astronomical calculations.{{sfn|Plofker|2008|p=119}} Brahmagupta (628&nbsp;AD) started the systematic study of indefinite quadratic equations—in particular, the [[Pell equation]]. A general procedure for solving Pell's equation was probably found by [[Jayadeva (mathematician)|Jayadeva]]; the earliest surviving exposition appears in [[Bhāskara II]]'s Bīja-gaṇita (twelfth century).{{sfn|Plofker|2008|p=194}}
 
====Classical Greece and the early Hellenistic period====
{{Further|Ancient Greek mathematics}}
 
Aside from a few fragments, the mathematics of Classical Greece is known to us either through the reports of contemporary non-mathematicians or through mathematical works from the early [[Hellenistic period]].{{sfn|Boyer|Merzbach|1991|p=82}} In the case of number theory, this means, by and large, ''[[Plato]]'' and ''Euclid'', respectively.
 
While Asian mathematics influenced Greek and Hellenistic learning, it seems to be the case that Greek mathematics is also an indigenous tradition.
 
[[Eusebius]], PE X, chapter 4 mentions of [[Pythagoras]]:
 
<blockquote>"In fact the said Pythagoras, while busily studying the wisdom of each nation, visited Babylon, and Egypt, and all Persia, being instructed by the Magi and the priests: and in addition to these he is related to have studied under the Brahmans (these are Indian philosophers); and from some he gathered astrology, from others geometry, and arithmetic and music from others, and different things from different nations, and only from the wise men of Greece did he get nothing, wedded as they were to a poverty and dearth of wisdom: so on the contrary he himself became the author of instruction to the Greeks in the learning which he had procured from abroad."<ref>{{Cite web | url=http://www.tertullian.org/fathers/eusebius_pe_10_book10.htm | title=Eusebius of Caesarea: Praeparatio Evangelica (Preparation for the Gospel). Tr. E.H. Gifford (1903) – Book 10 | access-date=2017-02-20 | archive-date=2016-12-11 | archive-url=https://web.archive.org/web/20161211194042/http://www.tertullian.org/fathers/eusebius_pe_10_book10.htm | url-status=live }}</ref></blockquote>
 
Aristotle claimed that the philosophy of Plato closely followed the teachings of the Pythagoreans,<ref>Metaphysics, 1.6.1 (987a)</ref> and Cicero repeats this claim: ''Platonem ferunt didicisse Pythagorea omnia'' ("They say Plato learned all things Pythagorean").<ref>Tusc. Disput. 1.17.39.</ref>
 
Plato had a keen interest in mathematics, and distinguished clearly between arithmetic and calculation. (By ''arithmetic'' he meant, in part, theorising on number, rather than what ''arithmetic'' or ''number theory'' have come to mean.) It is through one of Plato's dialogues—namely, [[Theaetetus (dialogue)|''Theaetetus'']]—that we know that [[Theodorus of Cyrene|Theodorus]] had proven that <math>\sqrt{3}, \sqrt{5}, \dots, \sqrt{17}</math> are irrational. [[Theaetetus of Athens|Theaetetus]] was, like Plato, a disciple of Theodorus's; he worked on distinguishing different kinds of [[Commensurability (mathematics)|incommensurables]], and was thus arguably a pioneer in the study of [[number systems]]. (Book X of [[Euclid's Elements]] is described by [[Pappus of Alexandria|Pappus]] as being largely based on Theaetetus's work.)
 
Euclid devoted part of his ''Elements'' to prime numbers and divisibility, topics that belong unambiguously to number theory and are basic to it (Books VII to IX of Euclid's Elements). In particular, he gave an algorithm for computing the greatest common divisor of two numbers (the [[Euclidean algorithm]]; ''Elements'', Prop. VII.2) and the first known proof of the [[infinitude of primes]] (''Elements'', Prop. IX.20).
 
In 1773, [[Gotthold Ephraim Lessing|Lessing]] published an [[epigram]] he had found in a manuscript during his work as a librarian; it claimed to be a letter sent by [[Archimedes]] to [[Eratosthenes]].{{sfn|Vardi|1998|pp=305–319}}{{sfn|Weil|1984|pp=17–24}} The epigram proposed what has become known as
[[Archimedes's cattle problem]]; its solution (absent from the manuscript) requires solving an indeterminate quadratic equation (which reduces to what would later be misnamed [[Pell's equation]]). As far as we know, such equations were first successfully treated by the [[#Āryabhaṭa, Brahmagupta, Bhāskara|Indian school]]. It is not known whether Archimedes himself had a method of solution.
 
====Diophantus====
[[Image:Diophantus-cover.png|thumb|upright|Title page of the 1621 edition of [[Diophantus of Alexandria]]'s ''Arithmetica'', translated into [[Latin]] by [[Claude Gaspard Bachet de Méziriac]]]]
 
Very little is known about [[Diophantus of Alexandria]]; he probably lived in the third century AD, that is, about five hundred years after Euclid. Six out of the thirteen books of Diophantus's ''[[Arithmetica]]'' survive in the original Greek and four more survive in an Arabic translation. The ''Arithmetica'' is a collection of worked-out problems where the task is invariably to find rational solutions to a system of polynomial equations, usually of the form <math>f(x,y)=z^2</math> or <math>f(x,y,z)=w^2</math>. Thus, nowadays, we speak of ''[[Diophantine equation]]s'' when we speak of polynomial equations to which rational or integer solutions must be found.
 
One may say that Diophantus was studying [[rational point]]s, that is, points whose coordinates are rational—on [[curve]]s and [[algebraic variety|algebraic varieties]]; however, unlike the Greeks of the Classical period, who did what we would now call basic algebra in geometrical terms, Diophantus did what we would now call basic algebraic geometry in purely algebraic terms. In modern language, what Diophantus did was to find rational parametrizations of varieties; that is, given an equation of the form (say)
<math>f(x_1,x_2,x_3)=0</math>, his aim was to find (in essence) three [[rational functions]] <math>g_1, g_2, g_3</math> such that, for all values of <math>r</math> and <math>s</math>, setting
<math>x_i = g_i(r,s)</math> for <math>i=1,2,3</math> gives a solution to <math>f(x_1,x_2,x_3)=0.</math>
 
Diophantus also studied the equations of some non-rational curves, for which no rational parametrisation is possible. He managed to find some rational points on these curves ([[elliptic curve]]s, as it happens, in what seems to be their first known occurrence) by means of what amounts to a tangent construction: translated into coordinate geometry
(which did not exist in Diophantus's time), his method would be visualised as drawing a tangent to a curve at a known rational point, and then finding the other point of intersection of the tangent with the curve; that other point is a new rational point. (Diophantus also resorted to what could be called a special case of a secant construction.)
 
While Diophantus was concerned largely with rational solutions, he assumed some results on integer numbers, in particular that [[Lagrange's four-square theorem|every integer is the sum of four squares]] (though he never stated as much explicitly).
 
====Āryabhaṭa, Brahmagupta, Bhāskara====
While Greek astronomy probably influenced Indian learning, to the point of introducing [[trigonometry]],{{sfn|Plofker|2008|p=119}} it seems to be the case that Indian mathematics is otherwise an indigenous tradition;<ref name="Plofbab">Any early contact between Babylonian and Indian mathematics remains conjectural {{harv|Plofker|2008|p=42}}.</ref> in particular, there is no evidence that Euclid's Elements reached India before the 18th century.{{sfn|Mumford|2010|p=387}}
 
Āryabhaṭa (476–550 AD) showed that pairs of simultaneous congruences <math>n\equiv a_1 \bmod m_1</math>, <math>n\equiv a_2 \bmod m_2</math> could be solved by a method he called ''kuṭṭaka'', or ''pulveriser'';<ref>Āryabhaṭa, Āryabhatīya, Chapter 2, verses 32–33, cited in: {{harvnb|Plofker|2008|pp=134–140}}. See also {{harvnb|Clark|1930|pp=42–50}}. A slightly more explicit description of the kuṭṭaka was later given in [[Brahmagupta]], ''Brāhmasphuṭasiddhānta'', XVIII, 3–5 (in {{harvnb|Colebrooke|1817|p=325}}, cited in {{harvnb|Clark|1930|p=42}}).</ref> this is a procedure close to (a generalisation of) the Euclidean algorithm, which was probably discovered independently in India.{{sfn|Mumford|2010|p=388}} Āryabhaṭa seems to have had in mind applications to astronomical calculations.{{sfn|Plofker|2008|p=119}}
 
Brahmagupta (628 AD) started the systematic study of indefinite quadratic equations—in particular, the misnamed [[Pell's equation|Pell equation]], in which [[Archimedes]] may have first been interested, and which did not start to be solved in the West until the time of Fermat and Euler. Later Sanskrit authors would follow, using Brahmagupta's technical terminology. A general procedure (the [[Chakravala method|chakravala]], or "cyclic method") for solving Pell's equation was finally found by [[Jayadeva (mathematician)|Jayadeva]] (cited in the eleventh century; his work is otherwise lost); the earliest surviving exposition appears in [[Bhāskara II]]'s Bīja-gaṇita (twelfth century).{{sfn|Plofker|2008|p=194}}
 
Indian mathematics remained largely unknown in Europe until the late eighteenth century;{{sfn|Plofker|2008|p=283}} Brahmagupta and Bhāskara's work was translated into English in 1817 by [[Henry Thomas Colebrooke|Henry Colebrooke]].{{sfn|Colebrooke|1817}}
 
====Arithmetic in the Islamic golden age====
{{Further|Mathematics in medieval Islam|Islamic Golden Age}}
 
[[File:Hevelius Selenographia frontispiece.png|upright|right|thumb|[[Al-Haytham]] as seen by the West: on the frontispiece of ''[[Selenographia]]'' Alhasen{{sic}} represents knowledge through reason and Galileo knowledge through the senses.]]
 
In the early ninth century, the caliph [[Al-Ma'mun]] ordered translations of many Greek mathematical works and at least one Sanskrit work (the ''Sindhind'', which may<ref>{{harvnb|Colebrooke|1817|p=lxv}}, cited in {{harvnb|Hopkins|1990|p=302}}. See also the preface in
{{harvnb|Sachau|1888}} cited in {{harvnb|Smith|1958|pp=168}}</ref> or may not<ref name="Plofnot">{{harvnb|Pingree|1968|pp=97–125}}, and {{harvnb|Pingree|1970|pp=103–123}}, cited in {{harvnb|Plofker|2008|p=256}}.</ref> be Brahmagupta's [[Brahmasphutasiddhanta|Brāhmasphuṭasiddhānta]]).
Diophantus's main work, the ''Arithmetica'', was translated into Arabic by [[Qusta ibn Luqa]] (820–912).
Part of the treatise ''al-Fakhri'' (by [[al-Karaji|al-Karajī]], 953 – ca. 1029) builds on it to some extent. According to Rashed Roshdi, Al-Karajī's contemporary [[Ibn al-Haytham]] knew{{sfn|Rashed|1980|pp=305–321}} what would later be called [[Wilson's theorem]].
 
====Western Europe in the Middle Ages====
Other than a treatise on squares in arithmetic progression by [[Fibonacci]]—who traveled and studied in north Africa and Constantinople—no number theory to speak of was done in western Europe during the Middle Ages. Matters started to change in Europe in the late [[Renaissance]], thanks to a renewed study of the works of Greek antiquity. A catalyst was the textual emendation and translation into Latin of Diophantus' ''Arithmetica''.<ref>[[Claude Gaspard Bachet de Méziriac|Bachet]], 1621, following a first attempt by [[Guilielmus Xylander|Xylander]], 1575</ref>
<!--Fibonaaci sequence, unknown author of 1486 ms, Luca Pacioli.. -->
 
===Early modern number theory===
====Fermat====
[[Image:Pierre de Fermat.png|thumb|right|upright|[[Pierre de Fermat]]]]
 
[[Pierre de Fermat]] (1607–1665) never published his writings; in particular, his work on number theory is contained almost entirely in letters to mathematicians and in private marginal notes.{{sfn|Weil|1984|pp=45–46}} In his notes and letters, he scarcely wrote any proofs—he had no models in the area.<ref>{{harvnb|Weil|1984|p=118}}. This was more so in number theory than in other areas (remark in {{harvnb|Mahoney|1994|p=284}}). Bachet's own proofs were "ludicrously clumsy" {{harv|Weil|1984|p=33}}.</ref>


Over his lifetime, Fermat made the following contributions to the field:
In the early ninth century, the caliph [[al-Ma'mun]] ordered translations of many Greek mathematical works and at least one Sanskrit work.<ref>{{harvnb|Colebrooke|1817|p=lxv}}, cited in {{harvnb|Hopkins|1990|p=302}}. See also the preface in
* One of Fermat's first interests was [[perfect number]]s (which appear in Euclid, ''Elements'' IX) and [[amicable numbers]];<ref group="note">Perfect and especially amicable numbers are of little or no interest nowadays. The same was not true in medieval times—whether in the West or the Arab-speaking world—due in part to the importance given to them by the Neopythagorean (and hence mystical) [[Nicomachus of Gerasa|Nicomachus]] (ca. 100 CE), who wrote a primitive but influential "[[Introduction to Arithmetic]]". See {{harvnb|van der Waerden|1961|loc=Ch. IV}}.</ref> these topics led him to work on integer [[divisor]]s, which were from the beginning among the subjects of the correspondence (1636 onwards) that put him in touch with the mathematical community of the day.<ref>{{harvnb|Mahoney|1994|pp=48, 53–54}}. The initial subjects of Fermat's correspondence included divisors ("aliquot parts") and many subjects outside number theory; see the list in the letter from Fermat to Roberval, 22.IX.1636, {{harvnb|Tannery|Henry|1891|loc=Vol. II, pp. 72, 74}}, cited in {{harvnb|Mahoney|1994|p=54}}.</ref>
{{harvnb|Sachau|Bīrūni|1888}} cited in {{harvnb|Smith|1958|pp=168}}</ref><ref name="Plofnot">{{harvnb|Pingree|1968|pp=97–125}}, and {{harvnb|Pingree|1970|pp=103–123}}, cited in {{harvnb|Plofker|2008|p=256}}.</ref> Diophantus's main work, the ''Arithmetica'', was translated into Arabic by [[Qusta ibn Luqa]] (820–912).
* In 1638, Fermat claimed, without proof, that all whole numbers can be expressed as the sum of four squares or fewer.<ref>{{Cite book|url=https://books.google.com/books?id=5tFFDwAAQBAJ|title=Numbers and Measurements|last1=Faulkner|first1=Nicholas|last2=Hosch|first2=William L.|date=2017|publisher=Encyclopaedia Britannica|isbn=978-1538300428|language=en|access-date=2019-08-06|archive-date=2023-03-01|archive-url=https://web.archive.org/web/20230301144254/https://books.google.com/books?id=5tFFDwAAQBAJ|url-status=live}}</ref>
Part of the treatise ''al-Fakhri'' (by [[al-Karajī]], 953&nbsp;– c.&nbsp;1029) builds on it to some extent. According to Rashed Roshdi, Al-Karajī's contemporary [[Ibn al-Haytham]] knew{{sfn|Rashed|1980|pp=305–321}} what would later be called [[Wilson's theorem]]. Other than a treatise on squares in arithmetic progression by [[Fibonacci]] no number theory to speak of was done in western Europe during the Middle Ages. Matters started to change in Europe in the late [[Renaissance]], thanks to a renewed study of the works of Greek antiquity. A catalyst was the textual emendation and translation into Latin of Diophantus' ''Arithmetica''.<ref>[[Bachet]], 1621, following a first attempt by [[Guilielmus Xylander|Xylander]], 1575</ref>
* [[Fermat's little theorem]] (1640):<ref>{{harvnb|Tannery|Henry|1891|loc=Vol. II, p. 209}}, Letter XLVI from Fermat to Frenicle, 1640,
cited in {{harvnb|Weil|1984|p=56}}</ref> if ''a'' is not divisible by a prime ''p'', then <math>a^{p-1} \equiv 1 \bmod p.</math><ref group="note">Here, as usual, given two integers ''a'' and ''b'' and a non-zero integer ''m'', we write <math>a \equiv b \bmod m</math> (read "''a'' is congruent to ''b'' modulo ''m''") to mean that ''m'' divides ''a''&nbsp;−&nbsp;''b'', or, what is the same, ''a'' and ''b'' leave the same residue when divided by ''m''. This notation is actually much later than Fermat's; it first appears in section 1 of [[Gauss]]'s [[Disquisitiones Arithmeticae]]. Fermat's little theorem is a consequence of the [[Lagrange's theorem (group theory)|fact]] that the [[Order (group theory)|order]] of an element of a group divides the [[Order (group theory)|order]] of the group. The modern proof would have been within Fermat's means (and was indeed given later by Euler), even though the modern concept of a group came long after Fermat or Euler. (It helps to know that inverses exist modulo ''p'', that is, given ''a'' not divisible by a prime ''p'', there is an integer ''x'' such that <math> x a \equiv 1 \bmod p</math>); this fact (which, in modern language, makes the residues mod ''p'' into a group, and which was already known to Āryabhaṭa; see [[#Indian school: Āryabhaṭa, Brahmagupta, Bhāskara|above]]) was familiar to Fermat thanks to its rediscovery by [[Claude Gaspard Bachet de Méziriac|Bachet]] {{harv|Weil|1984|p=7}}. Weil goes on to say that Fermat would have recognised that Bachet's argument is essentially Euclid's algorithm.</ref>
* If ''a'' and ''b'' are [[Coprime integers|coprime]], then <math>a^2 + b^2</math> is not divisible by any prime congruent to −1 modulo 4;<ref>{{harvnb|Tannery|Henry|1891|loc=Vol. II, p. 204}}, cited in {{harvnb|Weil|1984|p=63}}. All of the following citations from Fermat's ''Varia Opera'' are taken from {{harvnb|Weil|1984|loc=Chap. II}}. The standard Tannery & Henry work includes a revision of Fermat's posthumous ''Varia Opera Mathematica'' originally prepared by his son {{harv|Fermat|1679}}.</ref> and every prime congruent to 1 modulo 4 can be written in the form <math>a^2 + b^2</math>.{{sfn|Tannery|Henry|1891|loc=Vol. II, p. 213}} These two statements also date from 1640; in 1659, Fermat stated to Huygens that he had proven the latter statement by the [[Proof by infinite descent|method of infinite descent]].{{sfn|Tannery|Henry|1891|loc=Vol. II, p. 423}}
* In 1657, Fermat posed the problem of solving <math>x^2 - N y^2 = 1</math> as a challenge to English mathematicians. The problem was solved in a few months by Wallis and Brouncker.{{sfn|Weil|1984|p=92}} Fermat considered their solution valid, but pointed out they had provided an algorithm without a proof (as had Jayadeva and Bhaskara, though Fermat was not aware of this). He stated that a proof could be found by infinite descent.
* Fermat stated and proved (by infinite descent) in the appendix to ''Observations on Diophantus'' (Obs. XLV){{sfn |Tannery|Henry|1891|loc=Vol. I, pp. 340–341}} that <math>x^{4} + y^{4} = z^{4}</math> has no non-trivial solutions in the integers. Fermat also mentioned to his correspondents that <math>x^3 + y^3 = z^3</math> has no non-trivial solutions, and that this could also be proven by infinite descent.{{sfn|Weil|1984|p=115}} The first known proof is due to Euler (1753; indeed by infinite descent).{{sfn|Weil|1984|pp=115–116}}
* Fermat claimed ([[Fermat's Last Theorem]]) to have shown there are no solutions to <math>x^n + y^n = z^n</math> for all <math>n\geq 3</math>; this claim appears in his annotations in the margins of his copy of Diophantus.


====Euler====
French mathematician [[Pierre de Fermat]] (1607–1665) never published his writings but communicated through correspondence and wrote in marginal notes instead.{{sfn|Weil|1984|pp=45–46}} His contributions to number theory brought renewed interest in the field in Europe. He conjectured [[Fermat's little theorem]], a basic result in modular arithmetic, and [[Fermat's Last Theorem]], as well as proved [[Fermat's right triangle theorem]].<ref name=":7"/><ref>{{Cite web |title=Number theory {{!}} Definition, Topics, & History {{!}} Britannica |url=https://www.britannica.com/science/number-theory |access-date=2025-06-28 |website=www.britannica.com |language=en}}</ref> He also studied prime numbers, the [[four-square theorem]], and [[Pell's equations]].<ref>{{Cite encyclopedia |url=https://books.google.com/books?id=5tFFDwAAQBAJ |title=Numbers and Measurements |last1=Faulkner |first1=Nicholas |last2=Hosch |first2=William L. |date=2017 |encyclopedia=Encyclopaedia Britannica |isbn=978-1-5383-0042-8 |access-date=2019-08-06}}</ref>{{sfn|Weil|1984|p=92}}
[[Image:Leonhard Euler.jpg|thumb|upright|Leonhard Euler]]


The interest of [[Leonhard Euler]] (1707–1783) in number theory was first spurred in 1729, when a friend of his, the amateur<ref group="note">Up to the second half of the seventeenth century, academic positions were very rare, and most mathematicians and scientists earned their living in some other way {{harv|Weil|1984|pp=159, 161}}. (There were already some recognisable features of professional ''practice'', viz., seeking correspondents, visiting foreign colleagues, building private libraries {{harv|Weil|1984|pp=160–161}}. Matters started to shift in the late 17th century {{harv|Weil|1984|p=161}}; scientific academies were founded in England (the [[Royal Society]], 1662) and France (the [[French Academy of Sciences|Académie des sciences]], 1666) and [[Russian Academy of Sciences|Russia]] (1724). Euler was offered a position at this last one in 1726; he accepted, arriving in St. Petersburg in 1727 ({{harvnb|Weil|1984|p=163}} and
The interest of [[Leonhard Euler]] (1707–1783) in number theory was first spurred in 1729, when a friend of his, the amateur<ref group="note">Up to the second half of the seventeenth century, academic positions were very rare, and most mathematicians and scientists earned their living in some other way {{harv|Weil|1984|pp=159, 161}}. (There were already some recognisable features of professional ''practice'', viz., seeking correspondents, visiting foreign colleagues, building private libraries {{harv|Weil|1984|pp=160–161}}. Matters started to shift in the late seventeenth century {{harv|Weil|1984|p=161}}; scientific academies were founded in England (the [[Royal Society]], 1662) and France (the [[Académie des sciences]], 1666) and [[Russian Academy of Sciences|Russia]] (1724). Euler was offered a position at this last one in 1726; he accepted, arriving in St. Petersburg in 1727 ({{harvnb|Weil|1984|p=163}} and
{{harvnb|Varadarajan|2006|p=7}}).
{{harvnb|Varadarajan|2006|p=7}}).
In this context, the term ''amateur'' usually applied to Goldbach is well-defined and makes some sense: he has been described as a man of letters who earned a living as a spy {{harv|Truesdell|1984|p=xv}}; cited in {{harvnb|Varadarajan|2006|p=9}}). Notice, however, that Goldbach published some works on mathematics and sometimes held academic positions.</ref> [[Christian Goldbach|Goldbach]], pointed him towards some of Fermat's work on the subject.{{sfn|Weil|1984|pp=2, 172}}{{sfn|Varadarajan|2006|p=9}} This has been called the "rebirth" of modern number theory,{{sfn|Weil|1984|pp=1–2}} after Fermat's relative lack of success in getting his contemporaries' attention for the subject.<ref>{{harvnb|Weil|1984|p=2}} and {{harvnb|Varadarajan|2006|p=37}}</ref> Euler's work on number theory includes the following:<ref>{{harvnb|Varadarajan|2006|p=39}} and {{harvnb|Weil|1984|pp=176–189}}</ref>
In this context, the term ''amateur'' usually applied to Goldbach is well-defined and makes some sense: he has been described as a man of letters who earned a living as a spy {{harv|Truesdell|1984|p=xv}}; cited in {{harvnb|Varadarajan|2006|p=9}}). Notice, however, that Goldbach published some works on mathematics and sometimes held academic positions.</ref> [[Christian Goldbach]], pointed him towards some of Fermat's work on the subject.{{sfn|Weil|1984|pp=2, 172}}{{sfn|Varadarajan|2006|p=9}} This has been called the "rebirth" of modern number theory,{{sfn|Weil|1984|pp=1–2}} after Fermat's relative lack of success in getting his contemporaries' attention for the subject.<ref>{{harvnb|Weil|1984|p=2}} and {{harvnb|Varadarajan|2006|p=37}}</ref> He proved Fermat's assertions, including [[Fermat's little theorem]]; made initial work towards a proof that every integer is the sum of four squares;{{sfn|Weil|1984|pp=178–179}} and specific cases of Fermat's Last Theorem.<ref>{{harvnb|Varadarajan|2006|p=39}} and {{harvnb|Weil|1984|pp=176–189}}</ref> He wrote on the link between [[simple continued fraction|continued fractions]] and Pell's equation.<ref name="Eulpell">{{harvnb|Weil|1984|p=174}}. Euler was generous in giving credit to others {{harv|Varadarajan|2006|p=14}}, not always correctly.</ref>{{sfn|Weil|1984|p=183}} He made the first steps towards analytic number theory.<ref>{{harvnb|Varadarajan|2006|pp=45–55}}; see also chapter III.</ref>
* ''Proofs for Fermat's statements.'' This includes [[Fermat's little theorem]] (generalised by Euler to non-prime moduli); the fact that <math>p = x^2 + y^2</math> if and only if <math>p\equiv 1 \bmod 4</math>; initial work towards a proof that every integer is the sum of four squares (the first complete proof is by [[Joseph-Louis Lagrange]] (1770), soon improved by Euler himself{{sfn|Weil|1984|pp=178–179}}); the lack of non-zero integer solutions to <math>x^4 + y^4 = z^2</math> (implying the case ''n=4'' of Fermat's last theorem, the case ''n=3'' of which Euler also proved by a related method).
* ''[[Pell's equation]]'', first misnamed by Euler.<ref name="Eulpell">{{harvnb|Weil|1984|p=174}}. Euler was generous in giving credit to others {{harv|Varadarajan|2006|p=14}}, not always correctly.</ref> He wrote on the link between continued fractions and Pell's equation.{{sfn|Weil|1984|p=183}}
* ''First steps towards analytic number theory.'' In his work of sums of four squares, [[Partition function (number theory)|partitions]], [[pentagonal numbers]], and the [[Distribution (number theory)|distribution]] of prime numbers, Euler pioneered the use of what can be seen as analysis (in particular, infinite series) in number theory. Since he lived before the development of [[complex analysis]], most of his work is restricted to the formal manipulation of [[power series]]. He did, however, do some very notable (though not fully rigorous) early work on what would later be called the [[Riemann zeta function]].<ref>{{harvnb|Varadarajan|2006|pp=45–55}}; see also chapter III.</ref>
* ''Quadratic forms''. Following Fermat's lead, Euler did further research on the question of which primes can be expressed in the form <math>x^2 + N y^2</math>, some of it prefiguring [[quadratic reciprocity]].{{sfn|Varadarajan|2006|pp=44–47}}{{sfn|Weil|1984|pp=177–179}}{{sfn|Edwards|1983|pp=285–291}}
* ''Diophantine equations''. Euler worked on some Diophantine equations of genus 0 and 1.{{sfn|Varadarajan|2006|pp=55–56}}{{sfn|Weil|1984|pp=179–181}} In particular, he studied Diophantus's work; he tried to systematise it, but the time was not yet ripe for such an endeavour—algebraic geometry was still in its infancy.{{sfn|Weil|1984|p=181}} He did notice there was a connection between Diophantine problems and [[elliptic integral]]s,{{sfn|Weil|1984|p=181}} whose study he had himself initiated.
[[File:Andrew wiles1-3.jpg|thumb|upright|"Here was a problem, that I, a ten-year-old, could understand, and I knew from that moment that I would never let it go. I had to solve it."<ref name=pbs>{{cite web|url=https://www.pbs.org/wgbh/nova/physics/andrew-wiles-fermat.html|title=Andrew Wiles on Solving Fermat|date=November 2000 |publisher=[[WGBH-TV|WGBH]]|access-date=16 March 2016|archive-date=17 March 2016|archive-url=https://web.archive.org/web/20160317012127/http://www.pbs.org/wgbh/nova/physics/andrew-wiles-fermat.html|url-status=live}}</ref> —Sir [[Andrew Wiles]] about [[Wiles's proof of Fermat's Last Theorem|his proof]] of [[Fermat's Last Theorem]].]]


====Lagrange, Legendre, and Gauss====
Three European contemporaries continued the work in elementary number theory. [[Joseph-Louis Lagrange]] (1736–1813) gave full proofs of the [[four-square theorem]], [[Wilson's theorem]], and developed the basic theory of Pell's equations. [[Adrien-Marie Legendre]] (1752–1833) stated the [[Quadratic reciprocity|law of quadratic reciprocity.]] He also conjectured what amounts to the [[prime number theorem]] and [[Dirichlet's theorem on arithmetic progressions]]. He gave a full treatment of the equation <math>a x^2 + b y^2 + c z^2 = 0</math>.{{sfn|Weil|1984|pp=327–328}} In his old age, he was the first to prove Fermat's Last Theorem for <math>n=5</math>.{{sfn|Weil|1984|pp=337–338}} [[Carl Friedrich Gauss]] (1777–1855) wrote ''[[Disquisitiones Arithmeticae]]'' (1801), which had an immense influence in the area of number theory and set its agenda for much of the 19th century. Gauss proved in this work the law of [[quadratic reciprocity]]{{sfn|Weil|1984|pp=332–334}} and developed the theory of quadratic forms. He also introduced some basic notation to [[congruences]] and devoted a section to computational matters, including primality tests.{{sfn|Goldstein|Schappacher|2007|p=14}} He established a link between [[roots of unity]] and number theory.<ref>From the preface of ''Disquisitiones Arithmeticae''; the translation is taken from {{harvnb|Goldstein|Schappacher|2007|p=16}}</ref> In this way, Gauss arguably made forays towards [[Évariste Galois]]'s work and the area [[algebraic number theory]].
[[Image:Disqvisitiones-800.jpg|upright|150px|thumb|Carl Friedrich Gauss's Disquisitiones Arithmeticae, first edition]]


[[Joseph-Louis Lagrange]] (1736–1813) was the first to give full proofs of some of Fermat's and Euler's work and observations—for instance, the [[Lagrange's four-square theorem|four-square theorem]] and the basic theory of the misnamed "Pell's equation" (for which an algorithmic solution was found by Fermat and his contemporaries, and also by Jayadeva and Bhaskara II before them.) He also studied [[quadratic form]]s in full generality (as opposed to <math>m X^2 + n Y^2</math>)—defining their equivalence relation, showing how to put them in reduced form, etc.
[[File:Georg_Friedrich_Bernhard_Riemann.jpeg|thumb|alt=Photograph of Bernhard Reimann.|The Riemann hypothesis is of interest in analytic number theory.]]
Starting early in the nineteenth century, the following developments gradually took place:
* The rise to self-consciousness of number theory (or ''higher arithmetic'') as a field of study.<ref>See the discussion in section 5 of {{harvnb|Goldstein|Schappacher|2007}}. Early signs of self-consciousness are present already in letters by Fermat: thus his remarks on what number theory is, and how "Diophantus's work [...] does not really belong to [it]" (quoted in {{harvnb|Weil|1984|p=25}}).</ref>
* The development of much of modern mathematics necessary for basic modern number theory: [[complex analysis]], [[group theory]], [[Galois theory]]—accompanied by greater rigor in analysis and abstraction in algebra.
* The rough subdivision of number theory into its modern subfields—in particular, [[analytic number theory|analytic]] and algebraic number theory.


[[Adrien-Marie Legendre]] (1752–1833) was the first to state the law of quadratic reciprocity. He also conjectured what amounts to the [[prime number theorem]] and [[Dirichlet's theorem on arithmetic progressions]]. He gave a full treatment of the equation <math>a x^2 + b y^2 + c z^2 = 0</math>{{sfn|Weil|1984|pp=327–328}} and worked on quadratic forms along the lines later developed fully by Gauss.{{sfn|Weil|1984|pp=332–334}} In his old age, he was the first to prove Fermat's Last Theorem for <math>n=5</math> (completing work by [[Peter Gustav Lejeune Dirichlet]], and crediting both him and [[Sophie Germain]]).{{sfn|Weil|1984|pp=337–338}}
Algebraic number theory may be said to start with the study of reciprocity and [[cyclotomy]], but truly came into its own with the development of [[abstract algebra]] and early ideal theory and [[valuation (algebra)|valuation]] theory; see below. A conventional starting point for analytic number theory is [[Dirichlet's theorem on arithmetic progressions]] (1837),{{sfn|Apostol|1976|p=7}}{{sfn|Davenport|Montgomery|2000|p=1}} whose proof introduced [[L-functions]] and involved some asymptotic analysis and a limiting process on a real variable.<ref>See the proof in {{harvnb|Davenport|Montgomery|2000|loc=section 1}}</ref> The first use of analytic ideas in number theory actually goes back to Euler (1730s),{{sfn|Iwaniec|Kowalski|2004|p=1}}{{sfn|Varadarajan|2006|loc=sections 2.5, 3.1 and 6.1}} who used formal power series and non-rigorous (or implicit) limiting arguments. The use of ''complex'' analysis in number theory comes later: the work of [[Bernhard Riemann]] (1859) on the [[Riemann zeta function|zeta function]] is the canonical starting point;{{sfn|Granville|2008|pp=322–348}} [[Jacobi's four-square theorem]] (1839), which predates it, belongs to an initially different strand that has by now taken a leading role in analytic number theory ([[modular form]]s).<ref>See the comment on the importance of modularity in {{harvnb|Iwaniec|Kowalski|2004|p=1}}</ref>


[[File:Carl Friedrich Gauss.jpg|thumb|left|Carl Friedrich Gauss]]
The [[American Mathematical Society]] awards the ''[[Cole Prize]] in Number Theory''. Moreover, number theory is one of the three mathematical subdisciplines rewarded by the ''[[Fermat Prize]]''.


In his ''Disquisitiones Arithmeticae'' (1798), Carl Friedrich Gauss (1777–1855) proved the law of [[quadratic reciprocity]] and developed the theory of quadratic forms (in particular, defining their composition). He also introduced some basic notation ([[congruences]]) and devoted a section to computational matters, including primality tests.{{sfn|Goldstein|Schappacher|2007|p=14}} The last section of the ''Disquisitiones'' established a link between [[roots of unity]] and number theory:
== Main subdivisions ==
<blockquote>The theory of the division of the circle...which is treated in sec. 7 does not belong by itself to arithmetic, but its principles can only be drawn from higher arithmetic.<ref>From the preface of ''Disquisitiones Arithmeticae''; the translation is taken from {{harvnb|Goldstein|Schappacher|2007|p=16}}</ref></blockquote>
=== Elementary number theory ===
[[File:Paul Erdos with Terence Tao.jpg|thumb|upright=1.22|alt=Paul Erdős (left) teaching a young Terence Tao (right).|Number theorists [[Paul Erdős]] and [[Terence Tao]] in 1985, when Erdős was 72 and Tao was 10]]


In this way, Gauss arguably made a first foray towards both [[Évariste Galois]]'s work and [[algebraic number theory]].
Elementary number theory deals with the topics in number theory by means of basic methods in arithmetic.<ref name=":1">{{Cite book |last=Tanton |first=James |title=Encyclopedia of Mathematics |publisher=Facts On File |year=2005 |isbn=0-8160-5124-0 |location=New York |pages=359–60 |language=en |chapter=Number theory}}</ref> Its primary subjects of study are [[divisibility]], [[factorization]], and [[primality]], as well as [[Modular arithmetic|congruences]] in [[modular arithmetic]].<ref>{{Cite book |last=Nathanson |first=Melvyn B. |title=Elementary Methods in Number Theory |publisher=Springer |year=2000 |isbn=0-387-98912-9 |language=en |chapter=Preface}}</ref><ref name=":3" /> Other topics in elementary number theory include [[Diophantine equation|Diophantine equations]], [[continued fractions]], [[Integer partition|integer partitions]], and [[Diophantine approximation|Diophantine approximations]].<ref name=":2">{{Cite web |last=Bukhshtab |first=A.A. |date=2014 |title=Elementary number theory |url=https://encyclopediaofmath.org/wiki/Elementary_number_theory |access-date=2025-05-03 |website=Encyclopedia of Mathematics |publisher=Springer}}</ref>


===Maturity and division into subfields===
Arithmetic is the study of numerical operations and investigates how numbers are combined and transformed using the arithmetic operations of [[addition]], [[subtraction]], [[multiplication]], [[Division (mathematics)|division]], [[exponentiation]], extraction of [[Nth root|roots]], and [[logarithm]]s. Multiplication, for instance, is an operation that combines two numbers, referred to as factors, to form a single number, termed the [[Product (mathematics)|product]], such as <math>2 \times 3 = 6</math>.<ref>{{multiref|{{harvnb|Romanowski|2008|p=303}}|{{harvnb|Musser|Peterson|Burger|2013|pp=[https://books.google.com/books?id=8jh7DwAAQBAJ&pg=PA101 101–102]}}}}</ref>
[[Image:ErnstKummer.jpg|upright|thumb|[[Ernst Kummer]]]]
[[Image:Peter Gustav Lejeune Dirichlet.jpg|upright|left|thumb|[[Peter Gustav Lejeune Dirichlet]]]]


Starting early in the nineteenth century, the following developments gradually took place:
Divisibility is a property between two nonzero integers related to division. An integer <math>a</math> is said to be divisible by a nonzero integer <math>b</math> if <math>a</math> is a multiple of <math>b</math>; that is, if there exists an integer <math>q</math> such that <math>a = bq</math>. An equivalent formulation is that <math>b</math> divides <math>a</math> and is denoted by a vertical bar, which in this case is <math>b | a</math>. Conversely, if this were not the case, then <math>a</math> would not be divided evenly by <math>b</math>, resulting in a remainder. [[Euclid's division lemma]] asserts that <math>a</math> and <math>b</math> can generally be written as <math>a = bq + r</math>, where the remainder <math>r</math> accounts for the smallest positive leftover quantity. Elementary number theory studies [[divisibility rules]] in order to quickly identify if a given integer is divisible by a fixed divisor. For instance, it is known that any integer is divisible by 3 if its decimal [[digit sum]] is divisible by 3.<ref name="Richmond-Richmond-2009">Richmond & Richmond (2009), [{{Google books|plainurl=y|id=HucyKYx0_WwC|page=102|text=divisible by}} Section 3.4 (Divisibility Tests), p. 102–108]</ref><ref name=":4"/><ref>{{Cite book |last=Ore |first=Oystein |title=Number Theory and Its History |publisher=McGraw-Hill |year=1948 |edition=1st |language=en}}</ref>
* The rise to self-consciousness of number theory (or ''higher arithmetic'') as a field of study.<ref>See the discussion in section 5 of {{harvnb|Goldstein|Schappacher|2007}}. Early signs of self-consciousness are present already in letters by Fermat: thus his remarks on what number theory is, and how "Diophantus's work [...] does not really belong to [it]" (quoted in {{harvnb|Weil|1984|p=25}}).</ref>
[[File:Continued fraction sqrt3.svg|thumb|alt=√3 = 1 + 1/(1 + 1/(2 + 1/(1 + 1/(2 + 1/...))))|Example of a continued fraction.]]
* The development of much of modern mathematics necessary for basic modern number theory: [[complex analysis]], [[group theory]], [[Galois theory]]—accompanied by greater rigor in analysis and abstraction in algebra.
A common divisor of several nonzero integers is an integer that divides all of them. The [[greatest common divisor]] (gcd) is the largest of such divisors. Two integers are said to be coprime or relatively prime to one another if their greatest common divisor, and simultaneously their only divisor, is <math>1</math>. The [[Euclidean algorithm]] computes the greatest common divisor of two integers <math>a,b</math> by means of repeatedly applying the division lemma and shifting the divisor and remainder after every step. The algorithm [[Extended Euclidean algorithm|can be extended]] to solve a special case of [[Linear Diophantine equation|linear Diophantine equations]] <math>ax + by = 1</math>. A Diophantine equation has several unknowns and integer coefficients. Another kind of Diophantine equation is described in the [[Pythagorean theorem]], <math>x^2 + y^2 = z^2</math>, whose solutions are called Pythagorean triples if they are all integers.<ref name=":4"/><ref name=":6"/> Another kind of expression is the [[continued fraction]], which writes a sum of an integer and a fraction whose denominator is another such sum.<ref>{{Cite book |last=Watkins |first=John J. |title=Number Theory: A Historical Approach |publisher=Princeton University Press |year=2014 |isbn=978-0-691-15940-9 |pages=76–80 |language=en |chapter=Divisibility}}</ref>
* The rough subdivision of number theory into its modern subfields—in particular, [[analytic number theory|analytic]] and algebraic number theory.


Algebraic number theory may be said to start with the study of reciprocity and [[root of unity|cyclotomy]], but truly came into its own with the development of [[abstract algebra]] and early ideal theory and [[valuation (algebra)|valuation]] theory; see below. A conventional starting point for analytic number theory is [[Dirichlet's theorem on arithmetic progressions]] (1837),{{sfn|Apostol|1976|p=7}}{{sfn|Davenport|Montgomery|2000|p=1}} whose proof introduced [[L-functions]] and involved some asymptotic analysis and a limiting process on a real variable.<ref>See the proof in {{harvnb|Davenport|Montgomery|2000|loc=section 1}}</ref> The first use of analytic ideas in number theory actually goes back to Euler (1730s),{{sfn|Iwaniec|Kowalski|2004|p=1}}{{sfn|Varadarajan|2006|loc=sections 2.5, 3.1 and 6.1}} who used formal power series and non-rigorous (or implicit) limiting arguments. The use of ''complex'' analysis in number theory comes later: the work of [[Bernhard Riemann]] (1859) on the [[Riemann zeta function|zeta function]] is the canonical starting point;{{sfn|Granville|2008|pp=322–348}} [[Jacobi's four-square theorem]] (1839), which predates it, belongs to an initially different strand that has by now taken a leading role in analytic number theory ([[modular form]]s).<ref>See the comment on the importance of modularity in {{harvnb|Iwaniec|Kowalski|2004|p=1}}</ref>
Elementary number theory studies the divisibility properties of integers such as [[Parity (mathematics)|parity]] (even and odd numbers), [[prime numbers]], and [[perfect numbers]]. Important number-theoretic functions include the [[Divisor function|divisor-counting function]], the [[divisor summatory function]] and its modifications, and [[Euler's totient function]]. A [[prime number]] is an integer greater than <math>1</math> whose only positive divisors are <math>1</math> and the prime itself. A positive integer greater than <math>1</math> that is not prime is called a composite number. [[Euclid's theorem]] demonstrates that there are infinitely many prime numbers that comprise the set <math>\{2,3,5,7,11,\cdots\}</math>. The [[sieve of Eratosthenes]] was devised as an efficient algorithm for identifying all primes up to a given natural number by eliminating all composite numbers.<ref>{{Cite book |last=Nathanson |first=Melvyn B. |title=Elementary Methods in Number Theory |publisher=Springer |year=2000 |isbn=0-387-98912-9 |language=en |chapter=Divisibility and Primes}}</ref>


The history of each subfield is briefly addressed in its own section below; see the main article of each subfield for fuller treatments. Many of the most interesting questions in each area remain open and are being actively worked on.
[[Factorization]] is a method of expressing a number as a [[Product (mathematics)|product]]. Specifically in number theory, [[integer factorization]] is the decomposition of an integer into a product of integers. The process of repeatedly applying this procedure until all factors are prime is known as [[prime factorization]]. A fundamental property of primes is shown in [[Euclid's lemma]]. It is a consequence of the lemma that if a prime divides a product of integers, then that prime divides at least one of the factors in the product. The [[Fundamental theorem of arithmetic|unique factorization theorem]] is the fundamental theorem of arithmetic that relates to prime factorization. The theorem states that every integer greater than <math>1</math> can be factorised into a product of prime numbers and that this factorisation is unique up to the order of the factors. For example, <math>120</math> is expressed uniquely as <math>2 \times 2 \times 2 \times 3 \times 5</math> or simply <math>2^3 \times 3 \times 5</math>.<ref>{{Cite book |last=Tanton |first=James |title=Encyclopedia of Mathematics |publisher=Facts On File |year=2005 |isbn=0-8160-5124-0 |location=New York |language=en |chapter=Fundamental theorem of arithmetic}}</ref><ref name=":4" />


==Main subdivisions==
[[Modular arithmetic]] works with finite sets of integers and introduces the concepts of congruence and residue classes. A congruence of two integers <math>a, b</math> modulo <math>n</math> (a positive integer called the modulus) is an [[equivalence relation]] whereby <math>n | (a - b)</math> is true. Performing [[Euclidean division]] on both <math>a</math> and <math>n</math>, and on <math>b</math> and <math>n</math>, yields the same remainder. This written as <math display="inline">a \equiv b \pmod{n}</math>. In a manner analogous to the 12-hour clock, the sum of <math>4</math> and <math>9</math> is equal to <math>13</math>, yet congruent to <math>1</math>. A residue class modulo <math>n</math> is a set that contains all integers congruent to a specified <math>r</math> modulo <math>n</math>. For example, <math>6\Z + 1</math> contains all multiples of <math>6</math> incremented by <math>1</math>. Modular arithmetic provides a range of formulas for rapidly solving congruences of very large powers. An influential theorem is [[Fermat's little theorem]], which states that if a prime <math>p</math> is coprime to some integer <math>a</math>, then <math display="inline">a^{p - 1} \equiv 1 \pmod{p}</math> is true. [[Euler's theorem]] extends this to assert that every integer <math>n</math> satisfies the congruence<math display="block">a^{\varphi(n)} \equiv 1 \pmod{n},</math>where Euler's totient function <math>\varphi</math> counts all positive integers up to <math>n</math> that are coprime to <math>n</math>. Modular arithmetic also provides formulas that are used to solve congruences with unknowns in a similar vein to equation solving in algebra, such as the [[Chinese remainder theorem]].<ref>{{Cite book |last=Shoup |first=Victor |title=A Computational Introduction to Number Theory and Algebra |publisher=Cambridge University Press |year=2005 |isbn=978-0-511-11363-5 |language=en}}</ref>
===Elementary number theory===
The term ''[[elementary proof|elementary]]'' generally denotes a method that does not use [[complex analysis]]. For example, the [[prime number theorem]] was first proven using complex analysis in 1896, but an elementary proof was found only in 1949 by [[Paul Erdős|Erdős]] and [[Atle Selberg|Selberg]].{{sfn|Goldfeld|2003}} The term is somewhat ambiguous: for example, proofs based on complex [[Tauberian theorem]]s (for example, [[Wiener–Ikehara theorem|Wiener–Ikehara]]) are often seen as quite enlightening but not elementary, in spite of using [[Fourier analysis]], rather than complex analysis as such. Here as elsewhere, an ''elementary'' proof may be longer and more difficult for most readers than a non-elementary one.
[[File:Paul Erdos with Terence Tao.jpg|thumb|270px|Number theorists [[Paul Erdős]] and [[Terence Tao]] in 1985, when Erdős was 72 and Tao was 10]]
Number theory has the reputation of being a field many of whose results can be stated to the layperson. At the same time, the proofs of these results are not particularly accessible, in part because the range of tools they use is, if anything, unusually broad within mathematics.<ref>See, for example, the initial comment in {{harvnb|Iwaniec|Kowalski|2004|p=1}}.</ref>


===Analytic number theory===
=== Analytic number theory ===
{{main|Analytic number theory}}
{{Main|Analytic number theory}}


[[Image:Complex zeta.jpg|right|thumb|[[Riemann zeta function]] ζ(''s'') in the [[complex plane]]. The color of a point ''s'' gives the value of ζ(''s''): dark colors denote values close to zero and hue gives the value's [[Argument (complex analysis)|argument]].]]
[[File:Complex zeta.jpg|thumb|[[Riemann zeta function]] ζ(''s'') in the [[complex plane]]. The color of a point ''s'' gives the value of ζ(''s''): dark colors denote values close to zero and hue gives the value's [[Argument (complex analysis)|argument]].]]
[[File:ModularGroup-FundamentalDomain.svg|thumb|The action of the [[modular group]] on the [[upper half plane]]. The region in grey is the standard [[fundamental domain]].]]
[[File:ModularGroup-FundamentalDomain.svg|thumb|The action of the [[modular group]] on the [[upper half plane]]. The region in grey is the standard [[fundamental domain]].]]


''Analytic number theory'' may be defined
Analytic number theory, in contrast to elementary number theory, relies on [[complex numbers]] and techniques from analysis and calculus. Analytic number theory may be defined
* in terms of its tools, as the study of the integers by means of tools from [[Real analysis|real]] and [[Complex analysis|complex]] analysis;{{sfn|Apostol|1976|p=7}} or
* in terms of its tools, as the study of the integers by means of tools from [[Real analysis|real]] and [[Complex analysis|complex]] analysis;{{sfn|Apostol|1976|p=7}} or
* in terms of its concerns, as the study within number theory of estimates on size and density, as opposed to identities.<ref>{{harvnb|Granville|2008|loc=section 1}}: "The main difference is that in algebraic number theory [...] one typically considers questions with answers that are given by exact formulas, whereas in analytic number theory [...] one looks for ''good approximations''."</ref>
* in terms of its concerns, as the study within number theory of estimates on the size and density of certain numbers (e.g., primes), as opposed to identities.<ref>{{harvnb|Granville|2008|loc=section 1}}: "The main difference is that in algebraic number theory [...] one typically considers questions with answers that are given by exact formulas, whereas in analytic number theory [...] one looks for ''good approximations''."</ref>
It studies the distribution of primes, behavior of number-theoretic functions, and irrational numbers.<ref>{{Cite web |last=Karatsuba |first=A.A. |date=2014-10-18 |title=Analytic number theory |url=https://encyclopediaofmath.org/wiki/Analytic_number_theory |website=Encyclopedia of Mathematics}}</ref>
 
Number theory has the reputation of being a field many of whose results can be stated to the layperson. At the same time, many of the proofs of these results are not particularly accessible, in part because the range of tools they use is, if anything, unusually broad within mathematics.<ref>See, for example, the initial comment in {{harvnb|Iwaniec|Kowalski|2004|p=1}}.</ref> The following are examples of problems in analytic number theory: the [[prime number theorem]], the [[Goldbach conjecture]], the [[twin prime conjecture]], the [[Hardy–Littlewood conjecture]]s, the [[Waring problem]] and the [[Riemann hypothesis]]. Some of the most important tools of analytic number theory are the [[circle method]], [[sieve theory|sieve methods]] and [[L-functions]] (or, rather, the study of their properties). The theory of [[modular form]]s (and, more generally, [[automorphic forms]]) also occupies an increasingly central place in the toolbox of analytic number theory.<ref>See the remarks in the introduction to {{harvnb|Iwaniec|Kowalski|2004|p=1}}: "However much stronger...".</ref>


Some subjects generally considered to be part of analytic number theory, for example, [[sieve theory]],<ref group="note">Sieve theory figures as one of the main subareas of analytic number theory in many standard treatments; see, for instance, {{harvnb|Iwaniec|Kowalski|2004}} or {{harvnb|Montgomery|Vaughan|2007}}</ref> are better covered by the second rather than the first definition: some of sieve theory, for instance, uses little analysis,<ref group="note">This is the case for small sieves (in particular, some combinatorial sieves such as the [[Brun sieve]]) rather than for [[large sieve]]s; the study of the latter now includes ideas from [[harmonic analysis|harmonic]] and [[functional analysis]].</ref> yet it does belong to analytic number theory.
[[Mathematical analysis|Analysis]] is the branch of mathematics that studies the [[Limit (mathematics)|limit]], defined as the value to which a sequence or function tends as the argument (or index) approaches a specific value. For example, the limit of the sequence <math>0.9, 0.99, 0.999, ...</math> is <math>1</math>. In the context of functions, the limit of <math display="inline">\frac1x</math> as <math>x</math> approaches infinity is <math>0</math>.<ref>{{Cite book |last=Tanton |first=James |title=Encyclopedia of Mathematics |chapter=Limit}}</ref> The complex numbers extend the real numbers with the imaginary unit <math>i</math> defined as the solution to <math>i^2 = -1</math>. Every complex number can be expressed as <math>x + iy</math>, where <math>x</math> is called the real part and <math>y</math> is called the imaginary part.<ref>{{Cite book |last=Weisstein |first=Eric W. |title=CRC Concise Encyclopedia of Mathematics |year=2002 |chapter=Complex Numbers}}</ref>


The following are examples of problems in analytic number theory: the [[prime number theorem]], the [[Goldbach conjecture]] (or the [[twin prime conjecture]], or the [[Hardy–Littlewood conjecture]]s), the [[Waring problem]] and the [[Riemann hypothesis]]. Some of the most important tools of analytic number theory are the [[circle method]], [[sieve theory|sieve methods]] and [[L-functions]] (or, rather, the study of their properties). The theory of [[modular form]]s (and, more generally, [[automorphic forms]]) also occupies an increasingly central place in the toolbox of analytic number theory.<ref>See the remarks in the introduction to {{harvnb|Iwaniec|Kowalski|2004|p=1}}: "However much stronger...".</ref>
The [[distribution of primes]], described by the function <math>\pi</math> that counts all primes up to a given real number, is unpredictable and is a major subject of study in number theory. Elementary formulas for a partial sequence of primes, including [[Lucky numbers of Euler|Euler's prime-generating polynomials]] have been developed. However, these cease to function as the primes become too large. The prime number theorem in analytic number theory provides a formalisation of the notion that prime numbers appear less commonly as their numerical value increases. One distribution states, informally, that the function <math>\frac{x}{\log(x)}</math> approximates <math>\pi(x)</math>. Another distribution involves an offset logarithmic integral which converges to <math>\pi(x)</math> more quickly.<ref name=":5" />
[[File:Riemann_Explicit_Formula.gif|thumb|Corrections to an [[Prime-counting function#Exact form|estimate]] of the prime-counting function using zeros of the zeta function]]
The [[zeta function]] has been demonstrated to be connected to the distribution of primes. It is defined as the series<math display="block"> \zeta(s) = \sum_{n=1}^\infty \frac{1}{n^s} = \frac{1}{1^s} + \frac{1}{2^s} + \frac{1}{3^s} + \cdots</math>that converges if <math> s</math> is greater than <math>1</math>. Euler demonstrated a link involving the infinite product over all prime numbers, expressed as the identity <math display="block">\zeta(s) = \prod_{p \text{ prime}} \left(1 - \frac{1}{p^{s}}\right)^{-1}.</math>Riemann extended the definition to a complex variable and conjectured that all nontrivial cases (<math>0 < \Re(s) < 1</math>) where the function returns a zero are those in which the real part of <math>s</math> is equal to <math display="inline">\frac12</math>. He established a connection between the nontrivial zeroes and the prime-counting function. In what is now recognised as the unsolved [[Riemann hypothesis]], a solution to it would imply direct consequences for understanding the distribution of primes.<ref>{{Cite book |last=Tanton |first=James |title=Encyclopedia of Mathematics |year=2005 |chapter=Zeta function}}</ref>


One may ask analytic questions about [[algebraic number]]s, and use analytic means to answer such questions; it is thus that algebraic and analytic number theory intersect. For example, one may define [[prime ideal]]s (generalizations of [[prime number]]s in the field of algebraic numbers) and ask how many prime ideals there are up to a certain size. This question [[Landau prime ideal theorem|can be answered]] by means of an examination of [[Dedekind zeta function]]s, which are generalizations of the [[Riemann zeta function]], a key analytic object at the roots of the subject.<ref>{{harvnb|Granville|2008|loc=section 3}}: "[Riemann] defined what we now call the Riemann zeta function [...] Riemann's deep work gave birth to our subject [...]"</ref> This is an example of a general procedure in analytic number theory: deriving information about the distribution of a [[sequence]] (here, prime ideals or prime numbers) from the analytic behavior of an appropriately constructed complex-valued function.<ref name=":0">See, for example, {{harvnb|Montgomery|Vaughan|2007}}, p. 1.</ref>
One may ask analytic questions about [[algebraic number]]s, and use analytic means to answer such questions; it is thus that algebraic and analytic number theory intersect. For example, one may define [[prime ideal]]s (generalizations of [[prime number]]s in the field of algebraic numbers) and ask how many prime ideals there are up to a certain size. This question [[Landau prime ideal theorem|can be answered]] by means of an examination of [[Dedekind zeta function]]s, which are generalizations of the [[Riemann zeta function]], a key analytic object at the roots of the subject.<ref>{{harvnb|Granville|2008|loc=section 3}}: "[Riemann] defined what we now call the Riemann zeta function [...] Riemann's deep work gave birth to our subject [...]"</ref> This is an example of a general procedure in analytic number theory: deriving information about the distribution of a [[sequence]] (here, prime ideals or prime numbers) from the analytic behavior of an appropriately constructed complex-valued function.<ref name=":0">See, for example, {{harvnb|Montgomery|Vaughan|2007}}, p. 1.</ref>


===Algebraic number theory===
Elementary number theory works with ''[[elementary proof|elementary proofs]]'', a term that excludes the use of [[complex numbers]] but may include basic analysis.<ref name=":2" /> For example, the [[prime number theorem]] was first proven using complex analysis in 1896, but an elementary proof was found only in 1949 by [[Paul Erdős|Erdős]] and [[Atle Selberg|Selberg]].{{sfn|Goldfeld|2003}} The term is somewhat ambiguous. For example, proofs based on complex [[Tauberian theorem]]s, such as [[Wiener–Ikehara theorem|Wiener–Ikehara]], are often seen as quite enlightening but not elementary despite using [[Fourier analysis]], not complex analysis. Here as elsewhere, an ''elementary'' proof may be longer and more difficult for most readers than a more advanced proof.
{{main|Algebraic number theory}}
 
Some subjects generally considered to be part of analytic number theory (e.g., [[sieve theory]]) are better covered by the second rather than the first definition.<ref group="note">Sieve theory figures as one of the main subareas of analytic number theory in many standard treatments; see, for instance, {{harvnb|Iwaniec|Kowalski|2004}} or {{harvnb|Montgomery|Vaughan|2007}}</ref> Small sieves, for instance, use little analysis and yet still belong to analytic number theory.<ref group="note">This is the case for some combinatorial sieves such as the [[Brun sieve]], rather than for [[Large sieve|large sieves]]. The study of the latter now includes ideas from [[Harmonic analysis|harmonic]] and [[functional analysis]].</ref>
 
=== Algebraic number theory ===
{{Main|Algebraic number theory}}


An ''algebraic number'' is any complex number that is a solution to some polynomial equation <math>f(x)=0</math> with rational coefficients; for example, every solution <math>x</math> of <math>x^5 + (11/2) x^3 - 7 x^2 + 9 = 0 </math> (say) is an algebraic number. Fields of algebraic numbers are also called ''[[algebraic number field]]s'', or shortly ''[[number field]]s''. Algebraic number theory studies algebraic number fields.{{sfn|Milne|2017|p=2}} Thus, analytic and algebraic number theory can and do overlap: the former is defined by its methods, the latter by its objects of study.
An ''algebraic number'' is any [[complex number]] that is a solution to some polynomial equation <math>f(x)=0</math> with rational coefficients; for example, every solution <math>x</math> of <math>x^5 + (11/2) x^3 - 7 x^2 + 9 = 0 </math> is an algebraic number. Fields of algebraic numbers are also called ''[[algebraic number field]]s'', or shortly ''[[number field]]s''. Algebraic number theory studies algebraic number fields.{{sfn|Milne|2017|p=2}}


It could be argued that the simplest kind of number fields (viz., quadratic fields) were already studied by Gauss, as the discussion of quadratic forms in ''Disquisitiones arithmeticae'' can be restated in terms of [[ideal (ring theory)|ideals]] and
It could be argued that the simplest kind of number fields, namely [[Quadratic field|quadratic fields]], were already studied by Gauss, as the discussion of quadratic forms in ''Disquisitiones Arithmeticae'' can be restated in terms of [[ideal (ring theory)|ideals]] and
[[Norm (mathematics)|norms]] in quadratic fields. (A ''quadratic field'' consists of all
[[Norm (mathematics)|norms]] in quadratic fields. (A ''quadratic field'' consists of all
numbers of the form <math> a + b \sqrt{d}</math>, where
numbers of the form <math> a + b \sqrt{d}</math>, where
<math>a</math> and <math>b</math> are rational numbers and <math>d</math>
<math>a</math> and <math>b</math> are rational numbers and <math>d</math>
is a fixed rational number whose square root is not rational.)
is a fixed rational number whose square root is not rational.)
For that matter, the 11th-century [[chakravala method]] amounts—in modern terms—to an algorithm for finding the units of a real quadratic number field. However, neither Bhāskara nor Gauss knew of number fields as such.
For that matter, the eleventh-century [[chakravala method]] amounts—in modern terms—to an algorithm for finding the units of a real quadratic number field. However, neither Bhāskara nor Gauss knew of number fields as such.


The grounds of the subject as we know it were set in the late nineteenth century, when ''ideal numbers'', the ''theory of ideals'' and ''valuation theory'' were developed; these are three complementary ways of dealing with the lack of unique factorisation in algebraic number fields. (For example, in the field generated by the rationals
The grounds of the subject were set in the late nineteenth century, when ''ideal numbers'', the ''theory of ideals'' and ''valuation theory'' were introduced; these are three complementary ways of dealing with the lack of unique factorization in algebraic number fields. (For example, in the field generated by the rationals
and <math> \sqrt{-5}</math>, the number <math>6</math> can be factorised both as <math> 6 = 2 \cdot 3</math> and
and <math> \sqrt{-5}</math>, the number <math>6</math> can be factorised both as <math> 6 = 2 \cdot 3</math> and
<math> 6 = (1 + \sqrt{-5}) ( 1 - \sqrt{-5})</math>; all of <math>2</math>, <math>3</math>, <math>1 + \sqrt{-5}</math> and
<math> 6 = (1 + \sqrt{-5}) ( 1 - \sqrt{-5})</math>; all of <math>2</math>, <math>3</math>, <math>1 + \sqrt{-5}</math> and
<math> 1 - \sqrt{-5}</math>
<math> 1 - \sqrt{-5}</math>
are irreducible, and thus, in a naïve sense, analogous to primes among the integers.) The initial impetus for the development of ideal numbers (by [[Ernst Kummer|Kummer]]) seems to have come from the study of higher reciprocity laws,{{sfn|Edwards|2000|p=79}} that is, generalisations of [[quadratic reciprocity]].
are irreducible, and thus, in a naïve sense, analogous to primes among the integers.) The initial impetus for the development of ideal numbers (by [[Ernst Kummer|Kummer]]) seems to have come from the study of higher reciprocity laws,{{sfn|Edwards|2000|p=79}} that is, generalizations of [[quadratic reciprocity]].


Number fields are often studied as extensions of smaller number fields: a field ''L'' is said to be an ''extension'' of a field ''K'' if ''L'' contains ''K''.
Number fields are often studied as extensions of smaller number fields: a field ''L'' is said to be an ''extension'' of a field ''K'' if ''L'' contains ''K''.
Line 209: Line 126:
with square roots, cubic roots, etc.) if and only if the extension of the rationals by the roots of the equation ''f''(''x'')&nbsp;=&nbsp;0 has a Galois group that is [[solvable group|solvable]]
with square roots, cubic roots, etc.) if and only if the extension of the rationals by the roots of the equation ''f''(''x'')&nbsp;=&nbsp;0 has a Galois group that is [[solvable group|solvable]]
in the sense of group theory. ("Solvable", in the sense of group theory, is a simple property that can be checked easily for finite groups.)</ref> Gal(''L''/''K'') of ''L'' over ''K'' is an [[abelian group]]—are relatively well understood.
in the sense of group theory. ("Solvable", in the sense of group theory, is a simple property that can be checked easily for finite groups.)</ref> Gal(''L''/''K'') of ''L'' over ''K'' is an [[abelian group]]—are relatively well understood.
Their classification was the object of the programme of [[class field theory]], which was initiated in the late 19th century (partly by [[Leopold Kronecker|Kronecker]] and [[Gotthold Eisenstein|Eisenstein]]) and carried out largely in 1900–1950.
Their classification was the object of the programme of [[class field theory]], which was initiated in the late nineteenth century (partly by [[Leopold Kronecker|Kronecker]] and [[Gotthold Eisenstein|Eisenstein]]) and carried out largely in 1900–1950.


An example of an active area of research in algebraic number theory is [[Iwasawa theory]]. The [[Langlands program]], one of the main current large-scale research plans in mathematics, is sometimes described as an attempt to generalise class field theory to non-abelian extensions of number fields.
An example of an active area of research in algebraic number theory is [[Iwasawa theory]]. The [[Langlands program]], one of the main current large-scale research plans in mathematics, is sometimes described as an attempt to generalise class field theory to non-abelian extensions of number fields.


===Diophantine geometry===
=== Diophantine geometry ===
{{main|Diophantine geometry}}
{{Main|Diophantine geometry}}


The central problem of ''Diophantine geometry'' is to determine when a [[Diophantine equation]] has solutions, and if it does, how many. The approach taken is to think of the solutions of an equation as a geometric object.
The central problem of Diophantine geometry is to determine when a [[Diophantine equation]] has integer or rational solutions, and if it does, how many. The approach taken is to think of the solutions of an equation as a geometric object.


For example, an equation in two variables defines a curve in the plane. More generally, an equation, or system of equations, in two or more variables defines a [[algebraic curve|curve]], a [[algebraic surface|surface]] or some other such object in ''n''-dimensional space. In Diophantine geometry, one asks whether there are any ''rational points'' (points all of whose coordinates are rationals) or
For example, an equation in two variables defines a curve in the plane. More generally, an equation or system of equations in two or more variables defines a [[algebraic curve|curve]], a [[algebraic surface|surface]], or some other such object in {{math|''n''}}-dimensional space. In Diophantine geometry, one asks whether there are any ''rational points'' (points all of whose coordinates are rationals) or
''integral points'' (points all of whose coordinates are integers) on the curve or surface. If there are any such points, the next step is to ask how many there are and how they are distributed. A basic question in this direction is if there are finitely
''integral points'' (points all of whose coordinates are integers) on the curve or surface. If there are any such points, the next step is to ask how many there are and how they are distributed. A basic question in this direction is whether there are finitely
or infinitely many rational points on a given curve (or surface).
or infinitely many rational points on a given curve or surface.


In the [[Pythagorean theorem|Pythagorean equation]] <math>x^2+y^2 = 1,</math>
Consider, for instance, the [[Pythagorean equation]] <math>x^2+y^2 = 1</math>. One would like to know its rational solutions, namely <math>(x,y)</math> such that ''x'' and ''y'' are both rational. This is the same as asking for all integer solutions
we would like to study its rational solutions, that is, its solutions
<math>(x,y)</math> such that ''x'' and ''y'' are both rational. This is the same as asking for all integer solutions
to <math>a^2 + b^2 = c^2</math>; any solution to the latter equation gives us a solution <math>x = a/c</math>, <math>y = b/c</math> to the former. It is also the
to <math>a^2 + b^2 = c^2</math>; any solution to the latter equation gives us a solution <math>x = a/c</math>, <math>y = b/c</math> to the former. It is also the
same as asking for all points with rational coordinates on the curve described by <math>x^2 + y^2 = 1</math>. (This curve happens to be a circle of radius 1 around the origin.)
same as asking for all points with rational coordinates on the curve described by <math>x^2 + y^2 = 1</math> (a circle of radius 1 centered on the origin).
 
[[Image:ECClines-3.svg|right|thumb|300px|Two examples of an [[elliptic curve]], that is, a curve of genus 1 having at least one rational point. (Either graph can be seen as a slice of a [[torus]] in four-dimensional space.)]]
 
The rephrasing of questions on equations in terms of points on curves turns out to be felicitous. The finiteness or not of the number of rational or integer points on an algebraic curve—that is, rational or integer solutions to an equation <math>f(x,y)=0</math>, where <math>f</math> is a polynomial in two variables—turns out to depend crucially on the ''genus'' of the curve. The ''genus'' can be defined as follows:<ref group="note">If we want to study the curve <math>y^2 = x^3 + 7</math>. We allow ''x'' and ''y'' to be complex numbers: <math>(a + b i)^2 = (c + d i)^3 + 7</math>. This is, in effect, a set of two equations on four variables, since both the real
and the imaginary part on each side must match. As a result, we get a surface (two-dimensional) in four-dimensional space. After we choose a convenient hyperplane on which to project the surface (meaning that, say, we choose to ignore the coordinate ''a''), we can
plot the resulting projection, which is a surface in ordinary three-dimensional space. It
then becomes clear that the result is a [[torus]], loosely speaking, the surface of a doughnut (somewhat
stretched). A doughnut has one hole; hence the genus is 1.</ref> allow the variables in <math>f(x,y)=0</math> to be complex numbers; then <math>f(x,y)=0</math> defines a 2-dimensional surface in (projective) 4-dimensional space (since two complex variables can be decomposed into four real variables, that is, four dimensions). If we count the number of (doughnut) holes in the surface; we call this number the ''genus'' of <math>f(x,y)=0</math>. Other geometrical notions turn out to be just as crucial.
 
There is also the closely linked area of [[Diophantine approximations]]: given a number <math>x</math>, then finding how well can it be approximated by rationals. (We are looking for approximations that are good relative to the amount of space that it takes to write the rational: call <math>a/q</math> (with <math>\gcd(a,q)=1</math>) a good approximation to <math>x</math> if <math>|x-a/q|<\frac{1}{q^c}</math>, where <math>c</math> is large.) This question is of special interest if <math>x</math> is an algebraic number. If <math>x</math> cannot be well approximated, then some equations do not have integer or rational solutions. Moreover, several concepts (especially that of [[Glossary of arithmetic and diophantine geometry#H|height]]) turn out to be critical both in Diophantine geometry and in the study of Diophantine approximations. This question is also of special interest in [[transcendental number theory]]: if a number can be better approximated than any algebraic number, then it is a [[transcendental number]]. It is by this argument that [[Pi|{{pi}}]] and [[e (mathematical constant)|e]] have been shown to be transcendental.
 
Diophantine geometry should not be confused with the [[geometry of numbers]], which is a collection of graphical methods for answering certain questions in algebraic number theory. ''Arithmetic geometry'', however, is a contemporary term for much the same domain as that covered by the term ''Diophantine geometry''. The term ''arithmetic geometry'' is arguably used most often when one wishes to emphasise the connections to modern algebraic geometry (as in, for instance, [[Faltings's theorem]]) rather than to techniques in Diophantine approximations.
 
==Other subfields==
The areas below date from no earlier than the mid-twentieth century, even if they are based on older material. For example, as is explained below, the matter of algorithms in number theory is very old, in some sense older than the concept of proof; at the same time, the modern study of [[computability]] dates only from the 1930s and 1940s, and [[computational complexity theory]] from the 1970s.
 
===Probabilistic number theory===
{{main|Probabilistic number theory}}


Much of probabilistic number theory can be seen as an important special case of the study of variables that are almost, but not quite, mutually [[statistical independence|independent]]. For example, the event that a random integer between one and a million be divisible by two and the event that it be divisible by three are almost independent, but not quite.
[[File:ECClines-3.svg|thumb|Two examples of [[elliptic curve]]s, that is, curves of genus 1 having at least one rational point]]


It is sometimes said that [[probabilistic combinatorics]] uses the fact that whatever happens with probability greater than <math>0</math> must happen sometimes; one may say with equal justice that many applications of probabilistic number theory hinge on the fact that whatever is unusual must be rare. If certain algebraic objects (say, rational or integer solutions to certain equations) can be shown to be in the tail of certain sensibly defined distributions, it follows that there must be few of them; this is a very concrete non-probabilistic statement following from a probabilistic one.
The rephrasing of questions on equations in terms of points on curves is felicitous. The finiteness or not of the number of rational or integer points on an algebraic curve (that is, rational or integer solutions to an equation <math>f(x,y)=0</math>, where <math>f</math> is a polynomial in two variables) depends crucially on the [[genus (mathematics)|genus]] of the curve.<ref group="note">The ''genus'' can be defined as follows: allow the variables in <math>f(x,y)=0</math> to be complex numbers; then <math>f(x,y)=0</math> defines a 2-dimensional surface in (projective) 4-dimensional space (since two complex variables can be decomposed into four real variables; that is, four dimensions). The number of doughnut-like holes in the surface is called the ''genus'' of the curve of equation <math>f(x,y)=0</math>.</ref> A major achievement of this approach is [[Wiles's proof of Fermat's Last Theorem]], for which other geometrical notions are just as crucial.


At times, a non-rigorous, probabilistic approach leads to a number of [[heuristic]] algorithms and open problems, notably [[Cramér's conjecture]].
There is also the closely linked area of [[Diophantine approximations]]: given a number <math>x</math>, determine how well it can be approximated by rational numbers. One seeks approximations that are good relative to the amount of space required to write the rational number: call <math>a/q</math> (with <math>\gcd(a,q)=1</math>) a good approximation to <math>x</math> if <math>|x-a/q|<\frac{1}{q^c}</math>, where <math>c</math> is large. This question is of special interest if <math>x</math> is an algebraic number. If <math>x</math> cannot be approximated well, then some equations do not have integer or rational solutions. Moreover, several concepts (especially that of [[Glossary of arithmetic and diophantine geometry#H|height]]) are critical both in Diophantine geometry and in the study of Diophantine approximations. This question is also of special interest in [[transcendental number theory]]: if a number can be approximated better than any algebraic number, then it is a [[transcendental number]]. It is by this argument that [[Pi|{{pi}}]] and [[e (mathematical constant)|e]] have been shown to be transcendental.


===Arithmetic combinatorics===
Diophantine geometry should not be confused with the [[geometry of numbers]], which is a collection of graphical methods for answering certain questions in algebraic number theory. [[Arithmetic geometry]] is a contemporary term for the same domain covered by Diophantine geometry, particularly when one wishes to emphasize the connections to modern algebraic geometry (for example, in [[Faltings' theorem]]) rather than to techniques in Diophantine approximations.
{{main|Arithmetic combinatorics|Additive number theory}}


If we begin from a fairly "thick" [[infinite set]] <math>A</math>, does it contain many elements in arithmetic progression: <math>a</math>,
=== Other subfields ===
<math>a+b, a+2 b, a+3 b, \ldots, a+10b</math>, say? Should it be possible to write large integers as sums of elements of <math>A</math>?
{{Main|Probabilistic number theory}}


These questions are characteristic of ''arithmetic combinatorics''. This is a presently coalescing field; it subsumes ''[[additive number theory]]'' (which concerns itself with certain very specific sets <math>A</math> of arithmetic significance, such as the primes or the squares) and, arguably, some of the ''geometry of numbers'', together with some rapidly developing new material. Its focus on issues of growth and distribution accounts in part for its developing links with [[ergodic theory]], [[finite group theory]], [[model theory]], and other fields. The term ''additive combinatorics'' is also used; however, the sets <math>A</math> being studied need not be sets of integers, but rather subsets of non-commutative [[Group (mathematics)|groups]], for which the multiplication symbol, not the addition symbol, is traditionally used; they can also be subsets of [[ring (mathematics)|rings]], in which case the growth of <math>A+A</math> and <math>A</math>·<math>A</math> may be compared.
Probabilistic number theory starts with questions such as the following: Take an integer {{mvar|n}} at random between one and a million. How likely is it to be prime? (this is just another way of asking how many primes there are between one and a million). How many prime divisors will {{mvar|n}} have on average? What is the probability that it will have many more or many fewer divisors or prime divisors than the average?{{Main|Arithmetic combinatorics|Additive number theory}}


===Computational number theory===
Combinatorics in number theory starts with questions like the following: Does a fairly "thick" [[infinite set]] <math>A</math> contain many elements in arithmetic progression: <math>a</math>,
{{main|Computational number theory}}[[Image:Computer History Museum (4145886786).jpg|thumb|A [[Lehmer sieve]], a primitive [[digital computer]] used to find [[Prime number|primes]] and solve simple [[Diophantine equations]]]]While the word ''algorithm'' goes back only to certain readers of [[al-Khwārizmī]], careful descriptions of methods of solution are older than proofs: such methods (that is, algorithms) are as old as any recognisable mathematics—ancient Egyptian, Babylonian, Vedic, Chinese—whereas proofs appeared only with the Greeks of the classical period.
<math>a+b, a+2 b, a+3 b, \ldots, a+10b</math>? Should it be possible to write large integers as sums of elements of <math>A</math>?{{Main|Computational number theory}}
An early case is that of what we now call the Euclidean algorithm. In its basic form (namely, as an algorithm for computing the [[greatest common divisor]]) it appears as Proposition 2 of Book VII in ''Elements'', together with a proof of correctness. However, in the form that is often used in number theory (namely, as an algorithm for finding integer solutions to an equation <math>a x + b y = c</math>, or, what is the same, for finding the quantities whose existence is assured by the [[Chinese remainder theorem]]) it first appears in the works of [[Aryabhata#Indeterminate equations|Āryabhaṭa]] (5th–6th century CE) as an algorithm called ''kuṭṭaka'' ("pulveriser"), without a proof of correctness.


There are two main questions: "Can we compute this?" and "Can we compute it rapidly?" Anyone can test whether a number is prime or, if it is not, split it into prime factors; doing so rapidly is another matter. We now know fast algorithms for [[primality test|testing primality]], but, in spite of much work (both theoretical and practical), no truly fast algorithm for factoring.
[[File:Computer History Museum (4145886786).jpg|thumb|A [[Lehmer sieve]], a primitive [[digital computer]] used to find [[primes]] and solve simple [[Diophantine equations]]]]There are two main questions: "Can this be computed?" and "Can it be computed rapidly?" Anyone can test whether a number is prime or, if it is not, split it into prime factors; doing so rapidly is another matter. Fast algorithms for [[primality test|testing primality]] are now known, but, in spite of much work (both theoretical and practical), no truly fast algorithm for factoring.


The difficulty of a computation can be useful: modern protocols for [[cryptography|encrypting messages]] (for example, [[RSA (algorithm)|RSA]]) depend on functions that are known to all, but whose inverses are known only to a chosen few, and would take one too long a time to figure out on one's own. For example, these functions can be such that their inverses can be computed only if certain large integers are factorized. While many difficult computational problems outside number theory are known, most working encryption protocols nowadays are based on the difficulty of a few number-theoretical problems.
== Applications ==
For a long time, number theory in general, and the study of prime numbers in particular, was seen as the canonical example of pure mathematics, with no applications outside of mathematics other than the use of prime numbered gear teeth to distribute wear evenly.<ref>{{cite book |last1=Bryant |first1=John |title=How Round is Your Circle?: Where Engineering and Mathematics Meet |title-link=How Round Is Your Circle |last2=Sangwin |first2=Christopher J. |publisher=Princeton University Press |year=2008 |isbn=978-0-691-13118-4 |at=[https://books.google.com/books?id=iIN_2WjBH1cC&pg=PA178 p. 178]}}</ref> In particular, number theorists such as [[United Kingdom|British]] mathematician [[G. H. Hardy]] prided themselves on doing work that had absolutely no military significance.<ref>{{cite book |last1=Hardy |first1=Godfrey Harold |author1-link=G. H. Hardy |title=A Mathematician's Apology |title-link=A Mathematician's Apology |publisher=Cambridge University Press |year=2012 |isbn=978-0-521-42706-7 |page=[https://books.google.com/books?id=EkY2im6xkVkC&pg=PA140 140] |oclc=922010634 |quote=No one has yet discovered any warlike purpose to be served by the theory of numbers or relativity, and it seems unlikely that anyone will do so for many years. |orig-year=1940}}</ref> The number-theorist [[Leonard Dickson]] (1874–1954) said "Thank God that number theory is unsullied by any application". Such a view is no longer applicable to number theory.<ref>''The Unreasonable Effectiveness of Number Theory'', Stefan Andrus Burr, George E. Andrews, American Mathematical Soc., 1992, {{isbn|978-0-8218-5501-0}}</ref>


Some things may not be computable at all; in fact, this can be proven in some instances. For instance, in 1970, it was proven, as a solution to [[Hilbert's tenth problem]], that there is no [[Turing machine]] which can solve all Diophantine equations.<ref>{{cite book | editor=Felix E. Browder | editor-link=Felix Browder | title=Mathematical Developments Arising from Hilbert Problems | series=[[Proceedings of Symposia in Pure Mathematics]] | volume=XXVIII.2 | year=1976 | publisher=[[American Mathematical Society]] | isbn=978-0-8218-1428-4 | pages=323–378 | first1=Martin | last1=Davis | author-link1=Martin Davis (mathematician) | first2=Yuri | last2=Matiyasevich | author-link2=Yuri Matiyasevich | first3=Julia | last3=Robinson | author-link3=Julia Robinson | chapter=Hilbert's Tenth Problem: Diophantine Equations: Positive Aspects of a Negative Solution | zbl=0346.02026 }} Reprinted in ''The Collected Works of Julia Robinson'', [[Solomon Feferman]], editor, pp. 269–378, American Mathematical Society 1996.</ref> In particular, this means that, given a [[computably enumerable]] set of axioms, there are Diophantine equations for which there is no proof, starting from the axioms, of whether the set of equations has or does not have integer solutions. (We would necessarily be speaking of Diophantine equations for which there are no integer solutions, since, given a Diophantine equation with at least one solution, the solution itself provides a proof of the fact that a solution exists. We cannot prove that a particular Diophantine equation is of this kind, since this would imply that it has no solutions.)
This vision of the purity of number theory was shattered in the 1970s, when it was publicly announced that prime numbers could be used as the basis for the creation of [[public-key cryptography]] algorithms.<ref>{{cite book|title=Elementary Number Theory|series=Textbooks in mathematics|first1=James S.|last1=Kraft|first2=Lawrence C.|last2=Washington|publisher=CRC Press|year=2014|isbn=978-1-4987-0269-0|page=7|url=https://books.google.com/books?id=4NAqBgAAQBAJ&pg=PA7}}</ref> Schemes such as RSA are based on the difficulty of factoring large composite numbers into their prime factors.<ref>{{Cite book |url=https://www.taylorfrancis.com/books/9781351664110 |title=An Introduction to Number Theory with Cryptography |date=2018 |publisher=Chapman and Hall/CRC |isbn=978-1-351-66411-0 |edition=2nd |doi=10.1201/9781351664110 |access-date=2023-02-22 |archive-url=https://web.archive.org/web/20230301144259/https://www.taylorfrancis.com/books/mono/10.1201/9781351664110/introduction-number-theory-cryptography-james-kraft-lawrence-washington |archive-date=2023-03-01 |url-status=live}}</ref> These applications have led to significant study of [[Algorithm|algorithms]] for computing with prime numbers, and in particular of [[Primality test|primality testing]], methods for determining whether a given number is prime. Prime numbers are also used in computing for [[Checksum|checksums]], [[Hash table|hash tables]], and [[Pseudorandom number generator|pseudorandom number generators]].


==Applications==
In 1974, [[Donald Knuth]] said "virtually every theorem in elementary number theory arises in a natural, motivated way in connection with the problem of making computers do high-speed numerical calculations".<ref>Computer science and its relation to mathematics" DE Knuth – The American Mathematical Monthly, 1974</ref>
The number-theorist [[Leonard Dickson]] (1874–1954) said "Thank God that number theory is unsullied by any application". Such a view is no longer applicable to number theory.<ref>''The Unreasonable Effectiveness of Number Theory'', Stefan Andrus Burr, George E. Andrews, American Mathematical Soc., 1992, {{isbn|978-0-8218-5501-0}}</ref> In 1974, [[Donald Knuth]] said "...virtually every theorem in elementary number theory arises in a natural, motivated way in connection with the problem of making computers do high-speed numerical calculations".<ref>Computer science and its relation to mathematics" DE Knuth – The American Mathematical Monthly, 1974</ref>
Elementary number theory is taught in [[discrete mathematics]] courses for [[computer scientist]]s. It also has applications to the continuous in [[numerical analysis]].<ref>"Applications of number theory to numerical analysis", Lo-keng Hua, Luogeng Hua, Yuan Wang, Springer-Verlag, 1981, {{isbn|978-3-540-10382-0}}</ref>
Elementary number theory is taught in [[discrete mathematics]] courses for [[computer scientist]]s; on the other hand, number theory also has applications to the continuous in [[numerical analysis]].<ref>"Applications of number theory to numerical analysis", Lo-keng Hua, Luogeng Hua, Yuan Wang, Springer-Verlag, 1981, {{isbn|978-3-540-10382-0}}</ref>


Number theory has now several modern applications spanning diverse areas such as:
Number theory has now several modern applications spanning diverse areas such as:
* [[Cryptography]]: Public-key encryption schemes such as RSA are based on the difficulty of factoring large composite numbers into their prime factors.<ref>{{Cite book |url=https://www.taylorfrancis.com/books/9781351664110 |title=An Introduction to Number Theory with Cryptography|edition=2nd |date=2018 |publisher=Chapman and Hall/CRC |isbn=978-1-351-66411-0 |doi=10.1201/9781351664110 |access-date=2023-02-22 |archive-date=2023-03-01 |archive-url=https://web.archive.org/web/20230301144259/https://www.taylorfrancis.com/books/mono/10.1201/9781351664110/introduction-number-theory-cryptography-james-kraft-lawrence-washington |url-status=live }}</ref>
* [[Computer science]]: The [[fast Fourier transform]] (FFT) algorithm, which is used to efficiently compute the discrete Fourier transform, has important applications in signal processing and data analysis.<ref>{{cite book | last=Krishna | first=Hari | title=Digital Signal Processing Algorithms | publisher=Routledge | date=2017 | location=London | isbn=978-1-351-45497-1}}</ref>
* [[Computer science]]: The [[fast Fourier transform]] (FFT) algorithm, which is used to efficiently compute the discrete Fourier transform, has important applications in signal processing and data analysis.<ref>{{Cite book |last=Krishna |first=Hari |url=https://www.worldcat.org/oclc/1004350753 |title=Digital Signal Processing Algorithms : Number Theory, Convolution, Fast Fourier Transforms, and Applications |date=2017 |isbn=978-1-351-45497-1 |edition= |location=London |oclc=1004350753 |access-date=2023-02-22 |archive-date=2023-03-01 |archive-url=https://web.archive.org/web/20230301144250/https://www.worldcat.org/title/1004350753 |url-status=live }}</ref>
* [[Physics]]: The [[Riemann hypothesis]] has connections to the distribution of prime numbers and has been studied for its potential implications in physics.<ref>{{cite journal |title=Physics of the Riemann Hypothesis |journal=Reviews of Modern Physics |volume=83 |issue=2 |pages=307–330 |first1=Daniel |last1=Schumayer |first2=David A. W. |last2=Hutchinson |year=2011 |arxiv=1101.3116 |doi=10.1103/RevModPhys.83.307 |bibcode=2011RvMP...83..307S |s2cid=119290777}}</ref>
* [[Physics]]: The Riemann hypothesis has connections to the distribution of prime numbers and has been studied for its potential implications in physics.<ref name=":0"/>
* [[Error correction code]]s: The theory of finite fields and algebraic geometry have been used to construct efficient error-correcting codes.<ref>{{Cite book |last=Baylis |first=John |url=https://www.taylorfrancis.com/books/9781351449847 |title=Error-Correcting Codes: A Mathematical Introduction |date=2018 |publisher=Routledge |isbn=978-0-203-75667-6 |doi=10.1201/9780203756676 |access-date=2023-02-22}}</ref>
* [[Error correction code]]s: The theory of finite fields and algebraic geometry have been used to construct efficient error-correcting codes.<ref>{{Cite book |last=Baylis |first=John |url=https://www.taylorfrancis.com/books/9781351449847 |title=Error-Correcting Codes: A Mathematical Introduction |date=2018 |publisher=Routledge |isbn=978-0-203-75667-6 |edition= |language=en |doi=10.1201/9780203756676 |access-date=2023-02-22 |archive-date=2023-03-01 |archive-url=https://web.archive.org/web/20230301144305/https://www.taylorfrancis.com/books/mono/10.1201/9780203756676/error-correcting-codes-baylis |url-status=live }}</ref>
* Study of musical scales: the concept of "[[equal temperament]]", which is the basis for most modern Western music, involves dividing the [[octave]] into 12 equal parts.<ref>{{Cite journal |last1=Cartwright |first1=Julyan H. E. |last2=Gonzalez |first2=Diego L. |last3=Piro |first3=Oreste |last4=Stanzial |first4=Domenico |date=2002-03-01 |title=Aesthetics, Dynamics, and Musical Scales: A Golden Connection |url=http://dx.doi.org/10.1076/jnmr.31.1.51.8099 |journal=Journal of New Music Research |volume=31 |issue=1 |pages=51–58 |doi=10.1076/jnmr.31.1.51.8099 |hdl=10261/18003 |s2cid=12232457 |issn=0929-8215 |hdl-access=free|url-access=subscription }}</ref> This has been studied using number theory and in particular the properties of the 12th root of 2.
* Communications: The design of cellular telephone networks requires knowledge of the theory of [[modular form]]s, which is a part of analytic number theory.<ref>{{Citation |last=Livné |first=R. |title=Communication Networks and Hilbert Modular Forms |date=2001 |url=http://link.springer.com/10.1007/978-94-010-1011-5_13 |work=Applications of Algebraic Geometry to Coding Theory, Physics and Computation |pages=255–270 |editor-last=Ciliberto |editor-first=Ciro |place=Dordrecht |publisher=Springer Netherlands |doi=10.1007/978-94-010-1011-5_13 |isbn=978-1-4020-0005-8 |access-date=2023-02-22 |editor2-last=Hirzebruch |editor2-first=Friedrich |editor3-last=Miranda |editor3-first=Rick |editor4-last=Teicher |editor4-first=Mina |archive-date=2023-03-01 |archive-url=https://web.archive.org/web/20230301144239/https://link.springer.com/chapter/10.1007/978-94-010-1011-5_13 |url-status=live }}</ref>
* Study of musical scales: the concept of "[[equal temperament]]", which is the basis for most modern Western music, involves dividing the [[octave]] into 12 equal parts.<ref>{{Cite journal |last1=Cartwright |first1=Julyan H. E. |last2=Gonzalez |first2=Diego L. |last3=Piro |first3=Oreste |last4=Stanzial |first4=Domenico |date=2002-03-01 |title=Aesthetics, Dynamics, and Musical Scales: A Golden Connection |url=http://dx.doi.org/10.1076/jnmr.31.1.51.8099 |journal=Journal of New Music Research |volume=31 |issue=1 |pages=51–58 |doi=10.1076/jnmr.31.1.51.8099 |hdl=10261/18003 |s2cid=12232457 |issn=0929-8215|hdl-access=free }}</ref> This has been studied using number theory and in particular the properties of the 12th root of 2.
 
==Prizes==
The [[American Mathematical Society]] awards the ''[[Cole Prize|Cole Prize in Number Theory]]''. Moreover, number theory is one of the three mathematical subdisciplines rewarded by the ''[[Fermat Prize]]''.


==See also==
== See also ==
{{portal|Mathematics}}
{{portal|Mathematics}}
* [[Arithmetic dynamics]]
* [[Algebraic function field]]
* [[Algebraic function field]]
* [[Arithmetic topology]]
* [[Finite field]]
* [[Finite field]]
* [[p-adic number]]
* [[p-adic number]]
* [[List of number theoretic algorithms]]


==Notes==
== Notes ==
{{reflist|group=note|30em}}
{{reflist|group=note|30em}}


==References==
== References ==
{{reflist}}
{{reflist}}


==Sources==
=== Sources ===
<!-- This article uses the shortened footnotes template {{sfn}}, in conjunction with Harvard referencing {{harv}} or {{harvnb}} templates. These all use the {{cite book}} template to create automatic multiple links in the {{reflist}}. See talk. -->
<!-- This article uses the shortened footnotes template{{sfn}}, in conjunction with Harvard referencing {{harv}} or {{harvnb}} templates. These all use the {{cite book}} template to create automatic multiple links in the {{reflist}}. See talk. -->
 
{{refbegin|30em}}
{{refbegin|30em}}
<!--Small font-->
*{{citation |first=Joseph W. |last=Dauben |editor-last=Katz |editor-first=Victor J. |contribution=Chapter 3: Chinese Mathematics |pages=187–384 |publisher=Princeton University Press |year=2007 |title=The Mathematics of Egypt, Mesopotamia, China, India and Islam : A Sourcebook |isbn=978-0-691-11485-9}}
* {{cite book
* {{cite book |last=Apostol |first=Tom M. |author-link=Tom M. Apostol |year=1976 |title=Introduction to analytic number theory |series=[[Undergraduate Texts in Mathematics]] |publisher=[[Springer Publishing|Springer]] |isbn=978-0-387-90163-3 |url=https://books.google.com/books?id=Il64dZELHEIC |access-date=2016-02-28}}
|last=Apostol
*{{citation |first=Ulrich |last=Libbrecht |title=Chinese Mathematics in the Thirteenth Century: the "Shu-shu Chiu-chang" of Ch'in Chiu-shao |publisher=Dover Publications Inc |isbn=978-0-486-44619-6 |date=1973}}
|first=Tom M.
* {{cite journal |last=Apostol |first=Tom M. |year=1981 |title=An Introduction to the Theory of Numbers (Review of Hardy & Wright.) |journal=Mathematical Reviews (MathSciNet) |mr=0568909 |publisher=[[American Mathematical Society]]}} (Subscription needed)
|author-link=Tom M. Apostol
* {{cite journal |last=Becker |first=Oskar |year=1936 |author-link=Oskar Becker |language=de |title=Die Lehre von Geraden und Ungeraden im neunten Buch der euklidischen Elemente |journal=Quellen und Studien zur Geschichte der Mathematik, Astronomie und Physik |series=Abteilung B:Studien |volume=3 |pages=533–553}}
|year=1976
* {{cite book |last1=Boyer |first1=Carl Benjamin |last2=Merzbach |first2=Uta C. |author2-link=Uta Merzbach |year=1991 |author-link=Carl Benjamin Boyer |title=A History of Mathematics |edition=2nd |orig-year=1968 |location=New York |publisher=[[Wiley (publisher)|Wiley]] |isbn=978-0-471-54397-8 |url=https://archive.org/details/historyofmathema00boye}} [https://archive.org/details/AHistoryOfMathematics 1968 edition] at archive.org
|title=Introduction to analytic number theory
* {{cite book |author=Aryabhata |translator-last=Clark |translator-first=Walter Eugene |ref={{sfnref|Clark|1930}} |author-link=Aryabhata |year=1930 |title=The Āryabhaṭīya of Āryabhaṭa: An ancient Indian work on Mathematics and Astronomy |publisher=[[University of Chicago Press]] |url=https://archive.org/details/The_Aryabhatiya_of_Aryabhata_Clark_1930 |access-date=2016-02-28}}
|series=[[Undergraduate Texts in Mathematics]]
* {{cite book |last=Colebrooke |first=Henry Thomas |year=1817 |author-link=Henry Thomas Colebrooke |title=Algebra, with Arithmetic and Mensuration, from the Sanscrit of Brahmegupta and Bháscara |location=London |publisher=J. Murray |url=https://archive.org/details/algebrawitharith00brahuoft |access-date=2016-02-28}}
|publisher=[[Springer Publishing|Springer]]
* {{cite book |last1=Davenport |first1=Harold |author-link=Harold Davenport |year=2000 |last2=Montgomery |first2=Hugh L. |author2-link=Hugh Montgomery (mathematician) |title=Multiplicative Number Theory |edition=revised 3rd |series=Graduate Texts in Mathematics |volume=74 |publisher=[[Springer Publishing|Springer]] |isbn=978-0-387-95097-6}}
|isbn=978-0-387-90163-3
* {{cite journal |last=Edwards |first=Harold M. |author-link=Harold Edwards (mathematician) |date=November 1983 |title=Euler and Quadratic Reciprocity |journal=Mathematics Magazine |volume=56 |issue=5 |pages=285–291 |doi=10.2307/2690368 |jstor=2690368}}
|url=https://books.google.com/books?id=Il64dZELHEIC
* {{cite book |last=Edwards |first=Harold M. |year=2000 |orig-year=1977 |title=Fermat's Last Theorem: a Genetic Introduction to Algebraic Number Theory |edition=reprint of 1977 |series=Graduate Texts in Mathematics |volume=50 |publisher=[[Springer Verlag]] |isbn=978-0-387-95002-0 |url=https://books.google.com/books?id=_IxN-5PW8asC}}
|access-date=2016-02-28
* {{cite book |last=Fermat |first=Pierre de |year=1679 |author-link=Pierre de Fermat |language=fr, la |title=Varia Opera Mathematica |location=Toulouse |publisher=Joannis Pech |url=https://archive.org/details/bub_gb_fvZaAAAAQAAJ |access-date=2016-02-28}}
}}
* {{cite journal |last=Friberg |first=Jöran |date=August 1981 |title=Methods and Traditions of Babylonian Mathematics: Plimpton 322, Pythagorean Triples and the Babylonian Triangle Parameter Equations |journal=Historia Mathematica |volume=8 |issue=3 |pages=277–318 |doi=10.1016/0315-0860(81)90069-0 |doi-access=free}}
* {{cite journal
* {{cite book |last=von Fritz |first=Kurt |editor1-last=Christianidis |editor1-first=J. |year=2004 |chapter=The Discovery of Incommensurability by Hippasus of Metapontum |title=Classics in the History of Greek Mathematics |location=Berlin |publisher=Kluwer (Springer) |isbn=978-1-4020-0081-2}}
|last=Apostol
* {{cite book |last1=Gauss |ref={{harvid|Gauss, Disqu. Arith.||}} |first1=Carl Friedrich |translator-last=Waterhouse |translator-first=William C. |year=1966 |author-link=Carl Friedrich Gauss |title=Disquisitiones Arithmeticae |orig-year=1801 |publisher=Springer |isbn=978-0-387-96254-2 |url=https://books.google.com/books?id=8LcK_CwzMpQC}}
|first=Tom M.
* {{cite web |last=Goldfeld |first=Dorian M. |author-link=Dorian M. Goldfeld |year=2003 |title=Elementary Proof of the Prime Number Theorem: a Historical Perspective |url=http://www.math.columbia.edu/~goldfeld/ErdosSelbergDispute.pdf |access-date=2016-02-28 |archive-date=2016-03-03 |archive-url=https://web.archive.org/web/20160303234413/http://www.math.columbia.edu/~goldfeld/ErdosSelbergDispute.pdf |url-status=live}}
|year=n.d.
* {{cite book |last1=Goldstein |first1=Catherine |author-link=Catherine Goldstein |last2=Schappacher |first2=Norbert |year=2007 |editor1-last=Goldstein |editor1-first=C. |editor2-last=Schappacher |editor2-first=N. |editor3-last=Schwermer |editor3-first=Joachim |chapter=A book in search of a discipline |title=The Shaping of Arithmetic after C.F. Gauss's "Disquisitiones Arithmeticae" |location=Berlin & Heidelberg |publisher=Springer |isbn=978-3-540-20441-1 |chapter-url=https://books.google.com/books?id=IUFTcOsMTysC |pages=3–66 |access-date=2016-02-28}}
|title=An Introduction to the Theory of Numbers
* {{cite book |last=Granville |first=Andrew |author-link=Andrew Granville |year=2008 |editor1-last=Gowers |editor1-first=Timothy |editor1-link=Timothy Gowers |editor2-last=Barrow-Green |editor2-first=June |editor3-last=Leader |editor3-first=Imre |editor3-link=Imre Leader |chapter=Analytic number theory |title=The Princeton Companion to Mathematics |publisher=[[Princeton University Press]] |isbn=978-0-691-11880-2 |chapter-url=https://books.google.com/books?id=ZOfUsvemJDMC&pg=PA332 |access-date=2016-02-28 |title-link=The Princeton Companion to Mathematics}}
|series=(Review of Hardy & Wright.) Mathematical Reviews (MathSciNet)
* {{cite book |ref={{harvid|Guthrie|1920}} |translator-last=Guthrie |translator-first=K. S. |translator-link=Kenneth Sylvan Guthrie |year=1920 |last1=Porphyry |author1-link=Porphyry (philosopher) |title=Life of Pythagoras |location=Alpine, New Jersey |publisher=Platonist Press |url=http://www.tertullian.org/fathers/porphyry_life_of_pythagoras_02_text.htm |access-date=2012-04-10 |archive-date=2020-02-29 |archive-url=https://web.archive.org/web/20200229061904/http://www.tertullian.org/fathers/porphyry_life_of_pythagoras_02_text.htm |url-status=live}}
|mr=0568909
* {{cite book |last=Guthrie |first=Kenneth Sylvan |year=1987 |author-link=Kenneth Sylvan Guthrie |title=The Pythagorean Sourcebook and Library |location=Grand Rapids, Michigan |publisher=Phanes Press |isbn=978-0-933999-51-0}}
|publisher=[[American Mathematical Society]]
* {{Cite book |last1=Hardy |first1=Godfrey Harold |author1-link=G. H. Hardy |last2=Wright |first2=E. M. |title=An Introduction to the Theory of Numbers |orig-year=1938 |publisher=[[Oxford University Press]] |edition=6th |isbn=978-0-19-921986-5 |mr=2445243 |year=2008 |title-link=An Introduction to the Theory of Numbers}}
|url=https://www.ams.org/mathscinet/
* {{cite book |last=Heath |first=Thomas L. |year=1921 |author-link=Thomas Little Heath |title=A History of Greek Mathematics, Volume 1: From Thales to Euclid |location=Oxford |publisher=[[Clarendon Press]] |url=https://archive.org/details/historyofgreekma01heat |access-date=2016-02-28}}
|access-date=2016-02-28
|archive-date=2016-03-01
|archive-url=https://web.archive.org/web/20160301103120/http://www.ams.org/mathscinet/
|url-status=live
}} (Subscription needed)
* {{cite journal
|last=Becker
|first=Oskar
|year=1936
|author-link=Oskar Becker
|language=de
|title=Die Lehre von Geraden und Ungeraden im neunten Buch der euklidischen Elemente
|journal=Quellen und Studien zur Geschichte der Mathematik, Astronomie und Physik
|series=Abteilung B:Studien
|volume=3
|pages=533–553
}}
* {{cite book
|last1=Boyer
|first1=Carl Benjamin
|last2=Merzbach
|first2=Uta C.
|author2-link=Uta Merzbach
|year=1991
|author-link=Carl Benjamin Boyer
|title=A History of Mathematics
|edition=2nd
|orig-year=1968
|location=New York
|publisher=[[Wiley (publisher)|Wiley]]
|isbn=978-0-471-54397-8
|url=https://archive.org/details/historyofmathema00boye
}} [https://archive.org/details/AHistoryOfMathematics 1968 edition] at archive.org
* {{cite book
|last1=Clark
|first1=Walter Eugene (trans.) <!--|last2=Aryabhata
|author2-link=Aryabhata-->
|year=1930
|title=The Āryabhaṭīya of Āryabhaṭa: An ancient Indian work on Mathematics and Astronomy
|publisher=[[University of Chicago Press]]
|url=https://archive.org/details/The_Aryabhatiya_of_Aryabhata_Clark_1930
|access-date=2016-02-28
}}
* {{cite book
|last=Colebrooke
|first=Henry Thomas
|year=1817
|author-link=Henry Thomas Colebrooke
|title=Algebra, with Arithmetic and Mensuration, from the Sanscrit of Brahmegupta and Bháscara.
|location=London
|publisher=J. Murray
|url=https://archive.org/details/algebrawitharith00brahuoft
|access-date=2016-02-28
}}
* {{cite book
|last1=Davenport
|first1=Harold
|author-link=Harold Davenport
|year=2000
|last2=Montgomery
|first2=Hugh L.
|author2-link=Hugh Montgomery (mathematician)
|title=Multiplicative Number Theory
|edition=revised 3rd
|series=Graduate Texts in Mathematics
|volume=74
|publisher=[[Springer Publishing|Springer]]
|isbn=978-0-387-95097-6
}}
* {{cite journal
|last=Edwards
|first=Harold M.
|author-link=Harold Edwards (mathematician)
|date=November 1983
|title=Euler and Quadratic Reciprocity
|journal=Mathematics Magazine
|volume=56
|issue=5
|pages=285–291
|jstor=2690368
|doi=10.2307/2690368}}
* {{cite book
|last=Edwards
|first=Harold M.
|year=2000
|orig-year=1977
|title=Fermat's Last Theorem: a Genetic Introduction to Algebraic Number Theory
|edition=reprint of 1977
|series=Graduate Texts in Mathematics
|volume=50
|publisher=[[Springer Verlag]]
|isbn=978-0-387-95002-0
|url=https://books.google.com/books?id=_IxN-5PW8asC
}}
* {{cite book
|last=Fermat
|first=Pierre de
|year=1679
|author-link=Pierre de Fermat
|language=fr, la
|title=Varia Opera Mathematica
|location=Toulouse
|publisher=Joannis Pech
|url=https://archive.org/details/bub_gb_fvZaAAAAQAAJ
|access-date=2016-02-28
}}
* {{cite journal
|last=Friberg
|first=Jöran
|date=August 1981
|title=Methods and Traditions of Babylonian Mathematics: Plimpton 322, Pythagorean Triples and the Babylonian Triangle Parameter Equations
|journal=Historia Mathematica
|volume=8
|issue=3
|pages=277–318
|doi=10.1016/0315-0860(81)90069-0|doi-access=free
}}
* {{cite book
|last=von Fritz
|first=Kurt
|editor1-last=Christianidis
|editor1-first=J.
|year=2004
|chapter=The Discovery of Incommensurability by Hippasus of Metapontum
|title=Classics in the History of Greek Mathematics
|location=Berlin
|publisher=Kluwer (Springer)
|isbn=978-1-4020-0081-2
}}
* {{cite book
|last1=Gauss
|ref={{harvid|Gauss, Disqu. Arith.||}}
|first1=Carl Friedrich
|last2=Waterhouse
|first2=William C. (trans.)
|year=1966
|author-link=Carl Friedrich Gauss
|title=Disquisitiones Arithmeticae
|orig-year=1801
|publisher=Springer
|isbn=978-0-387-96254-2
|url=https://books.google.com/books?id=8LcK_CwzMpQC
}}
* {{cite web
|last=Goldfeld
|first=Dorian M.
|author-link=Dorian M. Goldfeld
|year=2003
|title=Elementary Proof of the Prime Number Theorem: a Historical Perspective
|url=http://www.math.columbia.edu/~goldfeld/ErdosSelbergDispute.pdf
|access-date=2016-02-28
|archive-date=2016-03-03
|archive-url=https://web.archive.org/web/20160303234413/http://www.math.columbia.edu/~goldfeld/ErdosSelbergDispute.pdf
|url-status=live
}}
* {{cite book
|last1=Goldstein
|first1=Catherine
|author-link=Catherine Goldstein
|last2=Schappacher
|first2=Norbert
|year=2007
|editor1-last=Goldstein
|editor1-first=C.
|editor2-last=Schappacher
|editor2-first=N.
|editor3-last=Schwermer
|editor3-first=Joachim
|chapter=A book in search of a discipline
|title=The Shaping of Arithmetic after C.F. Gauss's "Disquisitiones Arithmeticae"
|location=Berlin & Heidelberg
|publisher=Springer
|isbn=978-3-540-20441-1
|chapter-url=https://books.google.com/books?id=IUFTcOsMTysC
|pages=3–66
|access-date=2016-02-28
}}
* {{cite book
|last=Granville
|first=Andrew
|author-link=Andrew Granville
|year=2008
|editor1-last=Gowers
|editor1-first=Timothy
|editor1-link=Timothy Gowers
|editor2-last=Barrow-Green
|editor2-first=June
|editor3-last=Leader
|editor3-first=Imre
|editor3-link=Imre Leader
|chapter=Analytic number theory
|title=The Princeton Companion to Mathematics
|publisher=[[Princeton University Press]]
|isbn=978-0-691-11880-2
|chapter-url=https://books.google.com/books?id=ZOfUsvemJDMC&pg=PA332
|access-date=2016-02-28
|title-link=The Princeton Companion to Mathematics
}}
* {{cite book
|ref={{harvid|Guthrie|1920}}
|last2=Guthrie
|first2=K.S. (trans.)
|author2-link=Kenneth Sylvan Guthrie
|year=1920
|last1=Porphyry
|author1-link=Porphyry (philosopher)
|title=Life of Pythagoras
|location=Alpine, New Jersey
|publisher=Platonist Press
|url=http://www.tertullian.org/fathers/porphyry_life_of_pythagoras_02_text.htm
|access-date=2012-04-10
|archive-date=2020-02-29
|archive-url=https://web.archive.org/web/20200229061904/http://www.tertullian.org/fathers/porphyry_life_of_pythagoras_02_text.htm
|url-status=live
}}
* {{cite book
|last=Guthrie
|first=Kenneth Sylvan
|year=1987
|author-link=Kenneth Sylvan Guthrie
|title=The Pythagorean Sourcebook and Library
|location=Grand Rapids, Michigan
|publisher=Phanes Press
|isbn=978-0-933999-51-0
}}
* {{Cite book
| last1=Hardy
| first1=Godfrey Harold
| author1-link=G. H. Hardy
| last2=Wright
| first2=E.M.
| title=An Introduction to the Theory of Numbers
| orig-year=1938
| publisher=[[Oxford University Press]]
| edition=6th
| isbn=978-0-19-921986-5
| mr=2445243
| year=2008
| title-link=An Introduction to the Theory of Numbers
}}
* {{cite book
|last=Heath
|first=Thomas L.
|year=1921
|author-link=Thomas Little Heath
|title=A History of Greek Mathematics, Volume 1: From Thales to Euclid
|location=Oxford
|publisher=[[Clarendon Press]]
|url=https://archive.org/details/historyofgreekma01heat
|access-date=2016-02-28
}}
<!-- Alternative Info – Google limited preview
<!-- Alternative Info – Google limited preview
  |year=1981
  |year=1981
Line 579: Line 220:
  |url=https://books.google.com/books?id=drnY3Vjix3kC
  |url=https://books.google.com/books?id=drnY3Vjix3kC
  |isbn=0-486-24073-8, 9780486240732 -->
  |isbn=0-486-24073-8, 9780486240732 -->
* {{cite book
* {{cite book |last=Hopkins |first=J. F. P. |editor1-last=Young |editor1-first=M. J. L. |editor2-last=Latham |editor2-first=J. D. |editor3-last=Serjeant |editor3-first=R. B. |year=1990 |chapter=Geographical and Navigational Literature |title=Religion, Learning and Science in the 'Abbasid Period |series=The Cambridge history of Arabic literature |publisher=[[Cambridge University Press]] |isbn=978-0-521-32763-3}}
|last=Hopkins
* {{cite encyclopedia |last=Huffman |first=Carl A. |editor1-last=Zalta |editor1-first=Edward N. |date=8 August 2011 |title=Pythagoras |encyclopedia=Stanford Encyclopaedia of Philosophy |edition=Fall 2011 |url=http://plato.stanford.edu/archives/fall2011/entries/pythagoras/ |access-date=7 February 2012 |archive-date=2 December 2013 |archive-url=https://web.archive.org/web/20131202071830/http://plato.stanford.edu/archives/fall2011/entries/pythagoras/ |url-status=live}}
|first=J.F.P.
* {{cite book |last1=Iwaniec |first1=Henryk |author-link=Henryk Iwaniec |last2=Kowalski |first2=Emmanuel |year=2004 |title=Analytic Number Theory |series=American Mathematical Society Colloquium Publications |volume=53 |location=Providence, RI |publisher=American Mathematical Society |isbn=978-0-8218-3633-0}}
|editor1-last=Young
* {{cite book |ref={{harvid|Jowett|1871}} |translator-last=Jowett |translator-first=Benjamin |translator-link=Benjamin Jowett |year=1871 |last1=Plato |author1-link=Plato |title=Theaetetus |url=http://classics.mit.edu/Plato/theatu.html |access-date=2012-04-10 |archive-date=2011-07-09 |archive-url=https://web.archive.org/web/20110709194524/http://classics.mit.edu/Plato/theatu.html |url-status=live}}
|editor1-first=M.J.L.
* {{cite book |last1=Lam |first1=Lay Yong |last2=Ang |first2=Tian Se |year=2004 |author-link=Lam Lay Yong |title=Fleeting Footsteps: Tracing the Conception of Arithmetic and Algebra in Ancient China |edition=revised |location=Singapore |publisher=World Scientific |isbn=978-981-238-696-0 |url=https://books.google.com/books?id=fGYmpWE5UZgC |access-date=2016-02-28}}
|editor2-last=Latham
* {{ cite book |last=Long |first=Calvin T. |year=1972 |title=Elementary Introduction to Number Theory |edition=2nd |publisher=[[D.C. Heath and Company]] |location=Lexington, VA |lccn=77171950}}
|editor2-first=J.D.
* {{cite book |last=Mahoney |first=M. S. |year=1994 |title=The Mathematical Career of Pierre de Fermat, 1601–1665 |edition=Reprint, 2nd |publisher=[[Princeton University Press]] |isbn=978-0-691-03666-3 |url=https://books.google.com/books?id=My19IcewAnoC |access-date=2016-02-28}}
|editor3-last=Serjeant
|editor3-first=R.B.
|year=1990
|chapter=Geographical and Navigational Literature
|title=Religion, Learning and Science in the 'Abbasid Period
|series=The Cambridge history of Arabic literature
|publisher=[[Cambridge University Press]]
|isbn=978-0-521-32763-3}}
* {{cite encyclopedia
|last=Huffman
|first=Carl A.
|editor1-last=Zalta
|editor1-first=Edward N.
|date=8 August 2011
|title=Pythagoras
|encyclopedia=Stanford Encyclopaedia of Philosophy
|edition=Fall 2011
|url=http://plato.stanford.edu/archives/fall2011/entries/pythagoras/
|access-date=7 February 2012
|archive-date=2 December 2013
|archive-url=https://web.archive.org/web/20131202071830/http://plato.stanford.edu/archives/fall2011/entries/pythagoras/
|url-status=live
}}
* {{cite book
|last1=Iwaniec
|first1=Henryk
|author-link=Henryk Iwaniec
|last2=Kowalski
|first2=Emmanuel
|year=2004
|title=Analytic Number Theory
|series=American Mathematical Society Colloquium Publications
|volume=53
|location=Providence, RI
|publisher=American Mathematical Society
|isbn=978-0-8218-3633-0
}}
* {{cite book
|ref={{harvid|Jowett|1871}}
|last2=Jowett
|first2=Benjamin (trans.)
|author2-link=Benjamin Jowett
|year=1871
|last1=Plato
|author1-link=Plato
|title=Theaetetus
|url=http://classics.mit.edu/Plato/theatu.html
|access-date=2012-04-10
|archive-date=2011-07-09
|archive-url=https://web.archive.org/web/20110709194524/http://classics.mit.edu/Plato/theatu.html
|url-status=live
}}
* {{cite book
|last1=Lam
|first1=Lay Yong
|last2=Ang
|first2=Tian Se
|year=2004
|author-link=Lam Lay Yong
|title=Fleeting Footsteps: Tracing the Conception of Arithmetic and Algebra in Ancient China
|edition=revised
|location=Singapore
|publisher=World Scientific
|isbn=978-981-238-696-0
|url=https://books.google.com/books?id=fGYmpWE5UZgC
|access-date=2016-02-28
}}
* {{ cite book
|last = Long
|first = Calvin T.
|year = 1972
|title = Elementary Introduction to Number Theory
|edition = 2nd
|publisher = [[D.C. Heath and Company]]
|location = Lexington, VA
|lccn = 77171950 }}
* {{cite book
|last=Mahoney
|first=M.S.
|year=1994
|title=The Mathematical Career of Pierre de Fermat, 1601–1665
|edition=Reprint, 2nd
|publisher=[[Princeton University Press]]
|isbn=978-0-691-03666-3
|url=https://books.google.com/books?id=My19IcewAnoC
|access-date=2016-02-28
}}
* {{cite web
* {{cite web
<!-- {{sfn|Milne|2014|p=}} -->
<!--{{sfn|Milne|2014|p=}} -->
|last=Milne
|last=Milne
|first=J. S.
|first=J. S.
Line 683: Line 237:
|url=https://www.jmilne.org/math/CourseNotes/ant.html
|url=https://www.jmilne.org/math/CourseNotes/ant.html
|access-date=7 April 2020}}
|access-date=7 April 2020}}
* {{cite book
* {{cite book |last1=Montgomery |first1=Hugh L. |author-link=Hugh Montgomery (mathematician) |year=2007 |last2=Vaughan |first2=Robert C. |author2-link=Bob Vaughan |title=Multiplicative Number Theory: I, Classical Theory |publisher=Cambridge University Press |isbn=978-0-521-84903-6 |url=https://books.google.com/books?id=nGb1NADRWgcC |access-date=2016-02-28}}
|last1=Montgomery
* {{cite book |ref={{harvid|Morrow|1992}} |translator-last=Morrow |translator-first=Glenn Raymond |author=Euclid |year=1992 |last2=Proclus |author2-link=Proclus |title=A Commentary on Book 1 of Euclid's Elements |publisher=Princeton University Press |isbn=978-0-691-02090-7 |url=https://books.google.com/books?id=JZEHj2fEmqAC&pg=PA52}}
|first1=Hugh L.
* {{cite journal |last=Mumford |first=David |author-link=David Mumford |title=Mathematics in India: reviewed by David Mumford |journal=Notices of the American Mathematical Society |date=March 2010 |volume=57 |issue=3 |page=387 |issn=1088-9477 |url=https://www.ams.org/notices/201003/rtx100300385p.pdf |access-date=2021-04-28 |archive-date=2021-05-06 |archive-url=https://web.archive.org/web/20210506220302/https://www.ams.org/notices/201003/rtx100300385p.pdf |url-status=live}}
|author-link=Hugh Montgomery (mathematician)
* {{cite book |last=Neugebauer |first=Otto E. |year=1969 |author-link=Otto E. Neugebauer |title=The Exact Sciences in Antiquity |volume=9 |location=New York |publisher=Dover Publications |isbn=978-0-486-22332-2}}
|year=2007
* {{cite book |ref={{harvid|Neugebauer|Sachs|1945}} |last1=Neugebauer |first1=Otto E. |last2=Sachs |first2=Abraham Joseph |last3=Götze |first3=Albrecht |year=1945 |author-link=Otto E. Neugebauer |author2-link=Abraham Sachs |title=Mathematical Cuneiform Texts |series=American Oriental Series |volume=29 |publisher=[[American Oriental Society]] etc.}}
|last2=Vaughan
* {{cite web |last=O'Grady |first=Patricia |author-link=Patricia O'Grady |date=September 2004 |title=Thales of Miletus |url=http://www.iep.utm.edu/thales/ |publisher=The Internet Encyclopaedia of Philosophy |access-date=7 February 2012 |archive-date=6 January 2016 |archive-url=https://web.archive.org/web/20160106182825/http://www.iep.utm.edu/thales/ |url-status=live}}
|first2=Robert C.
* {{cite journal |ref={{harvid|Pingree|1968}} |last1=Pingree |first1=David |last2=Ya'qub |first2=ibn Tariq |author1-link=David Pingree |author2-link=Yaʿqūb ibn Ṭāriq |year=1968 |title=The Fragments of the Works of Ya'qub ibn Tariq |journal=Journal of Near Eastern Studies |volume=26}}
|author2-link=Bob Vaughan
* {{cite journal |ref={{harvid|Pingree|1970}} |last1=Pingree |first1=D. |author1-link=David Pingree |last2=al-Fazari |year=1970 |author2-link=al-Fazari |title=The Fragments of the Works of al-Fazari |journal=Journal of Near Eastern Studies |volume=28}}
|title=Multiplicative Number Theory: I, Classical Theory
* {{cite book |last=Plofker |first=Kim |author-link=Kim Plofker |year=2008 |title=Mathematics in India |title-link=Mathematics in India (book) |publisher=Princeton University Press |isbn=978-0-691-12067-6}}
|publisher=Cambridge University Press
* {{cite book |editor1-last=Qian |editor1-first=Baocong |year=1963 |language=zh |title=Suanjing shi shu (Ten Mathematical Classics) |location=Beijing |publisher=Zhonghua shuju |url=https://www.scribd.com/doc/53797787/Jigu-Suanjing%E3%80%80%E7%B7%9D%E5%8F%A4%E7%AE%97%E7%B6%93-Qian-Baocong-%E9%8C%A2%E5%AF%B6%E7%90%AE |access-date=2016-02-28 |archive-date=2013-11-02 |archive-url=https://web.archive.org/web/20131102154812/http://www.scribd.com/doc/53797787/Jigu-Suanjing%E3%80%80%E7%B7%9D%E5%8F%A4%E7%AE%97%E7%B6%93-Qian-Baocong-%E9%8C%A2%E5%AF%B6%E7%90%AE |url-status=live}}
|isbn=978-0-521-84903-6
* {{cite journal |last=Rashed |first=Roshdi |year=1980 |title=Ibn al-Haytham et le théorème de Wilson |journal=Archive for History of Exact Sciences |volume=22 |issue=4 |pages=305–321 |doi=10.1007/BF00717654 |s2cid=120885025}}
|url=https://books.google.com/books?id=nGb1NADRWgcC
* {{cite journal |last=Robson |first=Eleanor |author-link=Eleanor Robson |year=2001 |title=Neither Sherlock Holmes nor Babylon: a Reassessment of Plimpton 322 |volume=28 |journal=Historia Mathematica |issue=3 |pages=167–206 |doi=10.1006/hmat.2001.2317 |url=http://www.hps.cam.ac.uk/people/robson/neither-sherlock.pdf |archive-url=https://web.archive.org/web/20141021070742/http://www.hps.cam.ac.uk/people/robson/neither-sherlock.pdf |archive-date=2014-10-21}}
|access-date=2016-02-28
* {{cite book |last1=Sachau |first1=Eduard |author-link=Eduard Sachau |last2=Bīrūni |first2=̄Muḥammad ibn Aḥmad |author2-link=Abū Rayḥān al-Bīrūnī |year=1888 |title=Alberuni's India: An Account of the Religion, Philosophy, Literature, Geography, Chronology, Astronomy and Astrology of India, Vol. 1 |location=London |publisher=Kegan, Paul, Trench, Trübner & Co. |url=http://onlinebooks.library.upenn.edu/webbin/book/lookupname?key=Sachau%2C%20Eduard%2C%201845-1930 |access-date=2016-02-28 |archive-date=2016-03-03 |archive-url=https://web.archive.org/web/20160303235035/http://onlinebooks.library.upenn.edu/webbin/book/lookupname?key=Sachau,%20Eduard,%201845-1930 |url-status=live}}
}}
* {{cite book |last=Serre |first=Jean-Pierre |year=1996 |orig-year=1973 |author-link=Jean-Pierre Serre |title=A Course in Arithmetic |series=Graduate Texts in Mathematics |volume=7 |publisher=[[Springer Publishing|Springer]] |isbn=978-0-387-90040-7 |url=https://archive.org/details/courseinarithmet00serr}}
* {{cite book
* {{cite book |last=Smith |first=D. E. |year=1958 |title=History of Mathematics, Vol I |location=New York |publisher=Dover}}
|ref={{harvid|Morrow|1992}}
* {{cite book |ref={{harvid|Tannery|Henry|1891}} |last1=Tannery |first1=Paul |author1-link=Paul Tannery |editor1=Charles Henry |editor1-link=Charles Henry (librarian) |year=1891 |last2=Fermat |first2=Pierre de |author2-link=Pierre de Fermat |language=fr, la |title=Oeuvres de Fermat |series=(4 Vols.) |location=Paris |publisher=Imprimerie Gauthier-Villars et Fils |url=https://archive.org/details/oeuvresdefermat01ferm}} [https://archive.org/details/oeuvresdefermat01ferm Volume 1] [https://archive.org/details/oeuvresdefermat02ferm Volume 2] [https://archive.org/details/oeuvresdefermat03ferm Volume 3] [https://archive.org/details/oeuvresdefermat04ferm Volume 4 (1912)]
|last1=Morrow
* {{cite book |ref={{harvid|Taylor|1818}} |translator-last=Taylor |translator-first=Thomas |translator-link=Thomas Taylor (neoplatonist) |year=1818 |author1=Iamblichus |author1-link=Iamblichus |title=Life of Pythagoras or, Pythagoric Life |location=London |publisher=J. M. Watkins}} For other editions, see [[Iamblichus#List of editions and translations]]
|first1=Glenn Raymond (trans., ed.)
* {{cite book |last=Truesdell |first=C. A. |author-link=Clifford Truesdell |year=1984 |translator-last=Hewlett |translator-first=John |chapter=Leonard Euler, Supreme Geometer |title=Leonard Euler, Elements of Algebra |edition=reprint of 1840 5th |location=New York |publisher=[[Springer-Verlag]] |isbn=978-0-387-96014-2 |chapter-url=https://books.google.com/books?id=mkOhy6v7kIsC}} This Google books preview of ''Elements of algebra'' lacks Truesdell's intro, which is reprinted (slightly abridged) in the following book:
|year=1992
* {{cite book |last=Truesdell |first=C. A. |author-link=Clifford Truesdell |year=2007 |editor1-last=Dunham |editor1-first=William |chapter=Leonard Euler, Supreme Geometer |title=The Genius of Euler: reflections on his life and work |series=Volume 2 of MAA tercentenary Euler celebration |location=New York |publisher=[[Mathematical Association of America]] |isbn=978-0-88385-558-4 |chapter-url=https://books.google.com/books?id=M4-zUnrSxNoC |access-date=2016-02-28}}
|last2=Proclus
* {{cite book |last=Varadarajan |first=V. S. |year=2006 |title=Euler Through Time: A New Look at Old Themes |publisher=[[American Mathematical Society]] |isbn=978-0-8218-3580-7 |url=https://books.google.com/books?id=CYyKTREGYd0C |access-date=2016-02-28}}
|author2-link=Proclus
* {{cite journal |last=Vardi |first=Ilan |title=Archimedes' Cattle Problem |date=April 1998 |journal=American Mathematical Monthly |volume=105 |issue=4 |pages=305–319 |doi=10.2307/2589706 |url=https://www.cs.drexel.edu/~crorres/Archimedes/Cattle/cattle_vardi.pdf |jstor=2589706 |citeseerx=10.1.1.383.545 |access-date=2012-04-08 |archive-date=2012-07-15 |archive-url=https://web.archive.org/web/20120715031904/https://www.cs.drexel.edu/~crorres/Archimedes/Cattle/cattle_vardi.pdf |url-status=live}}
|title=A Commentary on Book 1 of Euclid's Elements
* {{cite book |last1=van der Waerden |first1=Bartel L. |translator-last=Dresden |translator-first=Arnold |year=1961 |author-link=Bartel Leendert van der Waerden |title=Science Awakening |volume=1 or 2 |location=New York |publisher=[[Oxford University Press]]}}
|publisher=Princeton University Press
|isbn=978-0-691-02090-7
|url=https://books.google.com/books?id=JZEHj2fEmqAC&pg=PA52
}}
* {{cite journal
|last=Mumford
|first=David
|author-link=David Mumford
|title=Mathematics in India: reviewed by David Mumford
|journal=Notices of the American Mathematical Society
|date=March 2010
|volume=57
|issue=3
|page=387
|issn=1088-9477
|url=https://www.ams.org/notices/201003/rtx100300385p.pdf
|access-date=2021-04-28
|archive-date=2021-05-06
|archive-url=https://web.archive.org/web/20210506220302/https://www.ams.org/notices/201003/rtx100300385p.pdf
|url-status=live
}}
* {{cite book
|last=Neugebauer
|first=Otto E.
|year=1969
|author-link=Otto E. Neugebauer
|title=The Exact Sciences in Antiquity
|journal=Acta Historica Scientiarum Naturalium et Medicinalium
|volume=9
|pages=1–191
|edition=corrected reprint of the 1957
|location=New York
|publisher=Dover Publications
|pmid=14884919
|isbn=978-0-486-22332-2
|url=https://books.google.com/books?id=JVhTtVA2zr8C
|access-date=2016-03-02
|archive-date=2023-03-01
|archive-url=https://web.archive.org/web/20230301144241/https://books.google.com/books?id=JVhTtVA2zr8C
|url-status=live
}}
* {{cite book
|ref={{harvid|Neugebauer & Sachs|1945}}
|last1=Neugebauer
|first1=Otto E.
|last2=Sachs
|first2=Abraham Joseph
|last3=Götze
|first3= Albrecht
|year=1945
|author-link=Otto E. Neugebauer
|author2-link=Abraham Sachs
|title=Mathematical Cuneiform Texts
|series=American Oriental Series
|volume=29
|publisher=[[American Oriental Society]] etc.
}}
* {{cite web
|last=O'Grady
|first=Patricia
|author-link=Patricia O'Grady
|date=September 2004
|title=Thales of Miletus
|url=http://www.iep.utm.edu/thales/
|publisher=The Internet Encyclopaedia of Philosophy
|access-date=7 February 2012
|archive-date=6 January 2016
|archive-url=https://web.archive.org/web/20160106182825/http://www.iep.utm.edu/thales/
|url-status=live
}}
* {{cite journal
|ref={{harvid|Pingree|1968}}
|last1=Pingree
|first1=David
|last2=Ya'qub
|first2=ibn Tariq
|author1-link=David Pingree
|author2-link=Yaʿqūb ibn Ṭāriq
|year=1968
|title=The Fragments of the Works of Ya'qub ibn Tariq
|journal=Journal of Near Eastern Studies
|volume=26
}}
* {{cite journal
|ref={{harvid|Pingree|1970}}
|last1=Pingree|first1=D.|author1-link=David Pingree
|last2=al-Fazari
|year=1970
|author2-link=al-Fazari
|title=The Fragments of the Works of al-Fazari
|journal=Journal of Near Eastern Studies
|volume=28
}}
* {{cite book
|last=Plofker|first=Kim|author-link=Kim Plofker
|year=2008
|title=Mathematics in India
| title-link = Mathematics in India (book)
|publisher=Princeton University Press
|isbn=978-0-691-12067-6
}}
* {{cite book
|editor1-last=Qian
|editor1-first=Baocong
|year=1963
|language=zh
|title=Suanjing shi shu (Ten Mathematical Classics)
|location=Beijing
|publisher=Zhonghua shuju
|url=https://www.scribd.com/doc/53797787/Jigu-Suanjing%E3%80%80%E7%B7%9D%E5%8F%A4%E7%AE%97%E7%B6%93-Qian-Baocong-%E9%8C%A2%E5%AF%B6%E7%90%AE
|access-date=2016-02-28
|archive-date=2013-11-02
|archive-url=https://web.archive.org/web/20131102154812/http://www.scribd.com/doc/53797787/Jigu-Suanjing%E3%80%80%E7%B7%9D%E5%8F%A4%E7%AE%97%E7%B6%93-Qian-Baocong-%E9%8C%A2%E5%AF%B6%E7%90%AE
|url-status=live
}}
* {{cite journal
|last=Rashed
|first=Roshdi
|year=1980
|title=Ibn al-Haytham et le théorème de Wilson
|journal=Archive for History of Exact Sciences
|volume=22
|issue=4
|pages=305–321
|doi=10.1007/BF00717654
|s2cid=120885025
}}
* {{cite journal
|last=Robson
|first=Eleanor
|author-link=Eleanor Robson
|year=2001
|title=Neither Sherlock Holmes nor Babylon: a Reassessment of Plimpton 322
|volume=28
|journal=Historia Mathematica
|issue=3
|pages=167–206
|doi=10.1006/hmat.2001.2317
|url=http://www.hps.cam.ac.uk/people/robson/neither-sherlock.pdf
|archive-url=https://web.archive.org/web/20141021070742/http://www.hps.cam.ac.uk/people/robson/neither-sherlock.pdf
|archive-date=2014-10-21
}}
* {{cite book
|last1=Sachau
|first1=Eduard
|author-link=Eduard Sachau
|last2=Bīrūni
|first2=̄Muḥammad ibn Aḥmad
|author2-link=Abū Rayḥān al-Bīrūnī
|year=1888
|title=Alberuni's India: An Account of the Religion, Philosophy, Literature, Geography, Chronology, Astronomy and Astrology of India, Vol. 1
|location=London
|publisher=Kegan, Paul, Trench, Trübner & Co.
|url=http://onlinebooks.library.upenn.edu/webbin/book/lookupname?key=Sachau%2C%20Eduard%2C%201845-1930
|access-date=2016-02-28
|archive-date=2016-03-03
|archive-url=https://web.archive.org/web/20160303235035/http://onlinebooks.library.upenn.edu/webbin/book/lookupname?key=Sachau,%20Eduard,%201845-1930
|url-status=live
}}
* {{cite book
|last=Serre
|first=Jean-Pierre
|year=1996
|orig-year=1973
|author-link=Jean-Pierre Serre
|title=A Course in Arithmetic
|series=Graduate Texts in Mathematics
|volume=7
|publisher=[[Springer Publishing|Springer]]
|isbn=978-0-387-90040-7
|url=https://archive.org/details/courseinarithmet00serr
}}
* {{cite book
|last=Smith
|first=D.E.
|year=1958
|title=History of Mathematics, Vol I
|location=New York
|publisher=Dover Publications
}}
* {{cite book
|ref={{harvid|Tannery|Henry|1891}}
|last1=Tannery
|first1=Paul
|author1-link=Paul Tannery
|editor1=Charles Henry
|editor1-link=Charles Henry (librarian)
|year=1891
|last2=Fermat
|first2=Pierre de
|author2-link=Pierre de Fermat
|language=fr, la
|title=Oeuvres de Fermat
|series=(4 Vols.)
|location=Paris
|publisher=Imprimerie Gauthier-Villars et Fils
|url=https://archive.org/details/oeuvresdefermat01ferm
}} [https://archive.org/details/oeuvresdefermat01ferm Volume 1] [https://archive.org/details/oeuvresdefermat02ferm Volume 2] [https://archive.org/details/oeuvresdefermat03ferm Volume 3] [https://archive.org/details/oeuvresdefermat04ferm Volume 4 (1912)]
* {{cite book
|ref={{harvid|Taylor|1818}}
|last2=Taylor
|first2=Thomas (trans.)
|author2-link=Thomas Taylor (neoplatonist)
|year=1818
|author1=Iamblichus
|author1-link=Iamblichus
|title=Life of Pythagoras or, Pythagoric Life
|location=London
|publisher=J.M. Watkins
|url=http://www.aurumsolis.info/index.php?option=com_phocadownload&view=category&download=1%3Aiamblichus-the-pythagorean-life&id=19%3Awritings-from-the-founders&Itemid=143&lang=en
|url-status=bot: unknown
|archive-url=https://web.archive.org/web/20110721184914/http://www.aurumsolis.info/index.php?option=com_phocadownload&view=category&download=1%3Aiamblichus-the-pythagorean-life&id=19%3Awritings-from-the-founders&Itemid=143&lang=en
|archive-date=2011-07-21
}} For other editions, see [[Iamblichus#List of editions and translations]]
* {{cite book
|last=Truesdell
|first=C.A.
|author-link=Clifford Truesdell
|year=1984
|editor1-last=Hewlett
|editor1-first=John (trans.)
|chapter=Leonard Euler, Supreme Geometer
|title=Leonard Euler, Elements of Algebra
|edition=reprint of 1840 5th
|location=New York
|publisher=[[Springer-Verlag]]
|isbn=978-0-387-96014-2
|chapter-url=https://books.google.com/books?id=mkOhy6v7kIsC
}} This Google books preview of ''Elements of algebra'' lacks Truesdell's intro, which is reprinted (slightly abridged) in the following book:
* {{cite book
|last=Truesdell
|first=C.A.
|author-link=Clifford Truesdell
|year=2007
|editor1-last=Dunham
|editor1-first=William
|chapter=Leonard Euler, Supreme Geometer
|title=The Genius of Euler: reflections on his life and work
|series=Volume 2 of MAA tercentenary Euler celebration
|location=New York
|publisher=[[Mathematical Association of America]]
|isbn=978-0-88385-558-4
|chapter-url=https://books.google.com/books?id=M4-zUnrSxNoC
|access-date=2016-02-28
}}
* {{cite book
|last=Varadarajan
|first=V.S.
|year=2006
|title=Euler Through Time: A New Look at Old Themes
|publisher=[[American Mathematical Society]]
|isbn=978-0-8218-3580-7
|url=https://books.google.com/books?id=CYyKTREGYd0C
|access-date=2016-02-28
}}
* {{cite journal
|last=Vardi
|first=Ilan
|title=Archimedes' Cattle Problem
|date=April 1998
|journal=American Mathematical Monthly
|volume=105
|issue=4
|pages=305–319
|url=https://www.cs.drexel.edu/~crorres/Archimedes/Cattle/cattle_vardi.pdf
|doi=10.2307/2589706
|jstor=2589706
|citeseerx=10.1.1.383.545
|access-date=2012-04-08
|archive-date=2012-07-15
|archive-url=https://web.archive.org/web/20120715031904/https://www.cs.drexel.edu/~crorres/Archimedes/Cattle/cattle_vardi.pdf
|url-status=live
}}
* {{cite book
|ref={{harvid|van der Waerden|1961}}
|last1=van der Waerden
|first1=Bartel L.
|last2=Dresden
|first2=Arnold (trans)
|year=1961
|author-link=Bartel Leendert van der Waerden
|title=Science Awakening
|volume=1 or 2
|location=New York
|publisher=[[Oxford University Press]]
}}
<!-- Alternative Google books limited preview
<!-- Alternative Google books limited preview
url=https://books.google.com/books?id=S_T6Pt2qZ5YC&
url=https://books.google.com/books?id=S_T6Pt2qZ5YC&
Line 996: Line 264:
Publisher Springer, 1974
Publisher Springer, 1974
{{isbn|90-01-93103-0}}, {{isbn|978-90-01-93103-2}} -->
{{isbn|90-01-93103-0}}, {{isbn|978-90-01-93103-2}} -->
* {{cite book
* {{cite book |last=Weil |first=André |year=1984 |author-link=André Weil |title=Number Theory: an Approach Through History – from Hammurapi to Legendre |location=Boston |publisher=Birkhäuser |isbn=978-0-8176-3141-3 |url=https://books.google.com/books?id=XSV0hDFj3loC |access-date=2016-02-28}}
|last=Weil
|first=André
|year=1984
|author-link=André Weil
|title=Number Theory: an Approach Through History – from Hammurapi to Legendre
|location=Boston
|publisher=Birkhäuser
|isbn=978-0-8176-3141-3
|url=https://books.google.com/books?id=XSV0hDFj3loC
|access-date=2016-02-28
}}
{{refend}}
{{refend}}
* {{Citizendium}}
* {{Citizendium}}


==Further reading==
== Further reading ==
Two of the most popular introductions to the subject are:
Two of the most popular introductions to the subject are:
* {{Cite book
* {{Cite book |first1=G. H. |last1=Hardy |author1-link=G. H. Hardy |first2=E. M. |last2=Wright |title=An introduction to the theory of numbers |year=2008 |orig-year=1938 |url=https://books.google.com/books?id=rey9wfSaJ9EC |publisher=[[Oxford University Press]] |edition=rev. by D. R. Heath-Brown and J. H. Silverman, 6th |isbn=978-0-19-921986-5 |ref=none}}
|author1=G.H. Hardy |author1-link=G. H. Hardy
* {{cite book |last=Vinogradov |first=I. M. |author1-link=Ivan Matveyevich Vinogradov |title=Elements of Number Theory |location=Mineola, NY |publisher=Dover Publications |year=2003 |orig-year=1954 |edition=reprint of the 1954}}
|author2=E.M. Wright |title=An introduction to the theory of numbers |year=2008 |orig-year=1938
|url=https://books.google.com/books?id=rey9wfSaJ9EC | publisher=[[Oxford University Press]] |edition=rev. by D.R. Heath-Brown and J.H. Silverman, 6th
|isbn=978-0-19-921986-5 |access-date=2016-03-02}}
* {{cite book
|last=Vinogradov
|first=I.M. |author1-link=Ivan Matveyevich Vinogradov
|title=Elements of Number Theory |location=Mineola, NY
|publisher=Dover Publications |year=2003
|orig-year=1954 |edition=reprint of the 1954
}}


Hardy and Wright's book is a comprehensive classic, though its clarity sometimes suffers due to the authors' insistence on elementary methods ([[#CITEREFApostoln.d.|Apostol n.d.]]).
Hardy and Wright's book is a comprehensive classic, though its clarity sometimes suffers due to the authors' insistence on elementary methods ([[#CITEREFApostol1981|Apostol 1981]]).
Vinogradov's main attraction consists in its set of problems, which quickly lead to Vinogradov's own research interests; the text itself is very basic and close to minimal. Other popular first introductions are:
Vinogradov's main attraction consists in its set of problems, which quickly lead to Vinogradov's own research interests; the text itself is very basic and close to minimal. Other popular first introductions are:
* {{Cite book
* {{Cite book |author1=Ivan M. Niven |author1-link=Ivan M. Niven |author2=Herbert S. Zuckerman |author3=Hugh L. Montgomery |author3-link=Hugh L. Montgomery |title=An introduction to the theory of numbers |year=2008 |orig-year=1960 |url=https://books.google.com/books?id=V52HIcKguJ4C |publisher=[[John Wiley & Sons]] |edition=reprint of the 5th 1991 |isbn=978-81-265-1811-1 |access-date=2016-02-28}}
|author1=Ivan M. Niven |author1-link=Ivan M. Niven
* {{Cite book |first=Kenneth H. |last=Rosen |title=Elementary Number Theory |year=2010 |url=https://books.google.com/books?id=JqycRAAACAAJ |publisher=[[Pearson Education]] |edition=6th |isbn=978-0-321-71775-7 |access-date=2016-02-28}}
|author2=Herbert S. Zuckerman
|author3=Hugh L. Montgomery |author3-link=Hugh L. Montgomery
|title=An introduction to the theory of numbers |year=2008 |orig-year=1960
|url=https://books.google.com/books?id=V52HIcKguJ4C
|publisher=[[John Wiley & Sons]]
|edition=reprint of the 5th 1991
|isbn= 978-81-265-1811-1
|access-date=2016-02-28}}
* {{Cite book
|author1=Kenneth H. Rosen
|title=Elementary Number Theory |year=2010
|url=https://books.google.com/books?id=JqycRAAACAAJ
| publisher=[[Pearson Education]]
|edition=6th
|isbn=978-0-321-71775-7
|access-date=2016-02-28}}


Popular choices for a second textbook include:
Popular choices for a second textbook include:
* {{cite book |last1=Borevich |first1=A. I. |last2=Shafarevich |first2=Igor R. |author-link1= Borevich |author-link2=Igor Shafarevich |title=Number theory
* {{cite book |last1=Borevich |first1=A. I. |last2=Shafarevich |first2=Igor R. |author-link1=Borevich |author-link2=Igor Shafarevich |title=Number theory |volume=20 |year=1966 |url=https://books.google.com/books?id=njgVUjjO-EAC |publisher=[[Academic Press]] |location=Boston, MA |series=Pure and Applied Mathematics |isbn=978-0-12-117850-5 |mr=0195803}}
|volume=20 |year=1966 |url=https://books.google.com/books?id=njgVUjjO-EAC |publisher=[[Academic Press]] |location=Boston, MA |series=Pure and Applied Mathematics |isbn=978-0-12-117850-5 |mr=0195803}}
* {{cite book |last=Serre |first=Jean-Pierre |year=1996 |orig-year=1973 |author-link=Jean-Pierre Serre |title=A course in arithmetic |series=[[Graduate Texts in Mathematics]] |volume=7 |publisher=Springer |isbn=978-0-387-90040-7 |url=https://archive.org/details/courseinarithmet00serr |ref=none}}
* {{cite book |last=Serre |first=Jean-Pierre |year=1996 |orig-year=1973 |author-link=Jean-Pierre Serre |title=A course in arithmetic |series=[[Graduate Texts in Mathematics]] |volume=7 |publisher=Springer |isbn=978-0-387-90040-7 |url=https://archive.org/details/courseinarithmet00serr }}


==External links==
== External links ==
{{Commons}}
{{Wikiquote}}
{{Wikiquote}}
* {{Commons category-inline}}
* [https://encyclopediaofmath.org/wiki/Number_theory Number Theory] entry in the [[Encyclopedia of Mathematics]]
* [https://encyclopediaofmath.org/wiki/Number_theory Number Theory] entry in the [[Encyclopedia of Mathematics]]
* [http://www.numbertheory.org/ Number Theory Web]
* [http://www.numbertheory.org/ Number Theory Web]
 
{{Number theory}}
{{Number theory |expanded}}
{{Number theory tables}}
{{Areas of mathematics |collapsed}}
{{Areas of mathematics}}
{{Computer science}}
{{Computer science}}
{{Authority control}}
{{Authority control}}
[[Category:Number theory| ]]
[[Category:Number theory| ]]

Latest revision as of 14:45, 24 March 2026


File:A 150x150 Ulam spiral of dots with varying widths (emphasis primes).svg
The distribution of prime numbers, a central point of study in number theory, illustrated by an Ulam spiral. It shows the conditional independence between being prime and being a value of certain quadratic polynomials.

Template:Math topics TOC 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, rational numbers), or defined as generalizations of the integers (for example, algebraic integers).

Integers can be considered either in themselves or as solutions to equations (Diophantine geometry). Questions in number theory can often be understood through the study of analytical objects, such as the Riemann zeta function, that encode properties of the integers, primes or other number-theoretic objects in some fashion (analytic number theory). One may also study real numbers in relation to rational numbers, as for instance how irrational numbers can be approximated by fractions (Diophantine approximation).

Number theory is one of the oldest branches of mathematics alongside geometry. One quirk of number theory is that it deals with statements that are simple to understand but are very difficult to solve. Examples of this are Fermat's Last Theorem, which was proved 358 years after the original formulation, and Goldbach's conjecture, which remains unsolved since the 18th century. German mathematician Carl Friedrich Gauss (1777–1855) once remarked, "Mathematics is the queen of the sciences—and number theory is the queen of mathematics."[1] It was regarded as the epitome of pure mathematics, with no applications outside mathematics, until the 1970s, when prime numbers became the basis for the creation of public-key cryptography algorithms, such as the RSA cryptosystem.

Definition[edit | edit source]

Number theory is the branch of mathematics that studies integers and their properties and relations.[2] The integers comprise a set that extends the set of natural numbers {1,2,3,} to include number 0 and the negation of natural numbers {1,2,3,}. Number theorists study prime numbers as well as the properties of mathematical objects constructed from integers (for example, rational numbers), or defined as generalizations of the integers (for example, algebraic integers).[3][4]

Number theory is closely related to arithmetic and some authors use the terms as synonyms.[5] However, the word "arithmetic" is used today to mean the study of numerical operations and extends to the real numbers.[6] In a more specific sense, number theory is restricted to the study of integers and focuses on their properties and relationships.[7] Traditionally, it is known as higher arithmetic.[8] By the early twentieth century, the term number theory had been widely adopted.[note 1] The term number means whole numbers, which refers to either the natural numbers or the integers.[9][10][11]

Elementary number theory studies aspects of integers that can be investigated using elementary methods such as elementary proofs.[12] Analytic number theory, by contrast, relies on complex numbers and techniques from analysis and calculus.[13] Algebraic number theory employs algebraic structures such as fields and rings to analyze the properties of and relations between numbers. Geometric number theory uses concepts from geometry to study numbers.[14] Further branches of number theory are probabilistic number theory,[15] combinatorial number theory,[16] computational number theory,[17] and applied number theory, which examines the application of number theory to science and technology.[18]

History[edit | edit source]

Babylonian tablet listing Pythagorean triples.
The Babylonians demonstrated an early understanding of Pythagorean triples.

In recorded history, knowledge of numbers existed in the ancient civilisations of Mesopotamia, Egypt, China, and India.[19] The earliest historical find of an arithmetical nature is the Plimpton 322, dated c. 1800 BC. It is a broken clay tablet that contains a list of Pythagorean triples, that is, integers (a,b,c) such that a2+b2=c2. The triples are too numerous and too large to have been obtained by brute force.[20] The table's layout suggests that it was constructed by means of what amounts, in modern language, to the identity[21](12(x1x))2+1=(12(x+1x))2,which is implicit in routine Old Babylonian exercises.[22] It has been suggested instead that the table was a source of numerical examples for school problems.[23][note 2] Plimpton 322 tablet is the only surviving evidence of what today would be called number theory within Babylonian mathematics, though a kind of Babylonian algebra was much more developed.[24]

Although other civilizations probably influenced Greek mathematics at the beginning,[25] all evidence of such borrowings appear relatively late,[26][27] and it is likely that Greek Template:Tlit, the theoretical or philosophical study of numbers, is an indigenous tradition.[28] Ancient Greek mathematicians conventionally separated numbers (mostly positive integers but occasionally rationals) from magnitudes or lengths, with only the former being the subject of arithmetic.

A keen interest in divisibility is found in early Greek arithmetic. Pythagoreans often attributed mystical qualities to perfect and amicable numbers, and dedicated time to the study polygonal or figurate numbers.[29] Later, Euclid devoted part of his Elements to topics that belong to elementary number theory, including prime numbers and divisibility.[30] He gave the Euclidean algorithm for computing the greatest common divisor of two numbers and a proof implying the infinitude of primes. Building on the works of the earlier Pythagoreans, Nicomachus of Gerasa wrote an Introduction to Arithmetic that was to be influential in later centuries, while Theon of Smyrna's Mathematics Useful For Understanding Plato discusses the idea of congruences. The most important late antique author was arguably Diophantus of Alexandria, who probably lived in the 3rd century AD. He wrote the Arithmetica, a collection of worked-out problems where the task is invariably to find rational solutions to a system of polynomial equations, usually of the form f(x,y)=z2 or f(x,y,z)=w2. In modern parlance, Diophantine equations are polynomial equations to which rational or integer solutions are sought.

After the fall of Rome, development shifted to Asia, albeit intermittently. The Chinese remainder theorem appears as an exercise[31] in Sunzi Suanjing (between the third and fifth centuries).[32] The result was later generalized with a complete solution called Da-yan-shu (大衍術) in Qin Jiushao's 1247 Mathematical Treatise in Nine Sections.[33][34] There is also some numerical mysticism in Chinese mathematics,[note 3] but, unlike that of the Pythagoreans, it seems to have led nowhere. While Greek astronomy probably influenced Indian learning[35] it seems to be the case that Indian mathematics is otherwise an autochthonous tradition.[36][37] Āryabhaṭa (476–550 AD) showed that pairs of simultaneous congruences na1modm1, na2modm2 could be solved by a method he called kuṭṭaka, or pulveriser;[38] this is a procedure close to the Euclidean algorithm.[39] Āryabhaṭa seems to have had in mind applications to astronomical calculations.[35] Brahmagupta (628 AD) started the systematic study of indefinite quadratic equations—in particular, the Pell equation. A general procedure for solving Pell's equation was probably found by Jayadeva; the earliest surviving exposition appears in Bhāskara II's Bīja-gaṇita (twelfth century).[40]

In the early ninth century, the caliph al-Ma'mun ordered translations of many Greek mathematical works and at least one Sanskrit work.[41][42] Diophantus's main work, the Arithmetica, was translated into Arabic by Qusta ibn Luqa (820–912). Part of the treatise al-Fakhri (by al-Karajī, 953 – c. 1029) builds on it to some extent. According to Rashed Roshdi, Al-Karajī's contemporary Ibn al-Haytham knew[43] what would later be called Wilson's theorem. Other than a treatise on squares in arithmetic progression by Fibonacci no number theory to speak of was done in western Europe during the Middle Ages. Matters started to change in Europe in the late Renaissance, thanks to a renewed study of the works of Greek antiquity. A catalyst was the textual emendation and translation into Latin of Diophantus' Arithmetica.[44]

French mathematician Pierre de Fermat (1607–1665) never published his writings but communicated through correspondence and wrote in marginal notes instead.[45] His contributions to number theory brought renewed interest in the field in Europe. He conjectured Fermat's little theorem, a basic result in modular arithmetic, and Fermat's Last Theorem, as well as proved Fermat's right triangle theorem.[2][46] He also studied prime numbers, the four-square theorem, and Pell's equations.[47][48]

The interest of Leonhard Euler (1707–1783) in number theory was first spurred in 1729, when a friend of his, the amateur[note 4] Christian Goldbach, pointed him towards some of Fermat's work on the subject.[49][50] This has been called the "rebirth" of modern number theory,[51] after Fermat's relative lack of success in getting his contemporaries' attention for the subject.[52] He proved Fermat's assertions, including Fermat's little theorem; made initial work towards a proof that every integer is the sum of four squares;[53] and specific cases of Fermat's Last Theorem.[54] He wrote on the link between continued fractions and Pell's equation.[55][56] He made the first steps towards analytic number theory.[57]

Three European contemporaries continued the work in elementary number theory. Joseph-Louis Lagrange (1736–1813) gave full proofs of the four-square theorem, Wilson's theorem, and developed the basic theory of Pell's equations. Adrien-Marie Legendre (1752–1833) stated the law of quadratic reciprocity. He also conjectured what amounts to the prime number theorem and Dirichlet's theorem on arithmetic progressions. He gave a full treatment of the equation ax2+by2+cz2=0.[58] In his old age, he was the first to prove Fermat's Last Theorem for n=5.[59] Carl Friedrich Gauss (1777–1855) wrote Disquisitiones Arithmeticae (1801), which had an immense influence in the area of number theory and set its agenda for much of the 19th century. Gauss proved in this work the law of quadratic reciprocity[60] and developed the theory of quadratic forms. He also introduced some basic notation to congruences and devoted a section to computational matters, including primality tests.[61] He established a link between roots of unity and number theory.[62] In this way, Gauss arguably made forays towards Évariste Galois's work and the area algebraic number theory.

Photograph of Bernhard Reimann.
The Riemann hypothesis is of interest in analytic number theory.

Starting early in the nineteenth century, the following developments gradually took place:

  • The rise to self-consciousness of number theory (or higher arithmetic) as a field of study.[63]
  • The development of much of modern mathematics necessary for basic modern number theory: complex analysis, group theory, Galois theory—accompanied by greater rigor in analysis and abstraction in algebra.
  • The rough subdivision of number theory into its modern subfields—in particular, analytic and algebraic number theory.

Algebraic number theory may be said to start with the study of reciprocity and cyclotomy, but truly came into its own with the development of abstract algebra and early ideal theory and valuation theory; see below. A conventional starting point for analytic number theory is Dirichlet's theorem on arithmetic progressions (1837),[64][65] whose proof introduced L-functions and involved some asymptotic analysis and a limiting process on a real variable.[66] The first use of analytic ideas in number theory actually goes back to Euler (1730s),[67][68] who used formal power series and non-rigorous (or implicit) limiting arguments. The use of complex analysis in number theory comes later: the work of Bernhard Riemann (1859) on the zeta function is the canonical starting point;[69] Jacobi's four-square theorem (1839), which predates it, belongs to an initially different strand that has by now taken a leading role in analytic number theory (modular forms).[70]

The American Mathematical Society awards the Cole Prize in Number Theory. Moreover, number theory is one of the three mathematical subdisciplines rewarded by the Fermat Prize.

Main subdivisions[edit | edit source]

Elementary number theory[edit | edit source]

Paul Erdős (left) teaching a young Terence Tao (right).
Number theorists Paul Erdős and Terence Tao in 1985, when Erdős was 72 and Tao was 10

Elementary number theory deals with the topics in number theory by means of basic methods in arithmetic.[4] Its primary subjects of study are divisibility, factorization, and primality, as well as congruences in modular arithmetic.[71][12] Other topics in elementary number theory include Diophantine equations, continued fractions, integer partitions, and Diophantine approximations.[72]

Arithmetic is the study of numerical operations and investigates how numbers are combined and transformed using the arithmetic operations of addition, subtraction, multiplication, division, exponentiation, extraction of roots, and logarithms. Multiplication, for instance, is an operation that combines two numbers, referred to as factors, to form a single number, termed the product, such as 2×3=6.[73]

Divisibility is a property between two nonzero integers related to division. An integer a is said to be divisible by a nonzero integer b if a is a multiple of b; that is, if there exists an integer q such that a=bq. An equivalent formulation is that b divides a and is denoted by a vertical bar, which in this case is b|a. Conversely, if this were not the case, then a would not be divided evenly by b, resulting in a remainder. Euclid's division lemma asserts that a and b can generally be written as a=bq+r, where the remainder r accounts for the smallest positive leftover quantity. Elementary number theory studies divisibility rules in order to quickly identify if a given integer is divisible by a fixed divisor. For instance, it is known that any integer is divisible by 3 if its decimal digit sum is divisible by 3.[74][9][75]

√3 = 1 + 1/(1 + 1/(2 + 1/(1 + 1/(2 + 1/...))))
Example of a continued fraction.

A common divisor of several nonzero integers is an integer that divides all of them. The greatest common divisor (gcd) is the largest of such divisors. Two integers are said to be coprime or relatively prime to one another if their greatest common divisor, and simultaneously their only divisor, is 1. The Euclidean algorithm computes the greatest common divisor of two integers a,b by means of repeatedly applying the division lemma and shifting the divisor and remainder after every step. The algorithm can be extended to solve a special case of linear Diophantine equations ax+by=1. A Diophantine equation has several unknowns and integer coefficients. Another kind of Diophantine equation is described in the Pythagorean theorem, x2+y2=z2, whose solutions are called Pythagorean triples if they are all integers.[9][10] Another kind of expression is the continued fraction, which writes a sum of an integer and a fraction whose denominator is another such sum.[76]

Elementary number theory studies the divisibility properties of integers such as parity (even and odd numbers), prime numbers, and perfect numbers. Important number-theoretic functions include the divisor-counting function, the divisor summatory function and its modifications, and Euler's totient function. A prime number is an integer greater than 1 whose only positive divisors are 1 and the prime itself. A positive integer greater than 1 that is not prime is called a composite number. Euclid's theorem demonstrates that there are infinitely many prime numbers that comprise the set {2,3,5,7,11,}. The sieve of Eratosthenes was devised as an efficient algorithm for identifying all primes up to a given natural number by eliminating all composite numbers.[77]

Factorization is a method of expressing a number as a product. Specifically in number theory, integer factorization is the decomposition of an integer into a product of integers. The process of repeatedly applying this procedure until all factors are prime is known as prime factorization. A fundamental property of primes is shown in Euclid's lemma. It is a consequence of the lemma that if a prime divides a product of integers, then that prime divides at least one of the factors in the product. The unique factorization theorem is the fundamental theorem of arithmetic that relates to prime factorization. The theorem states that every integer greater than 1 can be factorised into a product of prime numbers and that this factorisation is unique up to the order of the factors. For example, 120 is expressed uniquely as 2×2×2×3×5 or simply 23×3×5.[78][9]

Modular arithmetic works with finite sets of integers and introduces the concepts of congruence and residue classes. A congruence of two integers a,b modulo n (a positive integer called the modulus) is an equivalence relation whereby n|(ab) is true. Performing Euclidean division on both a and n, and on b and n, yields the same remainder. This written as ab(modn). In a manner analogous to the 12-hour clock, the sum of 4 and 9 is equal to 13, yet congruent to 1. A residue class modulo n is a set that contains all integers congruent to a specified r modulo n. For example, 6+1 contains all multiples of 6 incremented by 1. Modular arithmetic provides a range of formulas for rapidly solving congruences of very large powers. An influential theorem is Fermat's little theorem, which states that if a prime p is coprime to some integer a, then ap11(modp) is true. Euler's theorem extends this to assert that every integer n satisfies the congruenceaφ(n)1(modn),where Euler's totient function φ counts all positive integers up to n that are coprime to n. Modular arithmetic also provides formulas that are used to solve congruences with unknowns in a similar vein to equation solving in algebra, such as the Chinese remainder theorem.[79]

Analytic number theory[edit | edit source]

Riemann zeta function ζ(s) in the complex plane. The color of a point s gives the value of ζ(s): dark colors denote values close to zero and hue gives the value's argument.
The action of the modular group on the upper half plane. The region in grey is the standard fundamental domain.

Analytic number theory, in contrast to elementary number theory, relies on complex numbers and techniques from analysis and calculus. Analytic number theory may be defined

  • in terms of its tools, as the study of the integers by means of tools from real and complex analysis;[64] or
  • in terms of its concerns, as the study within number theory of estimates on the size and density of certain numbers (e.g., primes), as opposed to identities.[80]

It studies the distribution of primes, behavior of number-theoretic functions, and irrational numbers.[81]

Number theory has the reputation of being a field many of whose results can be stated to the layperson. At the same time, many of the proofs of these results are not particularly accessible, in part because the range of tools they use is, if anything, unusually broad within mathematics.[82] The following are examples of problems in analytic number theory: the prime number theorem, the Goldbach conjecture, the twin prime conjecture, the Hardy–Littlewood conjectures, the Waring problem and the Riemann hypothesis. Some of the most important tools of analytic number theory are the circle method, sieve methods and L-functions (or, rather, the study of their properties). The theory of modular forms (and, more generally, automorphic forms) also occupies an increasingly central place in the toolbox of analytic number theory.[83]

Analysis is the branch of mathematics that studies the limit, defined as the value to which a sequence or function tends as the argument (or index) approaches a specific value. For example, the limit of the sequence 0.9,0.99,0.999,... is 1. In the context of functions, the limit of 1x as x approaches infinity is 0.[84] The complex numbers extend the real numbers with the imaginary unit i defined as the solution to i2=1. Every complex number can be expressed as x+iy, where x is called the real part and y is called the imaginary part.[85]

The distribution of primes, described by the function π that counts all primes up to a given real number, is unpredictable and is a major subject of study in number theory. Elementary formulas for a partial sequence of primes, including Euler's prime-generating polynomials have been developed. However, these cease to function as the primes become too large. The prime number theorem in analytic number theory provides a formalisation of the notion that prime numbers appear less commonly as their numerical value increases. One distribution states, informally, that the function xlog(x) approximates π(x). Another distribution involves an offset logarithmic integral which converges to π(x) more quickly.[3]

Corrections to an estimate of the prime-counting function using zeros of the zeta function

The zeta function has been demonstrated to be connected to the distribution of primes. It is defined as the seriesζ(s)=n=11ns=11s+12s+13s+that converges if s is greater than 1. Euler demonstrated a link involving the infinite product over all prime numbers, expressed as the identity ζ(s)=p prime(11ps)1.Riemann extended the definition to a complex variable and conjectured that all nontrivial cases (0<(s)<1) where the function returns a zero are those in which the real part of s is equal to 12. He established a connection between the nontrivial zeroes and the prime-counting function. In what is now recognised as the unsolved Riemann hypothesis, a solution to it would imply direct consequences for understanding the distribution of primes.[86]

One may ask analytic questions about algebraic numbers, and use analytic means to answer such questions; it is thus that algebraic and analytic number theory intersect. For example, one may define prime ideals (generalizations of prime numbers in the field of algebraic numbers) and ask how many prime ideals there are up to a certain size. This question can be answered by means of an examination of Dedekind zeta functions, which are generalizations of the Riemann zeta function, a key analytic object at the roots of the subject.[87] This is an example of a general procedure in analytic number theory: deriving information about the distribution of a sequence (here, prime ideals or prime numbers) from the analytic behavior of an appropriately constructed complex-valued function.[88]

Elementary number theory works with elementary proofs, a term that excludes the use of complex numbers but may include basic analysis.[72] For example, the prime number theorem was first proven using complex analysis in 1896, but an elementary proof was found only in 1949 by Erdős and Selberg.[89] The term is somewhat ambiguous. For example, proofs based on complex Tauberian theorems, such as Wiener–Ikehara, are often seen as quite enlightening but not elementary despite using Fourier analysis, not complex analysis. Here as elsewhere, an elementary proof may be longer and more difficult for most readers than a more advanced proof.

Some subjects generally considered to be part of analytic number theory (e.g., sieve theory) are better covered by the second rather than the first definition.[note 5] Small sieves, for instance, use little analysis and yet still belong to analytic number theory.[note 6]

Algebraic number theory[edit | edit source]

An algebraic number is any complex number that is a solution to some polynomial equation f(x)=0 with rational coefficients; for example, every solution x of x5+(11/2)x37x2+9=0 is an algebraic number. Fields of algebraic numbers are also called algebraic number fields, or shortly number fields. Algebraic number theory studies algebraic number fields.[90]

It could be argued that the simplest kind of number fields, namely quadratic fields, were already studied by Gauss, as the discussion of quadratic forms in Disquisitiones Arithmeticae can be restated in terms of ideals and norms in quadratic fields. (A quadratic field consists of all numbers of the form a+bd, where a and b are rational numbers and d is a fixed rational number whose square root is not rational.) For that matter, the eleventh-century chakravala method amounts—in modern terms—to an algorithm for finding the units of a real quadratic number field. However, neither Bhāskara nor Gauss knew of number fields as such.

The grounds of the subject were set in the late nineteenth century, when ideal numbers, the theory of ideals and valuation theory were introduced; these are three complementary ways of dealing with the lack of unique factorization in algebraic number fields. (For example, in the field generated by the rationals and 5, the number 6 can be factorised both as 6=23 and 6=(1+5)(15); all of 2, 3, 1+5 and 15 are irreducible, and thus, in a naïve sense, analogous to primes among the integers.) The initial impetus for the development of ideal numbers (by Kummer) seems to have come from the study of higher reciprocity laws,[91] that is, generalizations of quadratic reciprocity.

Number fields are often studied as extensions of smaller number fields: a field L is said to be an extension of a field K if L contains K. (For example, the complex numbers C are an extension of the reals R, and the reals R are an extension of the rationals Q.) Classifying the possible extensions of a given number field is a difficult and partially open problem. Abelian extensions—that is, extensions L of K such that the Galois group[note 7] Gal(L/K) of L over K is an abelian group—are relatively well understood. Their classification was the object of the programme of class field theory, which was initiated in the late nineteenth century (partly by Kronecker and Eisenstein) and carried out largely in 1900–1950.

An example of an active area of research in algebraic number theory is Iwasawa theory. The Langlands program, one of the main current large-scale research plans in mathematics, is sometimes described as an attempt to generalise class field theory to non-abelian extensions of number fields.

Diophantine geometry[edit | edit source]

The central problem of Diophantine geometry is to determine when a Diophantine equation has integer or rational solutions, and if it does, how many. The approach taken is to think of the solutions of an equation as a geometric object.

For example, an equation in two variables defines a curve in the plane. More generally, an equation or system of equations in two or more variables defines a curve, a surface, or some other such object in n-dimensional space. In Diophantine geometry, one asks whether there are any rational points (points all of whose coordinates are rationals) or integral points (points all of whose coordinates are integers) on the curve or surface. If there are any such points, the next step is to ask how many there are and how they are distributed. A basic question in this direction is whether there are finitely or infinitely many rational points on a given curve or surface.

Consider, for instance, the Pythagorean equation x2+y2=1. One would like to know its rational solutions, namely (x,y) such that x and y are both rational. This is the same as asking for all integer solutions to a2+b2=c2; any solution to the latter equation gives us a solution x=a/c, y=b/c to the former. It is also the same as asking for all points with rational coordinates on the curve described by x2+y2=1 (a circle of radius 1 centered on the origin).

Two examples of elliptic curves, that is, curves of genus 1 having at least one rational point

The rephrasing of questions on equations in terms of points on curves is felicitous. The finiteness or not of the number of rational or integer points on an algebraic curve (that is, rational or integer solutions to an equation f(x,y)=0, where f is a polynomial in two variables) depends crucially on the genus of the curve.[note 8] A major achievement of this approach is Wiles's proof of Fermat's Last Theorem, for which other geometrical notions are just as crucial.

There is also the closely linked area of Diophantine approximations: given a number x, determine how well it can be approximated by rational numbers. One seeks approximations that are good relative to the amount of space required to write the rational number: call a/q (with gcd(a,q)=1) a good approximation to x if |xa/q|<1qc, where c is large. This question is of special interest if x is an algebraic number. If x cannot be approximated well, then some equations do not have integer or rational solutions. Moreover, several concepts (especially that of height) are critical both in Diophantine geometry and in the study of Diophantine approximations. This question is also of special interest in transcendental number theory: if a number can be approximated better than any algebraic number, then it is a transcendental number. It is by this argument that [[Pi|Template:Pi]] and e have been shown to be transcendental.

Diophantine geometry should not be confused with the geometry of numbers, which is a collection of graphical methods for answering certain questions in algebraic number theory. Arithmetic geometry is a contemporary term for the same domain covered by Diophantine geometry, particularly when one wishes to emphasize the connections to modern algebraic geometry (for example, in Faltings' theorem) rather than to techniques in Diophantine approximations.

Other subfields[edit | edit source]

Probabilistic number theory starts with questions such as the following: Take an integer Template:Mvar at random between one and a million. How likely is it to be prime? (this is just another way of asking how many primes there are between one and a million). How many prime divisors will Template:Mvar have on average? What is the probability that it will have many more or many fewer divisors or prime divisors than the average?

Combinatorics in number theory starts with questions like the following: Does a fairly "thick" infinite set A contain many elements in arithmetic progression: a,

a+b,a+2b,a+3b,,a+10b

? Should it be possible to write large integers as sums of elements of

A

?

A Lehmer sieve, a primitive digital computer used to find primes and solve simple Diophantine equations

There are two main questions: "Can this be computed?" and "Can it be computed rapidly?" Anyone can test whether a number is prime or, if it is not, split it into prime factors; doing so rapidly is another matter. Fast algorithms for testing primality are now known, but, in spite of much work (both theoretical and practical), no truly fast algorithm for factoring.

Applications[edit | edit source]

For a long time, number theory in general, and the study of prime numbers in particular, was seen as the canonical example of pure mathematics, with no applications outside of mathematics other than the use of prime numbered gear teeth to distribute wear evenly.[92] In particular, number theorists such as British mathematician G. H. Hardy prided themselves on doing work that had absolutely no military significance.[93] The number-theorist Leonard Dickson (1874–1954) said "Thank God that number theory is unsullied by any application". Such a view is no longer applicable to number theory.[94]

This vision of the purity of number theory was shattered in the 1970s, when it was publicly announced that prime numbers could be used as the basis for the creation of public-key cryptography algorithms.[95] Schemes such as RSA are based on the difficulty of factoring large composite numbers into their prime factors.[96] These applications have led to significant study of algorithms for computing with prime numbers, and in particular of primality testing, methods for determining whether a given number is prime. Prime numbers are also used in computing for checksums, hash tables, and pseudorandom number generators.

In 1974, Donald Knuth said "virtually every theorem in elementary number theory arises in a natural, motivated way in connection with the problem of making computers do high-speed numerical calculations".[97] Elementary number theory is taught in discrete mathematics courses for computer scientists. It also has applications to the continuous in numerical analysis.[98]

Number theory has now several modern applications spanning diverse areas such as:

  • Computer science: The fast Fourier transform (FFT) algorithm, which is used to efficiently compute the discrete Fourier transform, has important applications in signal processing and data analysis.[99]
  • Physics: The Riemann hypothesis has connections to the distribution of prime numbers and has been studied for its potential implications in physics.[100]
  • Error correction codes: The theory of finite fields and algebraic geometry have been used to construct efficient error-correcting codes.[101]
  • Study of musical scales: the concept of "equal temperament", which is the basis for most modern Western music, involves dividing the octave into 12 equal parts.[102] This has been studied using number theory and in particular the properties of the 12th root of 2.

See also[edit | edit source]

Notes[edit | edit source]

  1. The term 'arithmetic' may have regained some ground, arguably due to French influence. Take, for example, Serre 1996. In 1952, Davenport still had to specify that he meant The Higher Arithmetic. Hardy and Wright wrote in the introduction to An Introduction to the Theory of Numbers (1938): "We proposed at one time to change [the title] to An introduction to arithmetic, a more novel and in some ways a more appropriate title; but it was pointed out that this might lead to misunderstandings about the content of the book." (Hardy & Wright 2008)
  2. Robson 2001, p. 201. This is controversial. See Plimpton 322. Robson's article is written polemically (Robson 2001, p. 202) with a view to "perhaps [...] knocking [Plimpton 322] off its pedestal" (Robson 2001, p. 167); at the same time, it settles to the conclusion that

    [...] the question "how was the tablet calculated?" does not have to have the same answer as the question "what problems does the tablet set?" The first can be answered most satisfactorily by reciprocal pairs, as first suggested half a century ago, and the second by some sort of right-triangle problems (Robson 2001, p. 202).

    Robson takes issue with the notion that the scribe who produced Plimpton 322 (who had to "work for a living", and would not have belonged to a "leisured middle class") could have been motivated by his own "idle curiosity" in the absence of a "market for new mathematics".(Robson 2001, pp. 199–200)

  3. See, for example, Sunzi Suanjing, Ch. 3, Problem 36, in Lam & Ang 2004, pp. 223–224:

    [36] Now there is a pregnant woman whose age is 29. If the gestation period is 9 months, determine the sex of the unborn child. Answer: Male.

    Method: Put down 49, add the gestation period and subtract the age. From the remainder take away 1 representing the heaven, 2 the earth, 3 the man, 4 the four seasons, 5 the five phases, 6 the six pitch-pipes, 7 the seven stars [of the Dipper], 8 the eight winds, and 9 the nine divisions [of China under Yu the Great]. If the remainder is odd, [the sex] is male and if the remainder is even, [the sex] is female.

    This is the last problem in Sunzi's otherwise matter-of-fact treatise.

  4. Up to the second half of the seventeenth century, academic positions were very rare, and most mathematicians and scientists earned their living in some other way (Weil 1984, pp. 159, 161). (There were already some recognisable features of professional practice, viz., seeking correspondents, visiting foreign colleagues, building private libraries (Weil 1984, pp. 160–161). Matters started to shift in the late seventeenth century (Weil 1984, p. 161); scientific academies were founded in England (the Royal Society, 1662) and France (the Académie des sciences, 1666) and Russia (1724). Euler was offered a position at this last one in 1726; he accepted, arriving in St. Petersburg in 1727 (Weil 1984, p. 163 and Varadarajan 2006, p. 7). In this context, the term amateur usually applied to Goldbach is well-defined and makes some sense: he has been described as a man of letters who earned a living as a spy (Truesdell 1984, p. xv); cited in Varadarajan 2006, p. 9). Notice, however, that Goldbach published some works on mathematics and sometimes held academic positions.
  5. Sieve theory figures as one of the main subareas of analytic number theory in many standard treatments; see, for instance, Iwaniec & Kowalski 2004 or Montgomery & Vaughan 2007
  6. This is the case for some combinatorial sieves such as the Brun sieve, rather than for large sieves. The study of the latter now includes ideas from harmonic and functional analysis.
  7. The Galois group of an extension L/K consists of the operations (isomorphisms) that send elements of L to other elements of L while leaving all elements of K fixed. Thus, for instance, Gal(C/R) consists of two elements: the identity element (taking every element x + iy of C to itself) and complex conjugation (the map taking each element x + iy to x − iy). The Galois group of an extension tells us many of its crucial properties. The study of Galois groups started with Évariste Galois; in modern language, the main outcome of his work is that an equation f(x) = 0 can be solved by radicals (that is, x can be expressed in terms of the four basic operations together with square roots, cubic roots, etc.) if and only if the extension of the rationals by the roots of the equation f(x) = 0 has a Galois group that is solvable in the sense of group theory. ("Solvable", in the sense of group theory, is a simple property that can be checked easily for finite groups.)
  8. The genus can be defined as follows: allow the variables in f(x,y)=0 to be complex numbers; then f(x,y)=0 defines a 2-dimensional surface in (projective) 4-dimensional space (since two complex variables can be decomposed into four real variables; that is, four dimensions). The number of doughnut-like holes in the surface is called the genus of the curve of equation f(x,y)=0.

References[edit | edit source]

  1. Long 1972, p. 1.
  2. 2.0 2.1 Karatsuba, A.A. (2020). "Number theory". Encyclopedia of Mathematics. Springer. Retrieved 2025-05-03.
  3. 3.0 3.1 Moore, Patrick (2004). "Number theory". In Lerner, K. Lee; Lerner, Brenda Wilmoth (eds.). The Gale Encyclopedia of Science. Vol. 4 (3rd ed.). Gale. ISBN 0-7876-7559-8.
  4. 4.0 4.1 Tanton, James (2005). "Number theory". Encyclopedia of Mathematics. New York: Facts On File. pp. 359–60. ISBN 0-8160-5124-0.
  5. Template:Multiref
  6. Template:Multiref
  7. Template:Multiref
  8. Template:Multiref
  9. 9.0 9.1 9.2 9.3 Effinger, Gove; Mullen, Gary L. (2022). Elementary Number Theory. Boca Raton: CRC Press. ISBN 978-1-003-19311-1.
  10. 10.0 10.1 Weisstein, Eric W. (2003). CRC Concise Encyclopedia of Mathematics (2nd ed.). Chapman & Hall/CRC. ISBN 1-58488-347-2.
  11. Weisstein, Eric W. (2003). "Whole Number". CRC Concise Encyclopedia of Mathematics (2nd ed.). Chapman & Hall/CRC. p. 3202. ISBN 1-58488-347-2.
  12. 12.0 12.1 Template:Multiref
  13. Template:Multiref
  14. Template:Multiref
  15. Kubilyus 2018
  16. Pomerance & Sárközy 1995, p. 969
  17. Pomerance 2010
  18. Template:Multiref
  19. Dunham 2025
  20. Neugebauer & Sachs 1945, p. 40. The term Template:Tlit is problematic. Robson prefers the rendering "The holding-square of the diagonal from which 1 is torn out, so that the short side comes up...".Robson 2001, p. 192
  21. Robson 2001, p. 189. Other sources give the modern formula (p2q2,2pq,p2+q2). Van der Waerden gives both the modern formula and what amounts to the form preferred by Robson.(van der Waerden 1961, p. 79)
  22. Neugebauer (Neugebauer 1969, pp. 36–40) discusses the table in detail and mentions in passing Euclid's method in modern notation (Neugebauer 1969, p. 39).
  23. Friberg 1981, p. 302.
  24. van der Waerden 1961, p. 63–75.
  25. van der Waerden 1961, p. 87–90
  26. Iamblichus, Life of Pythagoras,(trans., for example, Guthrie 1987) cited in van der Waerden 1961, p. 108. See also Porphyry, Life of Pythagoras, paragraph 6, in Guthrie 1987
  27. Herodotus (II. 81) and Isocrates (Busiris 28), cited in: Huffman 2011. On Thales, see Eudemus ap. Proclus, 65.7, (for example, Morrow 1992, p. 52) cited in: O'Grady 2004, p. 1. Proclus was using a work by Eudemus of Rhodes (now lost), the Catalogue of Geometers. See also introduction, Morrow 1992, p. xxx on Proclus's reliability.
  28. Boyer & Merzbach 1991, p. 82.
  29. Heath 1921, p. 76.
  30. Corry, Leo (2015). "Construction Problems and Numerical Problems in the Greek Mathematical Tradition". A Brief History of Numbers. Oxford University Press. ISBN 978-0-19-870259-7.
  31. Sunzi Suanjing, Chapter 3, Problem 26. This can be found in Lam & Ang 2004, pp. 219–220, which contains a full translation of the Suan Ching (based on Qian 1963). See also the discussion in Lam & Ang 2004, pp. 138–140.
  32. The date of the text has been narrowed down to 220–420 AD (Yan Dunjie) or 280–473 AD (Wang Ling) through internal evidence (= taxation systems assumed in the text). See Lam & Ang 2004, pp. 27–28.
  33. Dauben 2007, p. 310
  34. Libbrecht 1973
  35. 35.0 35.1 Plofker 2008, p. 119.
  36. Any early contact between Babylonian and Indian mathematics remains conjectural (Plofker 2008, p. 42).
  37. Mumford 2010, p. 387.
  38. Āryabhaṭa, Āryabhatīya, Chapter 2, verses 32–33, cited in: Plofker 2008, pp. 134–140. See also Clark 1930, pp. 42–50. A slightly more explicit description of the kuṭṭaka was later given in Brahmagupta, Brāhmasphuṭasiddhānta, XVIII, 3–5 (in Colebrooke 1817, p. 325, cited in Clark 1930, p. 42).
  39. Mumford 2010, p. 388.
  40. Plofker 2008, p. 194.
  41. Colebrooke 1817, p. lxv, cited in Hopkins 1990, p. 302. See also the preface in Sachau & Bīrūni 1888 cited in Smith 1958, pp. 168
  42. Pingree 1968, pp. 97–125, and Pingree 1970, pp. 103–123, cited in Plofker 2008, p. 256.
  43. Rashed 1980, pp. 305–321.
  44. Bachet, 1621, following a first attempt by Xylander, 1575
  45. Weil 1984, pp. 45–46.
  46. "Number theory | Definition, Topics, & History | Britannica". www.britannica.com. Retrieved 2025-06-28.
  47. Faulkner, Nicholas; Hosch, William L. (2017). "Numbers and Measurements". Encyclopaedia Britannica. ISBN 978-1-5383-0042-8. Retrieved 2019-08-06.
  48. Weil 1984, p. 92.
  49. Weil 1984, pp. 2, 172.
  50. Varadarajan 2006, p. 9.
  51. Weil 1984, pp. 1–2.
  52. Weil 1984, p. 2 and Varadarajan 2006, p. 37
  53. Weil 1984, pp. 178–179.
  54. Varadarajan 2006, p. 39 and Weil 1984, pp. 176–189
  55. Weil 1984, p. 174. Euler was generous in giving credit to others (Varadarajan 2006, p. 14), not always correctly.
  56. Weil 1984, p. 183.
  57. Varadarajan 2006, pp. 45–55; see also chapter III.
  58. Weil 1984, pp. 327–328.
  59. Weil 1984, pp. 337–338.
  60. Weil 1984, pp. 332–334.
  61. Goldstein & Schappacher 2007, p. 14.
  62. From the preface of Disquisitiones Arithmeticae; the translation is taken from Goldstein & Schappacher 2007, p. 16
  63. See the discussion in section 5 of Goldstein & Schappacher 2007. Early signs of self-consciousness are present already in letters by Fermat: thus his remarks on what number theory is, and how "Diophantus's work [...] does not really belong to [it]" (quoted in Weil 1984, p. 25).
  64. 64.0 64.1 Apostol 1976, p. 7.
  65. Davenport & Montgomery 2000, p. 1.
  66. See the proof in Davenport & Montgomery 2000, section 1
  67. Iwaniec & Kowalski 2004, p. 1.
  68. Varadarajan 2006, sections 2.5, 3.1 and 6.1.
  69. Granville 2008, pp. 322–348.
  70. See the comment on the importance of modularity in Iwaniec & Kowalski 2004, p. 1
  71. Nathanson, Melvyn B. (2000). "Preface". Elementary Methods in Number Theory. Springer. ISBN 0-387-98912-9.
  72. 72.0 72.1 Bukhshtab, A.A. (2014). "Elementary number theory". Encyclopedia of Mathematics. Springer. Retrieved 2025-05-03.
  73. Template:Multiref
  74. Richmond & Richmond (2009), Section 3.4 (Divisibility Tests), p. 102–108
  75. Ore, Oystein (1948). Number Theory and Its History (1st ed.). McGraw-Hill.
  76. Watkins, John J. (2014). "Divisibility". Number Theory: A Historical Approach. Princeton University Press. pp. 76–80. ISBN 978-0-691-15940-9.
  77. Nathanson, Melvyn B. (2000). "Divisibility and Primes". Elementary Methods in Number Theory. Springer. ISBN 0-387-98912-9.
  78. Tanton, James (2005). "Fundamental theorem of arithmetic". Encyclopedia of Mathematics. New York: Facts On File. ISBN 0-8160-5124-0.
  79. Shoup, Victor (2005). A Computational Introduction to Number Theory and Algebra. Cambridge University Press. ISBN 978-0-511-11363-5.
  80. Granville 2008, section 1: "The main difference is that in algebraic number theory [...] one typically considers questions with answers that are given by exact formulas, whereas in analytic number theory [...] one looks for good approximations."
  81. Karatsuba, A.A. (2014-10-18). "Analytic number theory". Encyclopedia of Mathematics.
  82. See, for example, the initial comment in Iwaniec & Kowalski 2004, p. 1.
  83. See the remarks in the introduction to Iwaniec & Kowalski 2004, p. 1: "However much stronger...".
  84. Tanton, James. "Limit". Encyclopedia of Mathematics.
  85. Weisstein, Eric W. (2002). "Complex Numbers". CRC Concise Encyclopedia of Mathematics.
  86. Tanton, James (2005). "Zeta function". Encyclopedia of Mathematics.
  87. Granville 2008, section 3: "[Riemann] defined what we now call the Riemann zeta function [...] Riemann's deep work gave birth to our subject [...]"
  88. See, for example, Montgomery & Vaughan 2007, p. 1.
  89. Goldfeld 2003.
  90. Milne 2017, p. 2.
  91. Edwards 2000, p. 79.
  92. Bryant, John; Sangwin, Christopher J. (2008). How Round is Your Circle?: Where Engineering and Mathematics Meet. Princeton University Press. p. 178. ISBN 978-0-691-13118-4.
  93. Hardy, Godfrey Harold (2012) [1940]. A Mathematician's Apology. Cambridge University Press. p. 140. ISBN 978-0-521-42706-7. OCLC 922010634. No one has yet discovered any warlike purpose to be served by the theory of numbers or relativity, and it seems unlikely that anyone will do so for many years.
  94. The Unreasonable Effectiveness of Number Theory, Stefan Andrus Burr, George E. Andrews, American Mathematical Soc., 1992, ISBN 978-0-8218-5501-0
  95. Kraft, James S.; Washington, Lawrence C. (2014). Elementary Number Theory. Textbooks in mathematics. CRC Press. p. 7. ISBN 978-1-4987-0269-0.
  96. An Introduction to Number Theory with Cryptography (2nd ed.). Chapman and Hall/CRC. 2018. doi:10.1201/9781351664110. ISBN 978-1-351-66411-0. Archived from the original on 2023-03-01. Retrieved 2023-02-22.
  97. Computer science and its relation to mathematics" DE Knuth – The American Mathematical Monthly, 1974
  98. "Applications of number theory to numerical analysis", Lo-keng Hua, Luogeng Hua, Yuan Wang, Springer-Verlag, 1981, ISBN 978-3-540-10382-0
  99. Krishna, Hari (2017). Digital Signal Processing Algorithms. London: Routledge. ISBN 978-1-351-45497-1.
  100. Schumayer, Daniel; Hutchinson, David A. W. (2011). "Physics of the Riemann Hypothesis". Reviews of Modern Physics. 83 (2): 307–330. arXiv:1101.3116. Bibcode:2011RvMP...83..307S. doi:10.1103/RevModPhys.83.307. S2CID 119290777.
  101. Baylis, John (2018). Error-Correcting Codes: A Mathematical Introduction. Routledge. doi:10.1201/9780203756676. ISBN 978-0-203-75667-6. Retrieved 2023-02-22.
  102. Cartwright, Julyan H. E.; Gonzalez, Diego L.; Piro, Oreste; Stanzial, Domenico (2002-03-01). "Aesthetics, Dynamics, and Musical Scales: A Golden Connection". Journal of New Music Research. 31 (1): 51–58. doi:10.1076/jnmr.31.1.51.8099. hdl:10261/18003. ISSN 0929-8215. S2CID 12232457.

Sources[edit | edit source]

Further reading[edit | edit source]

Two of the most popular introductions to the subject are:

Hardy and Wright's book is a comprehensive classic, though its clarity sometimes suffers due to the authors' insistence on elementary methods (Apostol 1981). Vinogradov's main attraction consists in its set of problems, which quickly lead to Vinogradov's own research interests; the text itself is very basic and close to minimal. Other popular first introductions are:

Popular choices for a second textbook include:

External links[edit | edit source]

Template:Number theory Template:Number theory tables Template:Areas of mathematics Template:Computer science