Introduction
Among any six people, there are always three who are all friends with one another or three who are all strangers. That claim covers every possible group of six, and there are a great many of them. This walkthrough proves it in five steps, using nothing more than counting, and then shows why five people aren't enough.
The proof is the first case of Ramsey theory, the part of combinatorics that shows large enough structures must contain orderly patterns. It shows how such guarantees are proved: not by checking cases one at a time, but by an argument that covers them all at once.
The Starting Point
Six people are at a party. Every pair of them is either friends or strangers; there's no in-between, and the relationship goes both ways. Nothing else is known about who knows whom.
In graph terms, the six people are vertices, or points, and every pair of points is joined by an edge, or line. Color each edge red for friends and blue for strangers. Six people make 6 \times 5 \div 2 = 15 pairs, so there are 15 edges. Each edge can be either color, so the multiplication principle gives 2^{15} = 32{,}768 different parties.
The claim is that every one of those 32,768 parties contains a red triangle (three mutual friends) or a blue triangle (three mutual strangers). Mathematicians write this as R(3,3) \le 6: the Ramsey number for groups of three, the smallest party size that guarantees three mutual friends or three mutual strangers, is at most 6. The second half of the walkthrough shows that 5 people don't always contain such a triangle, so the Ramsey number is exactly 6. The question was posed in the 1953 Putnam competition for university students (Radziszowski 2026).
Walking Through the Proof
Step 1: Pick one person and look at their five relationships
Choose any one of the six people, and call them A. A has a relationship with each of the other five: five edges leave A, each red or blue.
The argument doesn't depend on which person you choose. Whatever is true for A will be true for anyone, so the proof covers every party without looking at any particular one.
Step 2: Use the pigeonhole principle to find three of the same kind
The pigeonhole principle says that if more items are placed into boxes than there are boxes, at least one box holds two or more. A stronger form says that if more than twice as many items as boxes are placed, some box holds at least three.
Here the items are A's five relationships, and the boxes are the two colors, friend and stranger. Five is more than twice two. So at least three of A's relationships are the same color. Two of each would account for only four; the fifth must make a third in one color.
Suppose, for now, that the three are friends. Call those three people B, C, and D. A is friends with each of them.
Step 3: If any two of those three are friends, you've found three mutual friends
Look at the relationships among B, C, and D. There are three of them: B and C, B and D, and C and D.
Suppose any one of those pairs is friends, say B and C. Then A, B, and C are three mutual friends: A is friends with B and with C (from Step 2), and B is friends with C. That's a red triangle, and the claim holds.
Step 4: If none of them are friends, those three are mutual strangers
The only other possibility is that no pair among B, C, and D is friends. Then all three pairs are strangers: B and C, B and D, and C and D. So B, C, and D are three mutual strangers, a blue triangle, and the claim holds again.
Steps 3 and 4 between them cover every case. Either some pair among B, C, and D is friends, or no pair is. There's no third option. So the party contains three mutual friends or three mutual strangers.
Step 5: Show that five people aren't enough
The proof used six people only once, in Step 2: A needed five relationships so that three were guaranteed to match. With five people, A has only four relationships, and two friends plus two strangers is possible. The proof breaks down. That suggests, but doesn't prove, that five might not be enough.
To prove it, you need a single party of five with no red triangle and no blue triangle. Seat five people around a round table. Make each person friends with the two people beside them and strangers with the two across the table.
Check for three mutual friends. Each person has only two friends, their two neighbors, and those two neighbors aren't seated beside each other, so they're strangers. No three people are all friends. Check for three mutual strangers. Each person's two strangers are the two people across the table, and those two sit next to each other, so they're friends. No three people are all strangers.
In graph terms, the friend edges form a five-sided ring, a pentagon, and the stranger edges form a five-pointed star inside it. Neither contains a triangle. So R(3,3) is greater than 5, and together with Steps 1 to 4, R(3,3) = 6.
Key Considerations
The argument works the same way if A's three matching relationships are strangers instead of friends. Swap the words "friends" and "strangers" everywhere in Steps 3 and 4: either two of the three are strangers, giving three mutual strangers with A, or none are, giving three mutual friends. Mathematicians often say "by symmetry" here, meaning the second case is the first with the colors exchanged.
The common mistake is thinking a single example proves the rule for all parties. Finding a party of six that contains three mutual friends shows nothing about the other 32,767. The proof never looks at a particular party; it works for any colors the 15 edges could have. The direction is reversed in Step 5, where a single example is exactly what's needed. To show that five people aren't always enough, one party without a triangle settles it.
The two halves of the result play different roles. Steps 1 to 4 give an upper bound, a number the true value can't exceed: R(3,3) is at most 6. Step 5 gives a lower bound, a number the true value is at least: R(3,3) is more than 5. When they meet, the value is known.
The same two-sided approach is used for larger cases, and that's where the difficulty lies. For groups of five, the best lower bound comes from a 42-person party with no five mutual friends or strangers, so R(5,5) is at least 43. The best upper bound is 46, proved with linear programming and years of computer checking (Angeltveit and McKay 2026). Closing that gap is an open problem.
Summary
Five steps prove that six people always contain three mutual friends or three mutual strangers, and one seating chart shows that five don't.
Pick any person, A. A has 5 relationships, each friend or stranger, so by the pigeonhole principle at least 3 are the same kind, say friends: B, C, and D.
Case 1: some pair among B, C, D are friends. With A, they form 3 mutual friends.
Case 2: no pair among B, C, D are friends. Then B, C, D are 3 mutual strangers.
If A's three are strangers, swap the words friends and strangers. Either way, the triangle exists, so R(3,3) \le 6.
Five people seated in a circle, friends with neighbors and strangers otherwise, contain neither 3 mutual friends nor 3 mutual strangers. So R(3,3) = 6.
- The pigeonhole step is the only place the number 6 is used.
- The two cases cover every possibility, which is why the argument holds for all 32,768 parties at once.
- The five-person ring is a counterexample: one case is enough to show the guarantee fails.
References
- Angeltveit, Vigleik, and Brendan D. McKay. 2026. "R(5,5) ≤ 46." Journal of Graph Theory 112 (3): 198–208. doi:10.1002/jgt.70029. First posted as arXiv:2409.15709 (2024).
- Radziszowski, Stanisław P. 2026. "Small Ramsey Numbers." Electronic Journal of Combinatorics, Dynamic Survey DS1.18. Revision 18, April 24, 2026.