Mathwords logoMathwords

Behrend's Theorem — Definition, Formula & Example

Behrend's Theorem says you can choose a surprisingly large set of whole numbers from 1 to N that contains no three numbers evenly spaced, like 5, 9, 13. It is a lower bound: it shows how big such a progression-free set can get.

Let r3(N)r_3(N) be the largest size of a subset of {1,2,…,N}\{1, 2, \dots, N\} containing no nontrivial 3-term arithmetic progression a, a+d, a+2da,\ a+d,\ a+2d with d≠0d \neq 0. Behrend (1946) proved that there is an absolute constant c>0c > 0 such that r3(N)≥Ne−cln⁡Nr_3(N) \ge N e^{-c\sqrt{\ln N}} for all sufficiently large NN. His proof writes integers in a base where adding two of them causes no carries. It then keeps only the numbers whose digit vectors lie on one sphere. Three points on a sphere cannot be collinear with one being the midpoint of the other two, so the condition x+z=2yx + z = 2y forces x=y=zx = y = z.

Key Formula

r3(N)≥N e−cln⁡Nr_3(N) \ge N\, e^{-c\sqrt{\ln N}}
Where:
  • r3(N)r_3(N) = Size of the largest subset of {1, ..., N} with no 3-term arithmetic progression
  • NN = Upper end of the range of integers being considered
  • cc = A fixed positive constant that does not depend on N

Worked Example

Problem: Build a progression-free set with Behrend's idea, using 3-digit base-5 numbers whose digits are 0, 1 or 2 and whose squared digits add up to 5. List the set and explain why it contains no 3-term arithmetic progression.
Step 1: Use the place values 25,5,125, 5, 1. With digits at most 2, the only way to get a2+b2+c2=5a^2 + b^2 + c^2 = 5 is to use the digits 0, 1, 2 in some order, which gives 3!=63! = 6 numbers. All six digit vectors lie on one sphere of radius 5\sqrt{5}.
0125=7, 0215=11, 1025=27, 1205=35, 2015=51, 2105=55012_5 = 7,\ 021_5 = 11,\ 102_5 = 27,\ 120_5 = 35,\ 201_5 = 51,\ 210_5 = 55
Step 2: Suppose x+z=2yx + z = 2y for x,y,zx, y, z in the set. Each digit is at most 2, so each digit sum xi+zix_i + z_i is at most 4. Since that is less than 5, adding never carries. The equation therefore holds digit by digit, so the digit vector of yy is the midpoint of the digit vectors of xx and zz.
xi+zi=2yifor each digit position ix_i + z_i = 2y_i \quad \text{for each digit position } i
Step 3: All three vectors lie on the same sphere. The midpoint of two different points on a sphere lies strictly inside it, so xx and zz must be equal, and then yy equals them too. Without the sphere, the full grid of digit vectors contains progressions such as 0,31,620, 31, 62 (digit vectors 000,111,222000, 111, 222). The sphere is what rules them out.
∣x⃗∣=∣y⃗∣=∣z⃗∣=5 ⇒ x=y=z|\vec{x}| = |\vec{y}| = |\vec{z}| = \sqrt{5} \ \Rightarrow\ x = y = z
Answer: The set {7,11,27,35,51,55}\{7, 11, 27, 35, 51, 55\} has 6 elements, all inside {0,1,…,124}\{0, 1, \dots, 124\}, and contains no 3-term arithmetic progression. Behrend's full construction uses many more digits and picks the sphere that holds the most digit vectors. That gives a much bigger advantage when NN is huge.

Why It Matters

Roth's Theorem shows that r3(N)/N→0r_3(N)/N \to 0. Behrend's Theorem shows this decay is slower than any power N−εN^{-\varepsilon}. The 2023 Kelley–Meka bound r3(N)≤Ne−c(ln⁡N)1/12r_3(N) \le N e^{-c(\ln N)^{1/12}} has the same general shape, which suggests Behrend's construction is close to optimal. Behrend-type sets also appear in theoretical computer science, for example in fast matrix-multiplication algorithms and in Ruzsa–Szemerédi graphs.

Common Mistakes

Mistake: Reading Behrend's Theorem as saying a progression-free set can contain a fixed positive fraction of {1, ..., N}.
Correction: The factor e−cln⁡Ne^{-c\sqrt{\ln N}} still tends to 0, so the fraction shrinks as NN grows, just as Roth's Theorem requires. Behrend's result is a lower bound showing that the shrinking happens very slowly. It does not contradict Roth.

Related Terms

  • Theorem — What Behrend proved about progression-free sets
  • Arithmetic Sequence — The evenly spaced patterns a progression-free set avoids
  • Modular Arithmetic — Progression-free sets are also studied inside the integers mod N
  • Lower Bound — The theorem gives a lower bound on set size
  • Sphere — Construction uses lattice points on a sphere
  • Midpoint — Forbidden middle term is the midpoint of the others
  • Subset — Progression-free sets are special subsets of the numbers 1 to N
  • Whole Numbers — The set being chosen from consists of whole numbers