The Ramsey number is the smallest integer such that every red-blue colouring of the edges of has a red or a blue . Equivalently, every graph on vertices contains a clique of size or an independent set of size .
Set . For , let and fix a vertex in a red-blue colouring of . Among the remaining vertices, either at least are red neighbors of , or at least are blue neighbors. In the first case their induced colouring gives a red , which extends with to a red , or a blue . The second case is symmetric. This proves the Ramsey number recursion
Induction on , using the boundary values and Pascal's identity, now gives the binomial upper bound for a Ramsey number:
In particular this induction proves that the required Ramsey number exists.
Induction with Pascal's identity gives the binomial upper bound for a Ramsey number . Thus , proving .
For the lower bound, take a binomial random graph . The expected total number of -cliques and independent -sets is
For , this is at most for all sufficiently large . Some graph therefore has neither forbidden set, so . This proves by the probabilistic method.
The binomial upper bound for a Ramsey number gives . For the triangle-free Ramsey lower bound by alteration, a binomial random graph has expected triangle count and expected independent -set count . Choose a realization whose sum of these counts is at most its expectation. Delete one vertex from each surviving forbidden set, iterating through the originally listed sets. The remaining graph has neither a triangle nor an independent -set. This random alteration method proves
For large , set and . The triangle term is at most . Using and , the logarithm of the independent-set term divided by is at most
which tends to . That term is eventually below . Thus and
A graph Ramsey number is the least such that every red-blue edge colouring of the complete graph has a red or a blue . At a vertex in , either at least neighbours have red incident edges or at least have blue incident edges. In the first case find a red and adjoin the vertex, or a blue ; the second case is symmetric. Thus
Starting with and , induction gives the binomial upper bound for a Ramsey number
For the lower construction, partition vertices into two classes of size , colour inside-class edges red and between-class edges blue. Red cliques have at most vertices, and the blue graph is bipartite, so has no odd cycle.
Conversely, a graph without an odd cycle is bipartite: in each connected component colour vertices by the parity of the length of a path from a root; differing path parities would give an odd closed walk, hence an odd cycle. On vertices one of the two blue bipartition classes has at least vertices. Every edge within it is red, giving a red . Thus is the exact threshold for this alternative.
The diagonal Ramsey number is the least positive integer such that every red-blue edge colouring of the complete graph contains a monochromatic copy of .
For the existence and bound, write for the least forcing either a red or a blue . Given a vertex of , the pigeonhole principle says that at least incident edges are red or at least are blue. In the first case those red neighbours contain a red , which joins to to make a red , or a blue ; the second case is symmetric. Hence
Starting from and using Pascal's identity gives the binomial upper bound for a Ramsey number
Therefore
which proves both existence and the required estimate.
To determine , color a cycle graph red and its complement graph, also a , yellow. This colors without a monochromatic triangle, so . At any vertex of a red-yellow , at least three of the five incident edges have one color. If an edge among their three other endpoints has that color, it completes a monochromatic triangle with the chosen vertex; if none does, those three endpoints themselves form a triangle of the other color. Thus , and
The same local argument proves uniqueness on . No vertex can have three incident edges of one color: their other endpoints would either contain an edge of that color or form a triangle of the other color. Every vertex therefore has vertex degree at most two in each color, and because the two degrees sum to four, each is exactly two. Each color class is consequently a regular graph of degree two on five vertices, hence a single . Up to relabelling, the coloring is exactly the cycle-and-complement coloring above.
Finally, the monochromatic-triangle counting formula gives, for a coloring of with red degrees ,
The bound is attained by coloring all edges of red and the two complementary copies of yellow: there are no red triangles and exactly two yellow triangles. The least requested number is therefore
We use the Erdős-Rado selection argument. Put
Starting with a sufficiently large reservoir, choose vertices in order. After choosing , successively halve the remaining reservoir for each so that the colour of
is constant as ranges over the final reservoir. The total number of halvings is at most , so initial vertices suffice.
Colour the pair , for , by the stabilized colour of for . Among , the definition of gives a monochromatic set of vertices. Adjoining gives a monochromatic -set for the original triple colouring. Hence
The binomial upper bound for a Ramsey number gives , so the right-hand side is at most
for an absolute .
The diagonal Ramsey number is the least positive integer such that every red-blue colouring of the edges of contains a monochromatic .
More generally, let be the least forcing either a red or a blue . We have
Assuming the two smaller numbers exist, colour
and choose a vertex . At least of its incident edges are red, or at least are blue. In the first case, the corresponding neighbourhood contains a red , which extends with to a red , or a blue . The second case is symmetric. Thus
which proves existence by induction.
Pascal's identity then gives the binomial upper bound for a Ramsey number
Consequently, for ,
Ramsey number 2026-10-14
For positive integers , the Ramsey number is the least integer such that every red-blue edge coloring of the complete graph contains either a red clique on vertices or a blue clique on vertices. The complete graph has all unordered pairs as edges; every edge gets exactly one color, with no requirement that incident edges have different colors. The definition and its graph interpretation appear in D. Yogeshwaran's Discrete Mathematics notes, section 5.3.
For example, asks how many vertices force a monochromatic triangle in a graph. Swapping colors gives . Also : either a red edge exists, or all edges are blue. On vertices, an all-blue coloring avoids both a red edge and a blue -clique. Under the convention that a one-vertex clique qualifies in either color, .
For , splitting the neighbors of one vertex by the colors of their incident edges gives
Indeed, in a complete graph of the order on the right, at least neighbors are joined to that vertex by red edges, or at least are joined by blue edges. In the red case, the defining property of the smaller Ramsey number supplies either a blue -clique among the neighbors or a red -clique that extends by the chosen vertex; the blue case is symmetric. Starting from the one-vertex base cases, this recursively proves finite existence. The binomial upper bound for a Ramsey number packages the resulting estimate. [ref] present the neighbor argument and the sharp Ramsey number for triangles.
Equivalently, every graph on at least vertices has an -clique or a -element independent set: color its edges red and the edges of its complement graph blue. This is the Ramsey theorem in graph theory. Larger monochromatic patterns have their own thresholds, such as a graph Ramsey number, matching Ramsey number or triangle-packing Ramsey number; these ask different questions from finding one clique.