Number Theory

Diophantine Approximation and How Close Fractions Can Get

Find out how well fractions can imitate irrational numbers, from the pigeonhole principle to the theorems of Liouville and Roth.

Key takeaways

  • Dirichlet's theorem guarantees infinitely many fractions within 1/q² of any irrational number.
  • Hurwitz sharpened this to 1/(√5 q²), and the golden ratio shows that √5 cannot be replaced by anything larger.
  • Rational numbers, oddly, are the hardest to approximate by other rationals.
  • Liouville showed that algebraic numbers resist very close approximation, which produced the first proven transcendental numbers.
  • Roth's theorem says that for an irrational algebraic number, exponents above 2 succeed only finitely often.

Diophantine approximation asks how closely a given real number can be approximated by fractions p/q, compared with the size of the denominator q. Any number can be approached as closely as you like if q may be huge. The interesting issue is the exchange rate between accuracy and size.

The answers are surprising. Every irrational number can be approximated with error below 1/q² infinitely often. Numbers that solve polynomial equations can do hardly any better, and some specially constructed numbers can do fantastically better.

The trivial bound

Fix a denominator q. The fractions with that denominator are spaced 1/q apart, so any real number x lies within 1/(2q) of one of them. That requires no cleverness.

The question is whether some denominators do much better. For π, the denominator 7 gives error about 0.00126, far smaller than 1/14, and smaller even than 1/49.

Dirichlet and the pigeonholes

Let x be irrational and N a positive integer. Look at the fractional parts of 0, x, 2x, ..., Nx, that is, what remains after removing whole-number parts. These are N + 1 numbers between 0 and 1.

Cut the interval into N equal boxes. Since there are more numbers than boxes, two of them, say from ix and jx with i < j, share a box. Then q = j − i satisfies q ≤ N, and qx is within 1/N of some integer p. Dividing by q,

|x − p/q| < 1/(qN) ≤ 1/q²

Try x = √2 with N = 5. The fractional parts of kx for k = 0 to 5 are 0, 0.414, 0.828, 0.243, 0.657 and 0.071. With boxes of width 0.2, the first and last land together. So q = 5, p = 7, and the error |√2 − 7/5| ≈ 0.0142 is below 1/25.

By taking N larger and larger you obtain infinitely many different fractions. This is a classic use of the pigeonhole principle. The proof shows that good fractions exist without saying efficiently how to find them. Continued fractions supply them.

Rationals are different

Suppose x = a/b is itself rational and p/q is a different fraction. Then

|a/b − p/q| = |aq − bp| / (bq) ≥ 1/(bq)

since the numerator is a nonzero integer. The error cannot be smaller than a constant times 1/q. So only finitely many fractions beat 1/q².

This yields a test for irrationality: if a number has infinitely many distinct fractions p/q with q times |x − p/q| times q staying below 1, it cannot be rational. Many irrationality proofs, including the one for e, use a version of this idea.

The golden ratio holds out

Adolf Hurwitz proved that every irrational x has infinitely many fractions with

|x − p/q| < 1/(√5 × q²)

The constant √5 ≈ 2.236 is the best possible in general. For the golden ratio, whose continued fraction consists entirely of 1s, any larger constant leaves only finitely many solutions.

If you set aside the golden ratio and numbers closely related to it, the constant improves to √8. Setting aside the next family improves it again. The sequence of these thresholds, which climbs toward 3, is called the Lagrange spectrum in its initial part.

Class of x Guaranteed bound, infinitely often
All irrationals 1/(√5 q²)
Excluding the golden family 1/(√8 q²)
Almost all real numbers c/q² for every positive c

Grading a list of fractions

A fair score for a fraction is q² times its error. Smaller is better, and it removes the advantage of a large denominator. Here are good fractions for √2 ≈ 1.414214.

Fraction Error q² × error
3/2 0.085786 0.343
7/5 0.014214 0.355
17/12 0.002453 0.353
41/29 0.000420 0.354

The scores settle near 0.3536, which is 1/(2√2). Algebra explains it. Each of these fractions satisfies p² − 2q² = ±1, and

|p/q − √2| = |p² − 2q²| / (q² × (p/q + √2))
           = 1 / (q² × (p/q + √2))
as p/q → √2, the score tends to 1/(2√2) ≈ 0.3536

This is below Hurwitz's threshold of 1/√5 ≈ 0.447, so √2 is somewhat easier to approximate than the golden ratio. It can never do dramatically better, because the numerator p² − 2q² is a nonzero integer and so cannot be smaller than 1 in size.

For contrast, 355/113 as an approximation to π scores about 0.0034. That is an unusually good fraction, and π's other convergents are mostly far less impressive.

The irrationality exponent

One number summarizes how approximable x is. Take the largest exponent m, or more precisely the supremum, such that |x − p/q| < 1/q^m has infinitely many solutions.

  • A rational number has exponent 1.
  • Every irrational number has exponent at least 2, by Dirichlet.
  • Irrational algebraic numbers have exponent exactly 2, by Roth.
  • Almost all real numbers have exponent 2, and so does e.
  • Liouville numbers have infinite exponent.

Exponent 2 therefore does not tell you a number is algebraic. The test works in one direction only: an exponent above 2 proves that an irrational number is transcendental.

For π, researchers have proved finite upper bounds that have been lowered over the years, and the expected true value is 2.

Liouville's barrier

A number is algebraic of degree d if it solves an integer polynomial equation of degree d and no lower one. In 1844 Joseph Liouville showed that such a number, with d ≥ 2, satisfies

|x − p/q| > c / q^d      for every fraction p/q

for some positive constant c depending on x. The proof is short. The polynomial evaluated at p/q is a nonzero fraction with denominator dividing q^d, so its size is at least 1/q^d. A function with bounded slope cannot change that much over a very short distance, so p/q cannot be too near the root.

For √2 the bound is explicit: |2q² − p²| is at least 1, so p/q cannot approach √2 faster than a constant over q².

Turn the theorem around: a number that can be approximated better than every such bound must be transcendental. Liouville's example is

L = 1/10^1! + 1/10^2! + 1/10^3! + ...
  = 0.110001000000000000000001...

Cutting off after a few terms gives fractions whose errors are tiny compared with any fixed power of the denominator. These were among the first numbers proven transcendental, a story continued in transcendental numbers.

How well can fractions approximate a number?
Liouville numbers Beat every fixed power of 1/q infinitely often Almost all reals Beat any constant over q², but no higher power Algebraic irrationals Roth: exponents above 2 work only finitely often Rationals Other fractions cannot come closer than c/q Liouville numbers Beat every fixed power of 1/q infinitely often Almost all reals Beat any constant over q², but no higher power Algebraic irrationals Roth: exponents above 2 work only finitely often Rationals Other fractions cannot come closer than c/q

From Liouville to Roth

Liouville's exponent d is wasteful when d is large. Axel Thue lowered it early in the twentieth century, Carl Ludwig Siegel and others lowered it further, and in 1955 Klaus Roth reached the end of the road.

Roth's theorem: if x is an irrational algebraic number and ε is any positive number, then only finitely many fractions satisfy |x − p/q| < 1/q^(2+ε).

Dirichlet shows the exponent 2 is always achievable, so no improvement is possible. Roth received a Fields Medal in 1958.

The theorem has a known weakness. Its proof is ineffective: it bounds the number of exceptional fractions without bounding how large they can be. Finding an effective version is a major open goal.

Consequences for equations

Approximation theorems limit integer solutions of equations. Take x³ − 2y³ = k for a fixed nonzero integer k. A large solution would make x/y extraordinarily close to the cube root of 2, with error of order 1/y³. Thue's work shows that this can happen only finitely often.

So the equation has finitely many solutions, in sharp contrast to x² − 2y² = 1, which has infinitely many. That quadratic case sits exactly at the Dirichlet exponent and is treated under Pell's equation. Such results belong to the wider study of Diophantine equations.

Typical numbers

What happens for a number chosen at random? Aleksandr Khinchin proved a clean criterion. Ask for errors below f(q)/q, where qf(q) behaves in a suitably decreasing way. Then almost every real number has infinitely many solutions if the sum of f(q) diverges, and almost no number does if it converges.

For example, errors below 1/(q² ln q) occur infinitely often for almost all x, while errors below 1/(q² (ln q)²) do not.

A far-reaching extension, the Duffin–Schaeffer conjecture, concerned arbitrary choices of f with fractions in lowest terms. Dimitris Koukoulopoulos and James Maynard proved it in work announced in 2019.

For particular constants, much less is known. The quality of approximation to π by fractions has only been bounded loosely, even though it is expected to behave like a typical number.

Spreading out multiples

A companion question looks at where the fractional parts of x, 2x, 3x and so on fall. For irrational x they fill the interval evenly: the share landing in any subinterval tends to its length. Hermann Weyl developed the general theory in 1916.

This has a visual meaning. Rotate a point on a circle repeatedly by an irrational fraction of a turn and it never returns exactly, yet it visits every arc with the right frequency.

A well-known open problem in the area is Littlewood's conjecture, about approximating two numbers at once with a common denominator. Consult recent literature for its status.

Written for 4Mathematics with AI writing tools and not reviewed line by line by a person. Check anything you rely on against a textbook or primary source. Report an error.

Keep reading

All 59 articles in Number Theory →

Latest news on this topic