Mantel's Theorem
The Turán number is the maximum number of edges a triangle-free graph on vertices can have. Mantels Theorem:
attained by the complete bipartite graph and, up to which vertices land on which side, only by it.
A complete bipartite graph is automatically triangle-free, since a bipartite graph has no odd cycle at all (Topic 7, Bipartite Graphs and Odd Cycles) and a triangle is a -cycle; the content of the theorem is that this costs almost nothing in edges. Mantels theorem says the densest triangle-free graph is not some clever irregular construction but exactly this simplest one, split as evenly as possible. The bound also runs as a guarantee: any graph with more than edges, however it is built, is FORCED to contain a triangle somewhere, whether or not that triangle was intended. This is the first theorem of extremal graph theory, the subject of trading a forbidden pattern for a maximum edge count, and Turáns theorem next generalizes it from triangles to any larger clique.
For , Mantels bound is . The complete bipartite graph (parts of size ) realizes it exactly: it is triangle-free, since it is bipartite, and .
For the bound is — rounding down, since splits unevenly. realizes it: triangle-free, with . Splitting as and instead gives only edges, so the BALANCED split is what matters, not merely bipartiteness; is triangle-free too but far from extremal.
Could a triangle-free graph on vertices have edges? Mantels bound is , so is impossible: any graph on vertices with edges, however it is drawn, must contain a triangle. The bound itself IS attainable, by : .
Mantels theorem bounds a triangle-free graphs edges from ABOVE; it says nothing about a lower bound. The empty graph on any vertices has edges and is triangle-free, nowhere near , and so is any tree, with only edges (Topic 4). The bound is a ceiling that the balanced complete bipartite graph alone reaches, not a floor every triangle-free graph must clear.
Find the maximum number of edges a triangle-free graph on vertices can have, and a graph achieving it.
Show the answerHide the answer
Mantels bound is , attained by the balanced complete bipartite graph : bipartite, hence triangle-free, with .
Turán's Theorem
For , the Turán graph is the complete -partite graph on vertices whose parts are as equal as possible (sizes or ). Turáns Theorem: — among all -free graphs on vertices, has the most edges, and it is the unique graph that does.
Mantels theorem is exactly the case : is the balanced complete bipartite graph, and forbidding is forbidding . The same picture scales up: a complete -partite graph can never contain , since any vertices must have two in the same part, and vertices in the same part are never adjacent — so the upper bound on cliques is automatic, and the content of the theorem is that this many-parts construction is also the DENSEST way to avoid . As grows, more and larger cliques are allowed, the parts can shrink, and gets denser; letting grow without bound recovers nearly all of edges, since forbidding only an enormous clique barely restricts a graph at all.
How many edges can a -free graph on vertices have? Here (forbidding ), and splits evenly into three parts of size . has pairs of parts, each pair contributing cross edges, for .
For , , the parts cannot be equal: . Counting edges between every pair of parts, . Equivalently, (total pairs, minus the pairs lost inside each part): , the same answer.
What is , and what does the extremal graph look like? With , splits as . The complete -partite graph on parts of size has edges; checking with the other formula, . So , realized by with parts .
Confusing which clique forbids. has PARTS and forbids , one size larger — Mantels forbids , not (an edge). Using parts to bound instead of is the single most common index slip with this theorem; always check the forbidden clique is exactly one bigger than the part count.
Find .
Show the answerHide the answer
Forbidding means , and splits evenly into four parts of size . There are pairs of parts, each contributing edges, so .
Ramsey Numbers and
Color every edge of the complete graph either red or blue. The Ramsey number is the smallest such that EVERY such -coloring contains a red or a blue (a set of vertices joined entirely in red, or vertices joined entirely in blue). Theorem: .
Extremal graph theory, in Mantel and Turán, asked how many EDGES force a pattern inside one graph. Ramsey theory asks a different question: how many VERTICES force a pattern, no matter how the edges of a complete graph are split into two colors. The two subjects meet directly here: a red-triangle-free coloring makes the red graph itself triangle-free, so Mantels theorem caps how much "red" a coloring can have before it is forced to yield — though, as the examples below show, that cap alone is not sharp enough to pin down exactly. needs two separate halves: a coloring of avoiding both colors triangles (showing ), and a proof that never avoids them (showing ).
Color the -cycle red and the five remaining "diagonal" edges () blue — a red pentagon and a blue pentagram. Every triangle on of the vertices uses a mix: checking all triples, each one turns out to use at least one red edge and at least one blue edge, so none is monochromatic. This single coloring proves .
Take any -coloring of and any vertex ; it has edges to the other vertices, so by pigeonhole at least are the same color, say red, to vertices . If any edge among is red, that edge together with s two red edges to its endpoints is a red triangle. If NONE of is red, all three are blue, and is itself a blue triangle. Either way has a monochromatic triangle — and since and the coloring were arbitrary, this holds for EVERY -coloring of , proving .
Color by parity: edge is red if is even (both odd or both even), blue if is odd. From vertex (odd), the edges to (odd) are red and to (even) are blue — blue edges, matching the pigeonhole argument with blue in place of red. Checking the three edges among : are all even, so ALL THREE are red, not blue — so the triangle forced is not among in blue, but the arguments other case applies directly to itself as a monochromatic RED triangle. (The same reasoning finds the red triangle directly: are all even.)
Proving only one half of the equality. The coloring above shows , and the pigeonhole argument shows — BOTH are needed to conclude exactly. A coloring avoiding monochromatic triangles on vertices does not, by itself, say anything about vertices; and the pigeonhole argument for does not, by itself, rule out some cleverer coloring of working too (it does not, but that needs the explicit construction to settle).
At a party of people, is it guaranteed that some are mutual friends or some are mutual strangers?
Show the answerHide the answer
Model the party as , coloring each edge red for "friends" and blue for "strangers." Since , every -coloring of contains a monochromatic triangle: either mutual friends (red) or mutual strangers (blue). **Yes** — guaranteed, for any people (and this is the smallest party size for which it is guaranteed, since the pentagon-pentagram coloring shows people are not enough).
Bounds on Ramsey Numbers
For ,
with base cases and for all . Unrolling the recursion with Pascals identity gives the closed form
This is the pigeonhole argument from , generalized: a vertex in has other vertices, and if then has either red neighbors or blue neighbors (Why It Works spells out why one of the two must happen). Red neighbors that size already force a red or a blue among themselves, and adding to a red among its red neighbors gives a red ; the blue case is symmetric. The base cases say almost nothing (-free needs no blue at all when , since a single blue edge already IS a blue ), yet bootstrapping them through the recursion already pins down several exact values, as the examples show — though, as with Mantel versus Turáns better bound, a recursive bound built from WEAK sub-bounds is itself weak, while one built from exact known values can land exactly on the truth.
Apply the recursion with : . (The true value, found by exhaustive search, is — the recursive bound is correct but not sharp here.)
With : , using the already-established rather than the cruder base-case bound. This time the bound is exact: .
Bound using (established above) on both sides of the recursion: , since by symmetry of the definition (swapping the roles of red and blue swaps and ). This again lands exactly on the known value, . Compare the crude binomial bound ignoring any improved sub-values: — weaker than , since it never uses the fact that is rather than the base-case estimate of .
Misremembering the recursion as , decreasing BOTH arguments in the second term. The correct split decreases only the term that actually shrinks — s red neighbors still need to avoid a blue , not a blue , since itself is not one of them. The wrong recursion on gives , strictly LESS than the true value — an impossible upper bound, which exposes the error immediately.
Use the recursion, together with , to bound .
Show the answerHide the answer
With : . (The true value is , so the bound is valid but not sharp.)
The Probabilistic Method
To prove some object with a property exists, it suffices to build a RANDOM object and show the expected number of "bad" events is less than — since a random variable that is always a non-negative integer and averages below must sometimes equal . Applied to Ramsey numbers: color each edge of red or blue independently with probability each. Any fixed set of vertices is monochromatic with probability (all of its edges must match, in either color), so the EXPECTED number of monochromatic -sets is
If this is less than , some coloring of has zero monochromatic -sets, so .
This is a completely different kind of argument from the last two sections: Mantel, Turán and the pigeonhole bound all built or analyzed one SPECIFIC object by hand, while this method proves an object exists without ever producing it — a strange kind of existence proof, but a rigorous one. It trades the impossible task of checking every one of the colorings for the much easier task of computing one average over all of them. The price is that the resulting bound is usually far from sharp, since it only asks whether the AVERAGE bad count is small, not whether some coloring achieves the best possible count; as the examples show, it can even fail to recover the exact truth already found by the explicit coloring in Ramsey Numbers and .
Try , : the expected number of monochromatic triangles is , which is NOT less than . The method gives no conclusion here — it cannot rule out that every coloring of has a monochromatic triangle, even though Ramsey Numbers and already exhibited one that does not. A high expectation does not mean every outcome is bad; it only means this particular argument is too weak to see the good one.
For , the expected count is . Check : — the method succeeds, giving . Check : — it fails at . So is the largest this argument reaches, proving . (Recall from Bounds on Ramsey Numbers that the true value is — this methods bound is correct but very far from sharp.)
For : expected count . At : , succeeding. At : , failing. So the method gives , i.e. — again correct but weak (the best known bounds place the true value far higher).
Treating "expectation " as proof that a monochromatic clique always occurs. The first moment method is a ONE-WAY tool: expectation guarantees a good coloring exists, but expectation (as in the case above) proves nothing either way. It is also easy to forget that this method proves existence WITHOUT construction — unlike the explicit pentagon coloring, it gives no recipe for which coloring of avoids a monochromatic , only a guarantee that at least one does.
For , the expected number of monochromatic -sets in a random coloring of is . Find the largest for which this is less than , and the resulting bound on .
Show the answerHide the answer
. At : , succeeding. At : , failing. So the method gives , i.e. .
Why It Works
Induct on . For there are at most possible edges at all (0 for , for ), so the bound holds trivially. For , let be triangle-free on vertices. If has no edges, and we are done; otherwise pick an edge . Since is triangle-free, and have no common neighbor (a vertex adjacent to both would close a triangle with ), so and gives . and leaves a triangle-free graph on vertices, with at most edges by the inductive hypothesis. Every edge of either lies in this smaller graph, or touches or ; the edges touching or number (the corrects for itself, counted in both degrees). So
Since is an integer, , completing the induction. Equality forces and the smaller graph to be extremal at every step, which pins the graph down to the balanced complete bipartite graph.
Let be a -free graph on vertices with the MAXIMUM possible number of edges (an extremal graph); such a exists since there are finitely many graphs on vertices.
Step 1 (symmetrization). Suppose are non-adjacent in with . Form by deleting all of s edges and joining instead to exactly (making a "twin" of ). This changes the edge count by , so has at least as many edges as . stays -free: are still non-adjacent in (and so cannot both lie in one clique), so any clique of uses at most one of them. A clique avoiding entirely uses only original edges of restricted to , so it was already a clique of . A clique using (not ) uses only edges from to ; replacing by in that clique uses only edges from to , all present in already, so it corresponds to an equal-size clique of . Either way, a in would force one in , contradicting s -freeness. So is -free with at least as many edges as ; since was already extremal, has EXACTLY as many edges, which forces , and (now also extremal) may replace .
Step 2 (complete multipartite structure). Repeating Step 1 across every non-adjacent pair, we may assume itself satisfies: for every non-adjacent pair . Define when or are non-adjacent. This is an equivalence relation: reflexive and symmetric are immediate, and if with then , and , so are non-adjacent too, giving . The equivalence classes are each independent sets by definition, and any two vertices in DIFFERENT classes are adjacent (else they would be -related into the same class). So is complete -partite. Since -free, (choosing one vertex from each of distinct parts, if , would give a , as all cross-pairs are edges).
Step 3 (balance the parts). Among complete multipartite graphs on vertices with at most parts, the edge count is , maximized by minimizing . Using exactly parts beats fewer (splitting one part into two never-connected pieces only removes the term for edges that did not exist, while every other part still gains a partner, so it strictly helps once , unless some , treated as using fewer parts than allowed). If two parts have sizes differing by , say , moving one vertex from part to part changes by , strictly decreasing the sum and so strictly increasing the edge count — contradicting extremality unless the parts are already balanced, differing by at most . So the extremal complete multipartite graph has exactly parts, sizes or : this is exactly , and .
Two halves. : the pentagon/pentagram coloring of (Ramsey Numbers and ) has no monochromatic triangle, so some -coloring of avoids one, meaning is not large enough to force one. : let be any vertex of any -colored . It has edges to the other vertices; since , by pigeonhole at least of them share a color, say red, going to vertices . If some edge among is red, it closes a red triangle with . If none is, all three of are blue, and is itself a blue triangle. Either way has a monochromatic triangle, and and the coloring were arbitrary, so EVERY -coloring of has one. Combining the two halves: , so .
Let and take any -coloring of . Fix a vertex ; it has other vertices, split by color into its red neighbors and blue neighbors , . If and then , a contradiction; so or . . By definition of the Ramsey number, the coloring restricted to contains a red or a blue . A blue inside is already a blue in the whole graph. A red inside , together with (which is joined RED to every vertex of ), forms a red . Either way the coloring of has a red or a blue . The case is symmetric, swapping colors. So every -coloring of has the desired clique, giving . the binomial corollary, induct on . The base cases match the claimed formula: and . For the inductive step, assuming and , the recursion just proved gives
by Pascals identity, completing the induction.
First the general principle used throughout the Probabilistic Method: if is a random variable taking non-negative integer values and , then — otherwise always, forcing . Applied here, counts monochromatic -sets in a uniformly random -coloring of ; linearity of expectation over the possible -sets, each monochromatic with probability (independently of the others coloring, though linearity needs no independence between terms), gives exactly as stated in the Probabilistic Method section. fix and let . Since ,
It remains to show for every , by induction. Base case : and . Inductive step: if for some , then , and since , this exceeds , completing the induction. for every , meaning some -coloring of (for ) has zero monochromatic -sets, so , i.e. . This is Erdőss classical theorem, the paper usually credited with founding the probabilistic method.