Image: Graph Theory Masterclass, own drawingThe party problem and Ramsey's theorem
Six people are in a room. Any two of them either know each other or do not. Whatever the pattern of acquaintance, there are three people who all know each other, or three people none of whom knows another. That is the party problem, it appeared as a problem in the American Mathematical Monthly in 1958 and as a Putnam competition question in 1953, and it is the smallest case of a theorem that has grown into a subject.
The proof at one person
Pick anyone in the room, say Ann. She has five relations to the other five people, each an acquaintance or not. Five objects in two boxes put at least three in one box, so Ann knows at least three of the others, or is a stranger to at least three. Say she knows Ben, Carl, and Dana (the other case is identical with the words swapped). Now look at Ben, Carl, and Dana among themselves. If any two of them know each other, those two and Ann are three mutual acquaintances. If no two of them do, then Ben, Carl, and Dana are three mutual strangers. There is no third possibility.
The argument uses only the pigeonhole principle, which Unit 1 of the Graph Theory Masterclass introduces as a method of proof, and it uses it once. In the language of graphs: colour the 15 edges of the complete graph on six vertices red for acquaintance and blue for not, and every such colouring contains a red triangle or a blue triangle.
Why five is not enough
The number six cannot be lowered, and one picture shows it. Place five people at the corners of a pentagon and let each know exactly the two beside them. The acquaintance edges form the pentagon, the stranger edges form the five-pointed star inside it, and neither contains a triangle: three corners of a pentagon never include two adjacent pairs and a third, and the star has the same shape. There are 10 triples of five people; each is checked in a moment. So five people can avoid both kinds of trio, and the smallest number that cannot is six. The cover picture of this post is that colouring.
Mathematicians write R(3,3) = 6 and call it a Ramsey number. The general R(s,t) is the smallest number of people that forces s mutual acquaintances or t mutual strangers. R(3,4) = 9, R(4,4) = 18, and R(4,5) = 25 are known; R(5,5) is not, as another post on this blog explains.
The theorem
The proof at one person generalizes. Suppose R(s minus 1, t) and R(s, t minus 1) exist. Take R(s minus 1, t) + R(s, t minus 1) people and pick one; the pigeonhole principle puts at least R(s minus 1, t) of the others among her acquaintances or at least R(s, t minus 1) among her strangers, and in either case the smaller group, by assumption, contains what is needed. So R(s,t) exists and is at most R(s minus 1, t) + R(s, t minus 1). From R(2,t) = t this recursion gives R(3,3) at most 6, R(3,4) at most 10, R(4,4) at most 20, and in general R(s,t) at most the binomial coefficient (s + t minus 2) choose (s minus 1). The recursion and the binomial bound are from a paper of Paul Erdős and George Szekeres of 1935, and Unit 13 proves both, with the parity refinement that brings R(3,4) down from 10 to 9.
The statement that R(s,t) exists for every s and t is Ramsey's theorem. It holds for any number of colours, not only two, and for colouring triples or larger sets instead of pairs, and an infinite version says that any two-colouring of the pairs of the natural numbers has an infinite set all of whose pairs have one colour. Three mutual acquaintances in a room is the case s = t = 3 with two colours.
What Ramsey wanted
Frank Plumpton Ramsey proved the theorem in a paper read to the London Mathematical Society in 1928 and printed in its Proceedings in 1930 under the title On a problem of formal logic. He was 25 at the reading and died in January 1930, before the printing, at 26, after an operation. The theorem occupies the first part of the paper and is a tool there: Ramsey wanted a procedure for deciding whether certain logical formulas are satisfiable, and he needed to know that any large enough structure contains a large uniform substructure. The combinatorial statement interested him only as a lemma. He also wrote, in a short life, a founding paper of the theory of taxation, one on optimal saving, and one on probability and belief, and he translated Wittgenstein's Tractatus into English as an undergraduate. The MacTutor biography covers all of it.
The theorem was rediscovered in 1935 by Erdős and Szekeres, who were looking at a problem of Esther Klein about points in the plane and needed exactly Ramsey's lemma. Their paper gave the recursion above, with much better bounds than Ramsey's, and it is the paper from which the subject called Ramsey theory grew. The phrase that is used to summarize that subject, that complete disorder is impossible, is due to Theodore Motzkin.
Three colours and the Olympiad
With three kinds of relation the number is 17: among any 17 people whose pairwise relations are each of one of three kinds, three people share the same kind of relation pairwise, and 16 people can avoid it. The upper bound is the proof at one person run twice, and the colouring of 16 people that avoids a monochromatic triangle comes from the field with 16 elements. The result is due to Greenwood and Gleason in 1955, and it was Problem 4 of the International Mathematical Olympiad in 1964, dressed as 17 people corresponding about three topics. The masterclass's olympiad page lists it among the problems a reader of Unit 13 can attempt.
A reader who wants to check R(3,3) = 6 by hand can count: the 15 edges of the complete graph on six vertices can be coloured in 2 to the power 15 = 32,768 ways. Nobody checks them all. The pigeonhole argument handles every one of them at once, which is the point of a proof.


