Number theory studies integers, their divisibility, and the patterns created by prime numbers. Its questions often have short statements but rigid answers: which integers divide a given one, when does an equation have integer solutions, and when can arithmetic with congruence classes be reversed? The Euclidean algorithm and modular multiplicative inverses connect these questions through explicit calculations.
For example, and . Their shared prime factors give greatest common divisor . The Euclidean algorithm reaches that answer without finding either complete prime factorization. It also produces , an instance of Bézout's identity. This relation certifies every common divisor at once and solves an associated linear Diophantine equation.
Modular arithmetic retains only remainders, but the lost information can be surprisingly controlled. Multiplication by modulo is a permutation of all residue classes, because has modular inverse . Multiplication by modulo collapses fifteen residue classes to three. Thus an apparently small change in the modulus changes whether a calculation can be reversed. The Chinese remainder theorem explains another kind of compression: remainders modulo coprime integers can be combined into one remainder modulo their product.
Simple restrictions help reveal the structure without telling the whole story. Every prime number greater than three is congruent to or modulo : the other four residue classes force divisibility by or . The converse fails because and lie in those classes but are composite numbers. Necessary conditions are useful filters, not substitutes for primality testing.
The subject's appeal lies partly in this tension: prime factorization gives a clean description of every positive integer, while identifying factors and predicting their distribution lead to substantial further questions. Analytic number theory uses tools from analysis to study global patterns, and algebraic number theory extends arithmetic into number fields. Applications include cryptography and error-correcting codes; MIT's discrete applied mathematics course develops modular structures for both purposes. [ref]
Euclid's Elements already gives a greatest-common-measure construction in Book VII, Proposition 2, and the argument that a finite list cannot exhaust the prime numbers in Book IX, Proposition 20. These are documented ancient treatments, rather than evidence that all of number theory began with one author. [ref] [ref]
A representation with integers . Signs, ordering, and whether zero is allowed must be specified when counting representations. The sum of two squares theorem characterizes which nonnegative integers have such a representation.
A pronic number is the product of consecutive nonnegative integers. It is twice a triangular number.
A cube-full number is a positive integer in which every occurring prime factor has exponent at least three. The number is included by the empty-product convention.
The arithmetic derivative on positive integers is defined by for every prime and the product rule . For , these rules give . In particular, .
A Harshad number in base is a positive integer divisible by its base-p digit sum in that base. In base ten, is a Harshad number because divides . It is strong when the quotient by its base-p digit sum is prime, and right-truncatable when every nonempty prefix is a Harshad number.
For positive integers with greatest common divisor , and with every , the largest integer not expressible as a nonnegative integer linear combination of the . For two coprime generators , it equals .
For coprime integers , the Frobenius number is . Every larger integer is a nonnegative integer linear combination of .
A positive integer such that every positive integer at most is a sum of distinct divisors of . For example, is practical because its divisors represent every value from through .
A positive integer that is both the sum and the product of one multiset of positive integers. For factors at least with product , sum , and count , appending ones gives without changing the product. For , the example with ones proves that the smallest product-sum value is at most .
Integer factorization seeks the prime factorization of a positive integer . For , this means identifying its prime factors and their multiplicities; one has the empty prime factorization. Finding one proper divisor is useful progress, but need not finish the job: factor and further until all factors are prime numbers.
For example, is a semiprime, whereas has three prime factors. Primality testing asks whether a proposed integer is prime; it need not return a factor when the answer is no. Trial division is a direct factoring method: try division by small prime numbers until a divisor is found. More elaborate methods obtain a proper divisor through a greatest common divisor of with a specially constructed integer.
The beautiful trick in congruence of squares is that two integers with equal squares modulo can reveal different factors through their sum and difference. In the worked example, gives and . Computing those greatest common divisors uses the Euclidean algorithm; it does not require trying every potential factor. A factor base supplies a systematic way to construct useful equal-square relations. [ref].
This connection is useful in cryptography because recovering the factors of an RSA cryptosystem modulus defeats the factoring assumption behind its construction. That application concerns large, carefully chosen inputs; the small examples here explain the arithmetic mechanism and are not benchmarks or estimates of present cryptographic security.
For an integer to be factored, John Pollard's method chooses an integer coprime to and an exponent divisible by many small prime powers. Compute by modular exponentiation and the Euclidean algorithm. If , it is a proper factor. If a prime divisor of has , Fermat's little theorem ensures ; success requires some other prime divisor not to divide . Common choices are and . The method exploits a smooth , rather than a small factor itself.
A general-purpose classical integer factorization algorithm combining polynomial relations, arithmetic in number fields and sparse linear algebra to construct congruent squares modulo the input. Its familiar general-input complexity estimate is heuristic and subexponential in the input's value, roughly for input bits. This is not polynomial in the bit length. Special input structure, small factors and preprocessing can make other algorithms preferable.
An ordered factorization of a positive integer is an ordered list of factors greater than one whose product is . For example, , , and are the three ordered factorizations of . Taking successive partial products gives a bijection with strictly increasing divisor chains from to .
An integer factorization algorithm that iterates a simple map such as and searches for a nontrivial greatest common divisor of and the difference of two iterates. A collision modulo an unknown prime factor can reveal that factor before a collision modulo . A cycle detection schedule such as Floyd's cycle-finding algorithm limits the number of stored iterates. Unsuccessful choices of seed or map can be retried.
A factor base is a finite set of small prime numbers over which selected auxiliary integers are completely factored. Some methods also record a sign coordinate for , which is not a prime number. A positive integer supported entirely on the chosen factor base gives an exponent vector; reducing that vector modulo two records which prime exponents are odd integers. The product is a square of a number precisely when every prime exponent is an even integer.
For the original toy , use factor base and the two relations
The residues have exponent vectors and in the order . Adding the two vectors modulo two gives , so multiplying the residues gives . Consequently
and and . Neither individual residue was a square; combining the relations made all exponents even.
Figure 1.
A factor base turns two smooth relations into a congruence of squares through exponent parity
. The original example uses the ordered factor base . The rows and add to zero modulo two, giving residue product . The product of the original inputs is ; greatest common divisor calculations then extract seven and eleven. Details.
In a larger collection, choose relations with positive residues . If a nonempty selection has an even sum in every exponent coordinate, set
Then . Finding such a selection is a linear dependence problem over the finite field : the indicator vector of the chosen relations belongs to the kernel of a linear map given by the parity matrix. This is why a problem about prime factors recruits linear algebra. The final congruence of squares may still be trivial, so another selection can be needed. [ref].
There is a tradeoff: a small factor base gives a smaller parity matrix, but fewer auxiliary integers factor completely over it. A larger factor base accepts more relations but makes the linear algebra larger. Negative auxiliary values need an additional sign coordinate, and a selected product needs even sign parity as well as even prime exponents. Pomerance's account explains this balance and the historical development of combining smooth relations; the toy example omits algorithm-specific sieving and running-time claims. [ref].
Relative to an ordered factor base , a positive integer has exponent vector . Multiplication of such integers adds their exponent vectors. Reducing every coordinate modulo two gives the parity vector used to find congruences of squares. The ordering and any sign coordinate must be used consistently across all rows.
The odd part of a positive integer is the unique odd positive integer obtained by repeatedly dividing by two. The process terminates because the positive integers decrease. If with odd, then would make even and would make even; hence and . Two positive integers have the same odd part exactly when their ratio is an integral power of two. The odd positive integers therefore give representatives for the resulting equivalence classes.
A congruence of squares says that two integers have the same square modulo a positive integer . Factoring their difference of squares gives
A useful integer factorization results when or is a proper divisor of . Divisibility of a product does not generally force divisibility of either factor by all of : different prime factors of can divide different parts of that product.
For , . Therefore
Thus . The prime seven divides the difference, while eleven divides the sum. These computations already give a complete prime factorization because seven and eleven are prime numbers.
The Chinese remainder theorem explains the hidden sign choices. The four congruence classes solving have representatives . Modulo seven each is or ; modulo eleven each is or . Two independent sign choices produce four roots. The inputs thirteen and twenty agree modulo seven and disagree by sign modulo eleven, allowing their sum and difference to separate the two prime factors.
Figure 1. . Each cell gives the unique residue modulo with its indicated residues modulo seven and eleven. Relative to input thirteen, input twenty agrees modulo seven and has the opposite sign modulo eleven. The resulting greatest common divisors are seven and eleven. Diagonal all-same or all-opposite choices give only the trivial factors one and . Details.
For distinct odd prime numbers , and , a solution with and modulo yields both proper factors by the two greatest common divisors. For a general composite integer, a proper divisor need not itself be prime; further factoring can remain. If or in the coprime case, the two calculations return and one instead. A factor base helps generate relations, but does not ensure every resulting relation is useful.
For historical context, Pomerance describes Kraitchik's 1920s enhancement of the difference-of-squares approach associated with Fermat: seek a difference that is a multiple of , rather than exactly . His account also notes antecedents in Gauss and Seelhoff, so this is not an attribution of the whole idea to a single inventor. [ref].
For an odd integer , a nontrivial square root of unity modulo is a residue with and . Then both and are proper divisors. For , works: , , and .
A congruence of squares with converts to this form by , using a modular multiplicative inverse. In the example, , so . It yields and . Nontriviality requires mixed sign choices across prime factors, which an odd prime number modulus cannot provide.
The Erdős-Turán inequality bounds discrepancy of a finite sequence on the circle by a smoothing error and exponential sums of its low Fourier modes.
A Fermat number is the positive integer , indexed by a nonnegative integer . The first five are , all prime numbers; the next is the composite number . This family offers a compact lesson in number theory: a very persuasive finite pattern can fail, while an exact divisibility relation settles a gigantic case with little computation.
Figure 1.
Exact Fermat numbers: five initial primes, a composite sixth term, and rapidly increasing decimal lengths
. Details.
Why does the exponent itself have the form ? Suppose is a positive integer with an odd integer factor . The polynomial factorization shows that is a proper divisor of . Consequently, if is a prime number, must be a power of two. That is a necessary condition, rather than a promise that the surviving candidates are prime.
The Fermat number product identity makes distinct Fermat numbers coprime integers. Thus every term has a prime factor absent from all earlier terms, whether or not that term is itself a prime number. This gives an explicit route to infinitely many different prime numbers, without establishing that infinitely many terms of this particular sequence are prime. Meanwhile the prime divisor of a Fermat number criterion filters possible factors through a small multiplicative order calculation.
The family also links arithmetic to Euclidean geometry: a constructible regular polygon can have a number of sides equal to a power of two times a product of distinct Fermat primes. The Gauss-Wantzel theorem gives the precise criterion. For instance, and qualify, but does not. The word "distinct" matters. Carl Pomerance describes this connection in Primality testing: then and now by Carl Pomerance (slide 18).
Historically, Leonhard Euler records Pierre de Fermat's proposed primality pattern, then refutes it by finding the factor of . His paper was presented in 1732 and published in 1738; those are different events, not competing dates for one publication.[ref]
A short modern check needs only two representations of :
In modular arithmetic these give and . Substitution yields , so . This verifies the factor directly; it does not claim to reconstruct Euler's search process.
For each positive integer , the product of the preceding Fermat numbers is two less than the next:
For example, . The identity telescopes by repeated difference of squares: . Its usefulness is that a huge integer product exposes a tiny difference, two, from the next term.
If , a common divisor of and divides both , by the Fermat number product identity, and . It therefore divides two. Both Fermat numbers are odd integers, so their greatest common divisor is one. Each term's prime factors are consequently different from the prime factors of every other term.
For a prime number , the exact criterion is
where must be different from two and is the multiplicative order of two modulo . If , then : the order divides but not , so it is exactly . Conversely, that order makes a square root of unity different from one in the prime field ; it must be , because has no other roots in a field.
Figure 1.
Exact modular powers distinguish Fermat divisors from the prime thirteen, whose multiplicative order is twelve
. Details.
For example, modulo seventeen the powers of two are . Their first return to one occurs after eight steps. The half-way value is , proving that . Likewise, identifies as a prime factor of . These are statements about divisibility, not evidence that the entire Fermat number is prime.
The multiplicative order always divides , by Fermat's little theorem, so . In particular, for every prime divisor of a Fermat number is one modulo four. That weaker modular congruence is insufficient: thirteen is one modulo four, but , which is not a power of two. It divides no Fermat number at any index. The exact order criterion explains the whole family, instead of testing finitely many terms.
For , the first order bound already gives . The second supplementary law for quadratic reciprocity says that two is then a quadratic residue modulo . Euler's criterion gives , so its multiplicative order divides . Thus , further reducing the candidate factors. At , meets this bound. The restriction matters: has factor five, which is not one modulo eight.
The Bernoulli numbers are a sequence of rational numbers that turns integer power sums into exact polynomials. The same numbers describe corrections when a discrete summation is compared with an integral. For example, the sum of squares is : the leading term is an integral, while the last two terms repair the difference between area and sampled values.
We use throughout. The defining exponential generating function is
Here is the exponential function and is a factorial; in particular, the coefficient of is , rather than . At the quotient has limiting value one. The identity can be read algebraically as a formal power series, or as a convergent series for .[ref]
To compute the numbers, multiply by and compare coefficients. The resulting recurrence relation, with binomial coefficients, is
Thus , , and give , , and . Continuing gives
The recurrence relation agrees with equation 24.5.3 after replacing its index by .[ref]
Why do so many values vanish? Put . Direct substitution gives , so is an even function. Its odd power series coefficients vanish: for every positive integer . The exception matters. The alternative convention obtained from has and exactly the same other values. A formula copied between conventions must also retain its summation endpoints.
Historically, integer power sums were studied before the modern Bernoulli number notation. A historical study examines formulas published in 1631 and distinguishes those separate formulas from encoding all exponents using one sequence of constants. This is a useful motivation for the generating function, without assigning all discovery to a single moment. [ref]
The Bernoulli polynomials extend the Bernoulli numbers by inserting the exponential function into their exponential generating function:
For example, , , , and .[ref]
Their crucial property is a finite difference identity:
Indeed, subtracting the two exponential generating functions cancels and leaves . Thus plays for discrete summation the role that plays for integration: taking a unit finite difference recovers .[ref]
An integer power sum adds a fixed nonnegative integer power of consecutive integers. Let be a nonnegative integer and a nonnegative integer. For , use the constant polynomial , including at zero, so . Summing the Bernoulli polynomial finite difference identity makes the intermediate terms cancel and gives
The sum is empty when . For the endpoints , the formula valid also at is instead
For , , and this becomes the standard positive-endpoint formula. The exception at is essential: .[ref]
For , adding to changes the contribution from to . Equivalently,
where only differs from our Bernoulli numbers. A quick endpoint check is : the sums over and are and , respectively. The latter is a triangular number.
For a concrete comparison, take on . The integral is , whereas the unit-width left and right Riemann sums are and . The exact integer power sum formula gives
The endpoint choice explains the opposite signs of the correction. The remaining correction is one in both cases.
Figure 1.
Left and right Riemann sums for differ from its integral by exact Bernoulli number corrections
. Six rectangles of width one sample at on the left and on the right. Their areas are and ; the smooth area is . The endpoint terms are and , while the correction adds one in each case. Details.
The same method is useful far beyond squares of numbers. Substituting , , and into the integer power sum formula gives the exact fourth-power result
At , this is
Thus a finite polynomial calculation replaces ten additions, or a million additions if is a million. Although the individual corrections can be rational numbers, the result is the exact integer sum.
Figure 2.
Exact Bernoulli number corrections turn an integral into the fourth-power sum
. The first panel builds the sum from integral , endpoint term , and term . The enlarged second panel resolves the final correction , reaching , checked independently by direct addition. Details.
There is also a useful numerical integration interpretation. The average of the left and right Riemann sums is the composite trapezoidal rule. For , the endpoint corrections cancel but its value is , one above the true integral. Subtracting the correction makes this particular polynomial example exact. For , the two interior corrections above can be written and . These are exact identities for these polynomials; extending such corrections to general functions requires a separate error analysis.
The defining generating function of the Bernoulli numbers, with , gives this identity of formal Laurent series by . Therefore is regular and odd. Integrating it gives the even formal logarithm of . Its even derivatives of order at zero are , while the odd derivatives vanish. This computes the cyclotomic higher logarithmic derivatives of symmetric cyclotomic units without introducing a spurious linear term.
The Euler evaluation of even zeta values turns a family of series into exact expressions using Bernoulli numbers, factorials and powers of . For every positive integer ,
Here is the Riemann zeta function, defined by its convergent series at these arguments, and the Bernoulli number convention is . The alternating sign combines with the sign of to give a positive sum.[ref]
Substituting , and gives
The first identity answers the Basel problem. It is surprising because the original series only mentions reciprocal squares of integers, while its exact sum involves the circle constant . The cotangent partial-fraction expansion supplies a connection between the two: trigonometric functions encode equally spaced integer poles, whose expansion brings the reciprocal powers into view.
For an original numerical comparison, the first ten terms give , while . The omitted positive terms still contribute approximately . For fourth powers, the ten-term partial sum is approximately , only below . Both are convergent series, but the second approaches its limit much faster.
Figure 1.
Reciprocal-square and reciprocal-fourth-power partial sums approach exact zeta values
. Original computed partial sums for the first thirty terms. Each panel has its own vertical scale. Dashed horizontal lines mark and ; neither finite partial sum equals its limiting value. Details.
Exact evaluation is useful beyond obtaining more digits. It supplies an independent check on a numerical summation, exposes how Bernoulli numbers organize infinitely many identities, and makes the remaining series truncation error measurable without knowing any omitted terms individually. The even integer condition is essential to this formula: putting into it is not a way to evaluate , since the required Bernoulli number index and factorial expression here are indexed by positive integers.
Historically, Leonhard Euler announced reciprocal-square and reciprocal-fourth-power evaluations in §2 of On the sums of series of reciprocals by Leonhard Euler. That paper was presented on 5 December 1735 and published in 1740, as the English translation's first-page note records. His §§3–8 develop a route through the sine power series and relationships between roots and coefficients. The cotangent calculation below is a concise modern presentation of the connection.[ref]
For a real exponent and a positive integer , the series truncation error in the defining Riemann zeta function series is
The integral comparison for the positive decreasing function gives the explicit bounds
On each unit interval, the area under lies between its endpoint heights. Summing from the first omitted term gives the lower integral from to infinity and the upper integral from to infinity. This uses positivity and monotonicity, not an assumption that the last computed term equals the remaining error.
At , the bounds are , whereas . The errors above fit both intervals. Merely looking at the eleventh term would give for squares, far smaller than the actual remaining .
Figure 1.
Integral bounds enclose the full remaining error of two zeta series
. Original computed errors, obtained by subtracting finite partial sums from the exact even zeta values. Shaded bands show the upper and lower integral comparison bounds. The logarithmic axes reveal decay proportional to for squares and for fourth powers. These are mathematical computations, not measured data. Details.
For a chosen absolute error target , the sufficient condition is , rounded upward to an integer. Thus requires by this bound for squares but only for fourth powers. This is a guarantee from an upper bound, not a claim that those are the smallest successful term counts.
The cotangent partial-fraction expansion gives, on ,
The Bernoulli number generating function gives the same Laurent series in another form:
The term cancels the separate ; the higher odd Bernoulli numbers vanish. Comparing Laurent coefficients therefore gives , which is the stated real formula because . The cotangent partial-fraction expansion justifies the convergent expansion before the coefficient comparison; a finite plot of partial sums alone would not prove the infinite identity.
For a Dirichlet character of conductor , define the generalized Bernoulli numbers by
They express special values of Dirichlet L-functions at nonpositive integers and occur in the interpolation formula for Kubota-Leopoldt p-adic L-functions.
A real number is normal in an integer base when every finite word of digits occurs in its positional notation with the same limiting digit block frequency as every other word of the same length. Write its fractional part as in base , using the expansion that is not eventually all digits when two expansions are possible. For every length and every word , the requirement is
Occurrences overlap: the word occurs twice in . There are possible words of length , so is the equal share for each. In a decimal representation, this means frequency for each digit, for each pair, and for each triple, continuing through every finite length. The definition agrees with that used by Copeland and Erdős in their work on explicit normal numbers. [ref]
The appeal is that a precise, deterministic real number can have the same limiting digit block frequencies as repeated draws from a uniform distribution on a finite set, with independence between draws. Champernowne constant is an explicit example. Normality is useful for studying digit distribution, but balanced digits alone establish only a simply normal number, and a finite sample cannot establish any of these infinite limits.
Émile Borel introduced normal numbers and established their prevalence in his 1909 paper applying probability to number theory; the stronger all-base statement is discussed under absolutely normal number. [ref]
For a finite prefix of digits in positional notation, the digit block frequency of a length- word is its number of overlapping occurrences divided by , the number of available starting positions. All such digit block frequencies sum to one. The infinite limit used for a normal number can instead divide counts by : the factor tends to one for fixed .
For the six binary digits , the single-digit counts are three zeros and three ones. Its five adjacent pairs are , giving
This example explains both the overlapping convention and the end correction in a finite sample. The corresponding infinite binary expansion has pair frequencies , rather than the four values required of a normal number in base two.
A real number is simply normal in base if each individual digit in its positional notation has limiting digit block frequency . This is the length-one part of the definition of a normal number. It places no equal-frequency requirement on longer words.
For example, is a simply normal number in base two: each binary digit has frequency . But and never occur, and and each have frequency . Thus is not a normal number in base two. Even a sequence that looks more complicated, such as the deterministic Thue–Morse sequence, must be tested against the actual digit block frequency definition; visual complexity is no substitute for it.
The decimal representation makes the same point in base ten. Every digit has frequency , yet the only adjacent pairs are
Each has limiting digit block frequency ; the other ninety pairs have frequency zero. A normal number in base ten requires for every one of the hundred pairs. This rational number is a simply normal number in base ten, but it is not a normal number in that base.
Form Champernowne constant by using concatenation to join the decimal representations of the positive integers after the decimal point. Champernowne proved in 1933 that this particular real number is a normal number in base ten. The construction is striking because its rule is completely explicit, while all finite words have the prescribed limiting digit block frequencies. [ref] Copeland and Erdős explicitly recall this result at the start of their own paper. [ref]
The first digits of Champernowne constant have the following exact counts, in digit order :
For the adjacent pairs fully inside that prefix, the words occur times respectively. Thus, for example, , which is about , rather than . The prefix ends partway through the decimal representation of ; the many leading ones in earlier positive integers help explain the visible imbalance.
Figure 1.
Exact digit and adjacent-pair frequencies in two prefixes of 100000 decimal digits
. The upper panels compare single-digit frequencies and list exact counts. The lower panels show all hundred overlapping pair frequencies, each with denominator , on the same vertical scale. The dashed line is the limiting reference for a normal number in base ten. In the periodic prefix, pairs through occur times each and occurs times; all other pairs are absent. Details.
These are finite counts, not a proof of the normal number theorem: a finite prefix can be followed by an all-zero tail. The theorem for Champernowne constant concerns the infinite limit, and establishes base-ten normality, rather than absolute normality. Nor do computations prove normality for familiar constants: the normality of Pi and Euler's number remains unproved, as discussed by Bailey and Borwein. [ref]
A real number is a normal number in base exactly when its iterates under the integer multiplication map on the circle, , form an equidistributed sequence. Braces denote the fractional part. Multiplication by shifts the positional notation one digit to the left:
A length- word with base- integer value specifies the half-open interval , whose length is . Visiting that interval is exactly encountering that word at the next digit position. These digit intervals form arbitrarily fine grids, so their correct limiting visiting frequencies imply equidistribution on every interval. This converts a question about digits into one about a dynamical system. Bailey and Crandall develop this connection using equidistribution of the fractional parts of . [ref]
In base ten the word corresponds to . For Champernowne constant, counting the visits for gives precisely the occurrences of in its first digits. For , the base-two integer multiplication map on the circle instead alternates between and ; it never visits , the interval for . This two-point orbit is not an equidistributed sequence.
An absolutely normal number is a normal number in every integer base . This requires every finite word in every such positional notation to have its appropriate limiting digit block frequency. Knowing base-ten normality alone does not establish absolute normality; the base is part of the statement.
Borel's 1909 result says that absolute normality holds almost everywhere for Lebesgue measure: within the exceptions form a Lebesgue null set. In particular, the set of absolutely normal numbers has Lebesgue measure one there. This is a statement about the size of an exceptional set, not a test for a specified constant. [ref] [ref]
A modern route uses the Birkhoff ergodic theorem and ergodicity of integer multiplication on the circle. For each fixed base and digit interval, the time proportion equals its Lebesgue measure almost everywhere. The bases and finite words form countable sets, so a countable intersection of these measure-one sets still has Lebesgue measure one. For an absolutely normal number, the word therefore has frequency in base two, in base three, and in base ten. The same symbols represent different intervals in different bases.
For a set of nonnegative integers, its natural density is the limiting proportion of the first nonnegative integers that belong to :
provided this limit exists. Write for the counting function. The numerator is a finite cardinality; the denominator is exactly , including zero. Every existing natural density lies between zero and one.
For the even nonnegative integers , there are elements below and below . Thus using the ceiling function, and . For the square numbers , the exact count for is
The floor function counts the allowed indices , and the extra one counts zero. At , the square numbers below ten are , so the proportion is ; at , it is . The count grows like the square root of , while the denominator grows like .
The prime numbers also have natural density zero. If is their set, the Prime number theorem gives , hence . The Prime number theorem is a substantial result about the count, rather than a consequence of the fact that there are infinitely many prime numbers. [ref]
Why use natural density when cardinality already measures size? The even nonnegative integers, the square numbers, and the prime numbers all have the same countably infinite cardinality, yet their proportions among large initial integer intervals differ. Natural density distinguishes frequent membership from sparse membership. Equivalently, under a uniform distribution on a finite set of possible nonnegative integers, is the probability of landing in . A set without natural density shows why this limiting proportion need not exist.
Figure 1.
Exact proportions below N: even integers, squares, and an alternating-block set
. Every point uses the count in divided by , with zero included among the even integers and square numbers. The right panel marks exact block-boundary counts for a set without natural density. Its low and high proportions approach and along different subsequences. Details.
Include the positive integers in , and exclude the intervening integer intervals and zero. Equivalently, include for . Each included block is large enough to raise the running proportion; the following excluded block lowers it again.
With , the exact boundary counts follow from a geometric series:
The first sum is empty at . Dividing by the corresponding boundary, rather than using one denominator for both, gives
For example, , whereas , yielding proportions and . For , the exact count is ; for it stays . Hence the proportion increases through each included block and decreases through each excluded block. These boundary subsequences give the actual limit inferior and limit superior:
Since these differ, has no natural density. Its upper asymptotic density still records its largest limiting proportion.
For a subset of the positive integers, its upper asymptotic density is
The limit superior keeps the largest limiting proportion even when the running proportions oscillate. Because they lie in , this limit superior always exists in . If natural density exists, upper asymptotic density equals it.
The convention here uses , while natural density above uses . Replacing one interval by the other changes a count by at most one, so the proportions differ by at most and have the same limit superior. For the set without natural density above, the count in is six rather than five, because is included and zero is absent. Nevertheless its upper asymptotic density is exactly . The even positive integers have upper asymptotic density and the prime numbers have upper asymptotic density zero.
The useful feature is that a large proportion along arbitrarily large initial integer intervals already supplies structure. The Szemerédi theorem says that positive upper asymptotic density forces arithmetic progressions of every finite length, with positive common difference, even without an existing natural density. Szemerédi's 1975 paper resolved this general finite-length problem; it makes density a bridge from counting to additive structure. [ref]
An increasing sequence of integers has full density when its range has natural density one. Convergence in density of a sequence means that, for each fixed tolerance, the exceptional indices have natural density zero.
Every nonnegative integer is a sum of squares with four terms, with zero terms allowed. Precisely, for every integer , there exist nonnegative integers such that
Allowing arbitrary integer roots gives the same statement: changing a root to its absolute value leaves the resulting square number unchanged. Four is a uniform upper bound on the number of nonzero terms, rather than a demand for four positive terms. Repeated square numbers are allowed. Conrad states the positive case and explicitly explains the role of zero terms; follows by taking all four roots zero. [ref]
The small cases make the convention visible:
In particular, could not be a sum of squares with four strictly positive roots, since each term would be at least one. Geometrically, a square of integer side length has area : the theorem says that any nonnegative whole-number total area can be split into at most four such square areas. It does not assert that those squares tile one larger square or a prescribed rectangle.
Figure 1.
Four-square representations as areas counted in unit cells
. The roots for were found by enumerating nonnegative four-tuples. Each panel has the same unit length, and each little cell has area one. The four separate squares illustrate addition of areas, with no claim about tiling a prescribed shape. These are exact arithmetic examples, not measured data. Details.
Why does the fourth term matter? Two square numbers do not suffice for : in modular arithmetic, a square number has remainder zero or one modulo four, so their sum cannot be three modulo four. The sum of two squares theorem gives a complete criterion for the positive integers representable with two terms. Even three terms leave gaps. A square number has remainder or modulo eight; adding three of these, with repetition allowed, never gives seven modulo eight. Thus cannot be sums of three square numbers, although Lagrange's four-square theorem represents all of them with four. This also proves that the bound four cannot be reduced to three.
The modulo-eight obstruction is not the only way that three terms can fail. For example, needs four: if three square numbers added to , their remainders modulo four would force all three roots even. Dividing by four would then express as a sum of three square numbers, contradicting the preceding calculation. These short checks explain the examples without requiring a full classification of sums of three square numbers.
Figure 2.
Minimum number of nonzero square terms for integers from one to one hundred
. Each cell is labelled by the positive integer being represented; its colour records the least number of nonzero square numbers whose sum equals it. Direct enumeration gives requiring one term, two, three, and four. Zero is omitted from the grid and requires no nonzero terms. Zero padding converts every representation into four slots. This finite computation illustrates Lagrange's four-square theorem; it does not prove its assertion for all nonnegative integers. Details.
The practical benefit of Lagrange's four-square theorem is an existence guarantee for a family of Diophantine equations: for every nonnegative integer , the displayed equation has an integer solution. It does not specify a unique solution. For instance, . To find a representation by a finite search, enumerate and test the sum. The floor function supplies a finite bound because no single term can exceed , and sorting roots removes duplicate orderings without discarding any possible sum. The theorem guarantees that the search succeeds.
A greedy algorithm that repeatedly subtracts the largest available square number need not find four terms: for it chooses , while uses four. The appeal of the theorem is this gap between local choices and a global promise: individual square numbers become farther apart, and two or three terms leave arithmetic obstructions, yet four terms cover every nonnegative integer.
For historical orientation, Conrad dates Lagrange's four-square theorem to and identifies the memoir as Démonstration d'un théorème d'arithmétique: it appeared in the Berlin Academy's volume for the year , published in , pages –. Keeping the volume year and publication year distinct avoids an apparent conflict between dates. [ref]
The circle method represents a weighted additive count as an integral of products of exponential sums against a character. Near rationals with small denominator, major arcs produce a structured main term involving a singular series and an archimedean singular integral. Away from those rationals, minor arcs require cancellation bounds. The partition and approximation estimates depend on the problem; a formal integral alone is not a positivity proof.
Every sufficiently large odd integer is a sum of three primes, with repetitions allowed. The weighted count is asymptotic to . Siegel–Walfisz theorem controls the major arcs, and Type I/II estimates for the prime exponential sum make the minor arcs negligible. Removing prime-power contributions gives genuine prime representations. This is the sufficiently-large theorem, not by itself a proof for every small odd integer.
A singular series assembles the local congruence densities in an additive counting asymptotic. For three prime summands it is , with Ramanujan sum . Its Euler product vanishes for even and has a uniform positive lower bound for odd . Different additive problems have different local factors, so this is a specific instance rather than a universal formula.
Minor arcs are the complement of the specified major arcs. They contribute an error only when a suitable pointwise or mean-value cancellation estimate is proved; their name does not imply that their measure is small.
In a circle-method problem of scale , major arcs are neighborhoods of reduced rational points with small denominator, where the relevant exponential sum is approximated using distribution in residue classes. For the three-prime problem one may take and , with suitably fixed .
An L-function is an arithmetic function given initially by a Dirichlet series and often an Euler product, with analytic continuation and a functional equation in important cases. Dirichlet L-functions and L-functions of cusp forms are basic examples; p-adic L-functions interpolate suitably modified special values.
The Hasse–Weil zeta function of an algebraic variety over a number field is assembled from local point-counting factors at finite places. At a good place with residue field of size , the factor is , where . Defining all bad-place factors requires a specified integral model or convention. The zeta function of an elliptic curve over a finite field is a local factor, rather than this global product.
For an elliptic curve over a number field, its Hasse-Weil L-function is the product of the local factors determined by its Tate module. At a good finite place, the factor is , with . At a bad place use the inertia-invariant subspace and an auxiliary prime different from the residue characteristic. For a CM elliptic curve with all endomorphisms defined over the base, this factors as the product of the two conjugate Hecke L-functions.
The L-function of a Hecke character is initially the displayed Euler product over prime ideals away from its conductor. The equivalent Dirichlet series sums over integral ideals prime to the conductor. For a CM elliptic curve with its endomorphisms defined over the base, its Hasse-Weil L-function factors into the two conjugate Hecke L-functions.
A p-adic L-function is a -adic analytic function or measure interpolating suitably adjusted special values of an L-function. The Kubota-Leopoldt p-adic L-function is the basic example attached to a Dirichlet character.
For an even Dirichlet character , the Kubota-Leopoldt function interpolates generalized Bernoulli values with the relevant Euler factor and Teichmüller character adjustment. If , it can be encoded by an integral power series. For , the -ramified convention is . The trivial character requires separate treatment of the pole.
On , this element of the total quotient ring of the Iwasawa algebra becomes an integral measure after multiplication by every difference . Its even moments interpolate the displayed Euler-corrected zeta values. Its trivial-character component has a pole, so the pseudomeasure itself must not be treated as an element of the integral group algebra. Multiplication by the augmentation ideal removes the pole.
There is an absolute finite exponent bounding the least prime in any reduced arithmetic progression by a constant times . The multiplicative large sieve inequality is one of the tools in proofs of this theorem.
A sum of character values over a set. Arithmetic cancellation, rather than the termwise absolute-value bound, is the useful feature. A Gauss sum of a Dirichlet character is a weighted example, and the Pólya–Vinogradov inequality bounds interval sums.
For a primitive nonprincipal Dirichlet character modulo , finite Fourier inversion theorem and the primitive Gauss magnitude give this bound uniformly in the interval. Bound the exponential sums by and sum the resulting harmonic series. The general Gauss identity follows from the prime-power identity by the Chinese remainder theorem.
A prime sum is a summation indexed by prime numbers, for example . The indexing restriction distinguishes it from a sum over all positive integers.
For every there is such that, for ,
Here is the Chebyshev function in an arithmetic progression and is the Euler totient function. Partial summation gives the corresponding result for the prime-counting function and the offset logarithmic integral function. The theorem controls the total error over many moduli; it need not give the same bound for each individual modulus.
Let . For , the Brun–Titchmarsh theorem and Cauchy-Schwarz inequality give
Write each summand as , then use .
A finite sum of complex exponentials, such as with , is an exponential sum. Cancellation in an exponential sum between its terms can make it much smaller than the sum of their absolute values.
Taking a finite difference lowers the degree of a polynomial phase. For , expand by shifts and apply the Cauchy-Schwarz inequality to those shift sums. This gives , where enforces that lie in . Although individual terms can be complex, the entire sum is real and nonnegative because it equals a sum of squares. For , the phase is .
For a real degree- polynomial with leading coefficient , , and coprime integers satisfying , the displayed bound applies to its exponential sum over . Repeated Weyl differencing reduces the phase to slope . A geometric-sum estimate, the subpower bound for the divisor function and the reciprocal fractional-part sum near a rational complete the estimate. The arbitrary positive exponent absorbs divisor bounds and logarithms.
If and with , the displayed estimate holds. Twice applying Weyl differencing bounds by . Group by and use the subpower bound for the divisor function. The reciprocal fractional-part sum near a rational bounds the resulting sum by . Take fourth roots, absorbing logarithms into when ; for larger the trivial bound suffices. Leiden lecture notes, Section 7.2 develop this cubic differencing estimate.
For and every , the displayed estimate bounds a mean value of a polynomial exponential sum. For cubes its eighth-moment bound is . It complements pointwise Weyl differencing estimates: a ninth moment over a region is bounded by its supremum there times this eighth moment. Leiden lecture notes, Section 8.1 give the cubic formulation.
Write and . Character orthogonality gives . For , fix the difference . If , there are choices for the two equal pairs. If , any solution has ; fixing this divisor gives a quadratic equation for , hence at most two choices. The subpower bound for the divisor function yields .
The twice-differenced inequality in Weyl differencing reads , with counting triples for which and all four shifted arguments are in . Thus , and for : the product divides , and the remaining equation determines . The Fourier coefficients of are nonnegative counts, with and . Multiply the inequality by and integrate. It follows that , after choosing the divisor-bound exponents small enough.
For in the finite field , put . The multiplicative group of a finite field is cyclic, and character orthogonality expresses the number of th roots of as . The trivial character contributes , cancelling the term. Each of the remaining Gauss sums of Dirichlet characters has modulus , by the prime-field character Gauss sum identity. Consequently .
For , character orthogonality counts representations of by . Its zero-frequency term is . The power Gauss sum over a prime field bounds the other terms in total by , strictly less than when . Every residue class therefore has a representation.
A quadratic exponential sum has a polynomial phase of degree two. Its multiplicative derivative at lag has the linear phase up to a constant factor. This degree reduction lets the Van der Corput inequality for finite scalar sequences reduce its size to estimates for finite geometric series.
For coprime integers with and , expand the squared quadratic exponential sum by its difference . The exponential geometric sum bound gives . In each block of length at most , the rotations are separated by at least : the reduced denominator of is at least , and the approximation error between two block points is at most . The separated reciprocal-distance sum bounds each block by . There are blocks, giving the displayed inequality. For bounded the trivial estimate supplies the same conclusion.
By orthogonality of integer Fourier modes, this integral counts pairs of -tuples with the same first power sums. Diagonal pairs give . There are possible moment vectors; the Cauchy-Schwarz inequality gives . Upper bounds measure how much arithmetic coincidence remains beyond these necessary contributions, and enter the Vinogradov mean-value method for a bilinear exponential sum.
Expand moments of the inner sum and group equal power-sum differences. Their multiplicities are bounded by through the Cauchy-Schwarz inequality. Two applications of the Holder inequality yield a bound for containing and a product of short geometric-sum bounds over the moment differences. Thus a sharp mean-value estimate combines with rational approximation or spacing of the coefficients to prove cancellation. When all coefficients are integers, , so mean-value estimates alone cannot force cancellation.
Translating an integer interval by changes a sum of unit-modulus terms by at most . Averaging gives the displayed formula. For , , expand to degree . Its remainder is at most . This reduces the logarithmic exponential sum to bilinear polynomial sums while keeping explicit boundary and approximation errors.
For a real phase with continuous monotone derivative and , the sum-integral discrepancy has the displayed uniform bound. Periodization and the Dirichlet-Jordan convergence theorem express it as symmetric nonzero Fourier modes. Integration by parts gives endpoint terms and reciprocal-derivative variations. Monotonicity bounds their total variation by . Pairing the leading endpoint terms reduces them to the uniformly bounded sine series. The exclusion of integer nonzero frequencies is essential.
Cancellation occurs when different complex numbers in an exponential sum have directions that reduce the absolute value of their sum. For example, the orthogonality of roots of unity makes for every integer , despite all terms having absolute value one.
For a real strongly additive arithmetic function with uniformly bounded values on primes, put and . If , then under uniform sampling from converges to the standard normal distribution. For the prime omega function, the mean and variance scales are .
If a strongly additive arithmetic function is supported on primes up to , its th uniform central moment differs from the independent Bernoulli random variables model with probabilities by . Expansion of divisibility indicator functions reduces the comparison to .
The Cramér model selects integers independently with probability , and conventionally sets , . It is a random model for the distribution of primes, not an assertion of independence for actual prime numbers.
If are the increasing selected integers in the Cramér model, then almost surely . A zero block of length after has summable probability, so the Borel-Cantelli first lemma excludes these blocks eventually.
The multiplication table problem asks how many distinct integers occur as with . Counting the pairs greatly overcounts the distinct products.
Concentration of the prime omega function near , together with and the bounded mean of , gives . This elementary argument uses only distinct prime factors.
For an additive arithmetic function , , where is the mean of an additive arithmetic function and . The implied constant is absolute.
If a Dirichlet series with nonnegative coefficients has finite abscissa of convergence , then the function it defines has a singularity at the real point . Consequently, if that function extends holomorphically across every real point, the original series converges for every real .
For every nonprincipal Dirichlet character, . A nonreal character is covered by Euler product positivity for L-function nonvanishing at height zero, since its squared character is nonprincipal.
For a real character, suppose . The simple zeta pole would cancel, making an entire function. Its nonnegative zeta-times-real-L coefficients satisfy and . Termwise derivatives at two give . The Taylor series of this entire function at two converges at zero. Every term there is nonnegative, and Tonelli theorem identifies its sum as
The last series diverges because all square coefficients are at least one. This contradiction proves the claim. It is the positive-coefficient mechanism behind the more general Landau theorem for a Dirichlet series with nonnegative coefficients.
For ,
The Orthogonality of Dirichlet characters expresses it in terms of character-twisted Von Mangoldt functions.
There is an absolute such that the Dirichlet L-functions modulo have no zero in
apart from at most one real simple zero belonging to a real nonprincipal character.
For primitive real nonprincipal Dirichlet characters, there is an absolute with at most one zero in this interval, counted with multiplicity. Positivity of and the local partial fractions give . Testing with small fixed rules out two nearby real zeros. Any possible zero is consequently simple; existence is not asserted.
An exceptional zero is the possible real simple zero omitted from the otherwise uniform classical zero-free region for Dirichlet L-functions. It belongs to a real nonprincipal primitive Dirichlet character and satisfies .
Articles were limited to the first 100 out of 969 total.

Articles by others on the same topic (2)

Number theory is a branch of mathematics that deals with the properties and relationships of numbers, particularly integers. It is one of the oldest areas of mathematics and has a rich historical background, dating back to ancient civilizations. Number theory explores various topics, including: 1. **Prime Numbers**: The study of prime numbers (integers greater than 1 that have no positive divisors other than 1 and themselves) and their distribution.