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 ,