{{Short description|Branch of pure mathematics}} {{distinguish|Number Theory (book)|Numerology}} [[File:A 150x150 Ulam spiral of dots with varying widths (emphasis primes).svg|thumb|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.]] {{Math topics TOC}} '''Number theory''' is a branch of 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."{{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.
== Definition == Number theory is the branch of mathematics that studies integers and their 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 that extends the set of 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 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).<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" />
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 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, 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." {{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>
Elementary number theory studies aspects of integers that can be investigated using elementary methods such as elementary proofs.<ref name=":3">{{multiref|{{harvnb|Page|2003|pp=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=34}}|{{harvnb|Karatsuba|2014}}}}</ref> 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.<ref>{{multiref|{{harvnb|Page|2003|pp=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>
== History == 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. 1800 BC. It is a broken clay tablet that contains a list of Pythagorean triples, 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.<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<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 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
<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> 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.{{sfn|van der Waerden|1961|p=63–75}}
Although other civilizations probably influenced 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, ''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.
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.{{sfn|Heath|1921|p=76}} Later, Euclid devoted part of his ''Elements'' to topics that belong to elementary number theory, including prime numbers and 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 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 <math>f(x,y)=z^2</math> or <math>f(x,y,z)=w^2</math>. 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<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 AD (Yan Dunjie) or 280–473 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> [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> 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 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 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).{{sfn|Plofker|2008|p=194}}
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 {{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). 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{{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 Xylander, 1575</ref>
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}}
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 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}}). 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 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>
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 <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.
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 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),{{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 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 forms).<ref>See the comment on the importance of modularity in {{harvnb|Iwaniec|Kowalski|2004|p=1}}</ref>
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 == === 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]]
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 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 equations, continued fractions, integer partitions, and 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>
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 <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>
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> thumb|alt=√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 <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 can be extended to solve a special case of 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>
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 <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 |last1=Nathanson |first1=Melvyn B. |title=Elementary Methods in Number Theory |chapter=Divisibility and Primes |series=Graduate Texts in Mathematics |date=2000 |volume=195 |pages=3–43 |doi=10.1007/978-0-387-22738-2_1 |isbn=978-0-387-98912-9 }}</ref>
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 <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" />
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>
=== Analytic number theory === {{Main|Analytic number theory}}
[[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.]] [[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, 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;{{sfn|Apostol|1976|p=7}} 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.<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 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.<ref>See the remarks in the introduction to {{harvnb|Iwaniec|Kowalski|2004|p=1}}: "However much stronger...".</ref>
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 <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 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 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 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 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.<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>
Elementary number theory works with ''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 Erdős and Selberg.{{sfn|Goldfeld|2003}} 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.<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 sieves. The study of the latter now includes ideas from 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> 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.{{sfn|Milne|2017|p=2}}
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 <math> a + b \sqrt{d}</math>, where <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.) 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 <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> 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 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''. (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<ref group="note">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.)</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 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 === {{Main|Diophantine geometry}}
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 {{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 whether there are finitely or infinitely many rational points on a given curve or surface.
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 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> (a circle of radius 1 centered on the origin).
[[File:ECClines-3.svg|thumb|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 <math>f(x,y)=0</math>, where <math>f</math> is a polynomial in two variables) depends crucially on the 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.
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 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}} 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 === {{Main|Probabilistic number theory}}
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}}
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>, <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}}
[[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 testing primality are now known, but, in spite of much work (both theoretical and practical), no truly fast algorithm for factoring.
== 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 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>
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 |first1=James |last1=Kraft |first2=Lawrence |last2=Washington |title=An Introduction to Number Theory with Cryptography |edition=2nd |date=2018 |doi=10.1201/9781351664110 |isbn=978-1-351-66411-0 }}{{pn|date=April 2026}}</ref> 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".<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 scientists. 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>
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.<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> * 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 }}</ref> * Error correction codes: The theory of finite fields and algebraic geometry have been used to construct efficient error-correcting codes.<ref>{{cite book |last1=Baylis |first1=John |title=Error-Correcting Codes |date=2018 |doi=10.1201/9780203756676 |isbn=978-0-203-75667-6 }}{{pn|date=April 2026}}</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=González |first2=Diego L. |last3=Piro |first3=Oreste |last4=Stanzial |first4=Domenico |title=Aesthetics, Dynamics, and Musical Scales: A Golden Connection |journal=Journal of New Music Research |date=March 2002 |volume=31 |issue=1 |pages=51–58 |doi=10.1076/jnmr.31.1.51.8099 |hdl=10261/18003 |hdl-access=free }}</ref> This has been studied using number theory and in particular the properties of the 12th root of 2.
== See also == {{portal|Mathematics}} * Arithmetic dynamics * Algebraic function field * Arithmetic topology * Finite field * p-adic number * List of number theoretic algorithms
== Notes == {{reflist|group=note|30em}}
== References == {{reflist}}
=== 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. --> {{refbegin|30em}} *{{citation |first=Joseph W. |last=Dauben |author-link=Joseph Dauben |editor-last=Katz |editor-first=Victor J. |editor-link=Victor J. Katz |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 |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 |isbn=978-0-387-90163-3 |url=https://books.google.com/books?id=Il64dZELHEIC |access-date=2016-02-28}} *{{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}} * {{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) * {{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 |isbn=978-0-471-54397-8 |url=https://archive.org/details/historyofmathema00boye}} [https://archive.org/details/AHistoryOfMathematics 1968 edition] at archive.org * {{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}} * {{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 |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 |doi=10.2307/2690368 |jstor=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 |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}} * {{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 |author2-link=Norbert Schappacher |year=2007 |editor1-last=Goldstein |editor1-first=C. |editor2-last=Schappacher |editor2-first=N. |editor3-last=Schwermer |editor3-first=Joachim |editor3-link=Joachim Schwermer |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}} |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}} * {{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 |year=1981 |publisher=Courier Dover Publications |url=https://books.google.com/books?id=drnY3Vjix3kC |isbn=0-486-24073-8, 9780486240732 --> * {{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}} * {{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}} |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}} * {{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 <!--{{sfn|Milne|2014|p=}} --> |last=Milne |first=J. S. |author-link=James Milne (mathematician) |date=18 March 2017 |issue=3.07 |title=Algebraic Number Theory |url=https://www.jmilne.org/math/CourseNotes/ant.html |access-date=7 April 2020}} * {{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}} * {{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}} * {{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 |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 |volume=9 |location=New York |publisher=Dover Publications |isbn=978-0-486-22332-2}} * {{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 book |last1=Page |first1=Robert L. |title=Encyclopedia of Physical Science and Technology |chapter=Number Theory, Elementary |date=2003 |pages=15–38 |doi=10.1016/B0-12-227410-5/00503-2 |isbn=978-0-12-227410-7 }} * {{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 }} * {{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 }} * {{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 |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}} * {{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}} |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 * {{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 }} * {{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 |url=https://books.google.com/books?id=M4-zUnrSxNoC }} * {{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 |doi=10.2307/2589706 |jstor=2589706 }} * {{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}} <!-- Alternative Google books limited preview url=https://books.google.com/books?id=S_T6Pt2qZ5YC& Translated by Peter Huber Publisher Springer, 1974 {{isbn|90-01-93103-0}}, {{isbn|978-90-01-93103-2}} --> * {{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}} {{refend}} * {{Citizendium}}
== Further reading == Two of the most popular introductions to the subject are: * {{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}} * {{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 (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: * {{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}} * {{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}}
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 |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}}
== External links == {{Commons}} {{Wikiquote}} * [https://encyclopediaofmath.org/wiki/Number_theory Number Theory] entry in the Encyclopedia of Mathematics * [http://www.numbertheory.org/ Number Theory Web] {{Number theory}} {{Number theory tables}} {{Areas of mathematics}} {{Computer science}} {{Authority control}} Category:Number theory