Number Theory

Additive Combinatorics and the Structure Hidden in Sets of Integers

Explore sumsets, arithmetic progressions and the theorems showing that large or orderly sets of integers cannot avoid patterns.

Key takeaways

  • The sumset A + A contains all sums of two elements of A, and its size measures how structured A is.
  • For a finite set of n integers, A + A has at least 2n − 1 elements and at most n(n + 1)/2.
  • Freiman's theorem says that sets with small sumsets sit efficiently inside generalized arithmetic progressions.
  • Szemerédi's theorem says every set of integers of positive upper density contains arbitrarily long arithmetic progressions.
  • The Green–Tao theorem shows that the primes also contain arbitrarily long progressions.

Additive combinatorics studies what addition does to sets of numbers. If you take a set A and form all sums of two of its elements, how large is the result, and what does that size tell you about A? If a set of integers is large enough, which patterns must it contain?

The recurring answer is that there is a trade between size, randomness and structure. A set whose sums overlap heavily must resemble an arithmetic progression, and a set that fills a fixed fraction of the integers must contain long progressions, whether or not anyone arranged them.

Sumsets

For a finite set A of integers, define A + A = {a + b : a and b in A}, allowing a = b. Compare two sets of five numbers.

Set A Distinct sums Size of A + A
{0, 1, 2, 3, 4} 0 through 8 9
{0, 1, 3, 7, 12} 0, 1, 2, 3, 4, 6, 7, 8, 10, 12, 13, 14, 15, 19, 24 15

The first set is an arithmetic progression, a list with a constant gap. Its sums collide constantly. In the second, every unordered pair gives a different sum. A set with that property is called a Sidon set.

Fifteen is the maximum for five elements, since there are 5 pairs of equal elements and 10 pairs of different ones.

Why 2n − 1 is the floor

List the elements of A in increasing order: a₁ < a₂ < ... < aₙ. The following sums are strictly increasing:

a₁+a₁ < a₁+a₂ < ... < a₁+aₙ < a₂+aₙ < ... < aₙ+aₙ

The first stretch has n terms and the second adds n − 1 more. So there are at least 2n − 1 distinct sums. Equality holds only for arithmetic progressions.

A similar statement holds for remainders modulo a prime p. The Cauchy–Davenport theorem says that A + B has at least the smaller of p and |A| + |B| − 1 elements, for nonempty sets A and B.

Inverse theorems

The result above goes from structure to a small sumset. The deeper question runs the other way: if A + A has at most K times as many elements as A, for a fixed modest K, what must A look like?

A generalized arithmetic progression is a set of the form a + i·d + j·e with i and j in fixed ranges, and similarly with more directions. Think of a grid projected onto the number line. Gregory Freiman proved that a set with small doubling is contained in such a progression whose number of directions and relative size depend only on K.

The quantitative strength of this statement has been improved many times. A major related conjecture, the polynomial Freiman–Ruzsa conjecture, was proved in the setting of binary vectors in 2023 by Timothy Gowers, Ben Green, Freddie Manners and Terence Tao.

Sums against products

Can a set be small under both addition and multiplication? A progression like {1, 2, 3, ..., n} has few sums but many products. A geometric progression like {1, 2, 4, 8, ...} has few products but many sums.

Erdős and Szemerédi conjectured that at least one of A + A and A × A must always be nearly as large as |A|². Partial results with exponents above 1 are proven and have been steadily improved. The full conjecture was open as of the mid-2020s.

Colorings and progressions

In 1927 B. L. van der Waerden proved that for any number of colors and any length k, if you color the integers from 1 to N and N is large enough, some single color contains an arithmetic progression of length k.

The smallest case with two colors and length 3 has N = 9. For N = 8 you can avoid it. Color 1, 2, 5 and 6 red and 3, 4, 7 and 8 blue; neither color has three equally spaced members. No coloring of 1 to 9 escapes.

This is a result of the same flavor as Ramsey theory: complete disorder is not available once a structure is large.

Density theorems

Erdős and Turán proposed that coloring is not the real issue: any sufficiently dense set should contain progressions. Say a set of integers has positive upper density if, for infinitely many N, it includes at least a fixed fraction of the numbers up to N.

  • Klaus Roth proved in 1953 that such a set contains progressions of length 3.
  • Endre Szemerédi proved in 1975 that it contains progressions of every length.
  • Hillel Furstenberg gave a new proof in 1977 using ergodic theory, the study of repeated transformations.
  • Timothy Gowers gave another around the turn of the century, with much better numerical bounds, using higher-order Fourier analysis.
Progressions in sets of integers
1927 Van der Waerden: finite colorings force progressions 1953 Roth: dense sets contain 3-term progressions 1975 Szemerédi: dense sets contain every length 1977 Furstenberg: proof by ergodic theory 2004 Green and Tao announce long progressions in primes 1927 Van der Waerden: finite colorings force progressions 1953 Roth: dense sets contain 3-term progressions 1975 Szemerédi: dense sets contain every length 1977 Furstenberg: proof by ergodic theory 2004 Green and Tao announce long progressions in primes

Random sets as a yardstick

Why should dense sets contain progressions? First count how many a random set would have. In the numbers 1 to 1000 there are 249,500 progressions of three distinct terms, counted with increasing gap. If each number is kept independently with probability 0.1, a given progression survives with probability 0.1³ = 0.001. You therefore expect about 250.

A set with density 0.1 and no progressions at all would have to be very far from random. The proofs exploit this. Either a set has roughly the random number of patterns, in which case there are plenty, or it has some detectable bias, such as favoring one residue class or one long stretch. In the second case you zoom in to the biased region, where the density is higher, and repeat. Density cannot exceed 1, so the process must stop.

This split into structured and random behavior is the central strategy of the subject.

A zero-sum theorem

Not every result concerns progressions. Erdős, Ginzburg and Ziv proved in 1961 that among any 2n − 1 integers you can choose exactly n whose sum is divisible by n.

For n = 3, take any five integers and sort them by remainder on division by 3. If some remainder occurs three times, those three add to a multiple of 3. If not, each of the three remainders can hold at most two of the five numbers, so all three remainders occur. Picking one of each gives a sum with remainder 0 + 1 + 2 = 3, again a multiple of 3.

The number 2n − 1 cannot be lowered: with n − 1 zeros and n − 1 ones, no choice of n numbers has a sum divisible by n, when n ≥ 2.

Arguments of this type rest on the pigeonhole principle in small cases and on sumset bounds such as Cauchy–Davenport when n is prime.

Progressions among primes

The primes have density zero, so Szemerédi's theorem does not apply to them directly. Green and Tao found a way to transfer it: they showed that the primes sit with positive relative density inside a larger set that behaves sufficiently like a random one.

Their theorem says the primes contain progressions of every finite length. A small instance is 5, 11, 17, 23, 29, with gap 6. The proof does not hand you long examples; those are found by computer search. See the Green–Tao theorem.

Sets that avoid patterns

The flip side asks how large a set can be without a 3-term progression. A greedy choice starting from 1 gives 1, 2, 4, 5, 10, 11, 13, 14. These are the numbers n for which n − 1, written in base 3, uses only the digits 0 and 1.

Felix Behrend constructed much larger examples in the 1940s using points on spheres in many dimensions. The true maximum lies between known upper and lower bounds. In 2023 Zander Kelley and Raghu Meka made a major advance on the upper bound.

A related finite setting is the cap set problem: how many points can you choose in n-dimensional space over the three remainders 0, 1, 2 with no three on a line? In 2016, building on work of Croot, Lev and Pach, Ellenberg and Gijswijt showed with a short polynomial argument that the number is exponentially smaller than 3ⁿ. The card game Set is the case n = 4.

Tools and open problems

Fourier analysis is central. A set with unexpectedly few progressions must correlate with some wave-like pattern, and that allows you to pass to a smaller region where the set is denser. Repeating the step eventually gives a contradiction. The basic transform belongs to harmonic analysis.

Other methods come from graph theory, especially regularity lemmas, and from probabilistic arguments.

A famous conjecture of Erdős states that if the sum of the reciprocals of a set of positive integers diverges, the set contains arbitrarily long progressions. Thomas Bloom and Olof Sisask established the case of length 3 in 2020. The general statement remained open as of the mid-2020s; check current sources.

Try it yourself

  1. Find a set of four integers whose sumset has 10 elements, the maximum.
  2. Verify that {1, 2, 4, 5, 10, 11, 13, 14} contains no three terms with the middle one the average of the others.
  3. Color 1 to 8 in a different way that avoids one-colored 3-term progressions.

For the first, {0, 1, 3, 7} works: its sums are 0, 1, 2, 3, 4, 6, 7, 8, 10 and 14.

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