Six Users Always Contain Three Mutual Friends or Three Strangers
Last updated: November 29, 2026
Quick Overview
Prove that in any group of 6 Facebook users, there are always 3 who are all mutual friends or 3 who are all mutual non-friends, and show that 5 users are not enough. Then find the expected number of such all-friend or all-stranger triples when each pair is friends with probability one half.
Meta
November 29, 20260
0
0 solved
Prove that in any group of 6 Facebook users, there are always 3 who are all mutual friends or 3 who are all mutual non-friends, and show that 5 users are not enough. Then find the expected number of such all-friend or all-stranger triples when each pair is friends with probability one half.
Meta engineers work daily with the social graph, and this classic Ramsey argument tests clean proof by pigeonhole plus a probabilistic follow-up. The interviewer is looking for a tight case argument, a counterexample for 5, and linearity of expectation over triples.
What the Interviewer Expects
- Picks one user and applies pigeonhole to their 5 relationships
- Completes both branches of the case argument
- Gives the pentagon counterexample for 5 users
- Computes the expected count of monochromatic triples as 20/4 = 5
- Explains why the guaranteed minimum (2) is below the mean
Key Topics to Cover
How to Approach This
- Define your hypotheses (H0 and H1) clearly before performing any test.
- Calculate required sample size BEFORE running an experiment, using power analysis.
- Remember the Central Limit Theorem: sample means become approximately normal with large n.
- Watch for Simpson's paradox. Always segment data by key dimensions.
- Distinguish between statistical significance and practical significance.
Possible Follow-up Questions
- How many users guarantee 4 mutual friends or 4 mutual strangers, and what is known?
- Is there a 6-user graph with exactly one such triple?
- How would you find such a triple algorithmically in a large graph?
- What does this say about community detection on small groups?
Sharpen Your Skills on Codemia
Practice similar problems with our interactive workspace, get AI feedback, and track your progress.
Browse Statistics QuestionsSample Answer
Clarify
Model the group as the complete graph with each edge colored friend or stranger. A "monochromatic triangle" is 3 users whose 3 pairwise edges share a color. We need existence for every coloring,...
Approach
Fix one user and use pigeonhole on their 5 edges, then look at the edges among the neighbors in the majority color....