Van der Waerden Calculator

Guaranteed monochromatic APs

CalculatorsFreeNo Signup
4.3(732 reviews)
All Tools

Loading tool...

About Van der Waerden Calculator

A Van der Waerden number explorer showing known values and bounds for W(r,k): the minimum n such that any r-coloring of {1,...,n} contains a monochromatic arithmetic progression of length k. Very few exact values known. Client-side.

Van der Waerden Calculator Features

  • Known values
  • Bounds
  • AP detection
  • Coloring
  • Table
Van der Waerden's theorem (1927): for any r colors and length k, there exists W(r,k) such that any r-coloring of {1,...,W(r,k)} contains a monochromatic k-term AP. Known: W(2,3)=9, W(2,4)=35, W(2,5)=178, W(2,6)=1132. Exact values are extremely hard to compute.

How to Use

Enter r (colors) and k (AP length):

  • W(r,k): Exact or bounds
  • Table: Known values
  • Example: AP demonstration

The Theorem

No matter how you color {1,...,n} with r colors, if n ≥ W(r,k), some color class contains a k-term AP (a, a+d, a+2d, ..., a+(k-1)d). This is guaranteed regardless of the coloring strategy!

Growth Rate

W(r,k) grows incredibly fast — at least double-exponential in k. Gowers (1998) proved an upper bound, winning a Fields Medal partly for this work. The gap between known bounds is enormous.

Step-by-Step Instructions

  1. 1Enter colors r.
  2. 2Enter AP length k.
  3. 3Look up W(r,k).
  4. 4View bounds.
  5. 5Explore examples.

Van der Waerden Calculator — Frequently Asked Questions

Why is W(2,5)=178?+

With 2 colors and {1,...,177}, there exists a 2-coloring with no monochromatic 5-AP. But for {1,...,178}, every 2-coloring must contain one. This was computed by exhaustive search — no simple formula exists.

How fast do W(r,k) grow?+

At LEAST tower-function fast (iterated exponentials). This makes exact computation nearly impossible for large r,k. Even W(2,7) is unknown! The best upper bounds come from Gowers' work using Fourier analysis.

Connection to Ramsey theory?+

Van der Waerden's theorem is a cornerstone of Ramsey theory: 'complete disorder is impossible.' Just as Ramsey numbers guarantee monochromatic cliques, Van der Waerden numbers guarantee monochromatic arithmetic progressions.

Share this tool: