In a party attended by $2015$ guests among any $5$ guests at most $6$ handshakes had been exchanged. Determine the maximal possible number of handshakes.
Turkey EGMO TST 2015 P6
Some findings:
- Say we have $m$ handshakes. If we connect every 5 tuple with edges in it we get $${2015 \choose 5}\cdot 6\geq m\cdot {2013 \choose 3} \implies m\leq 1209\cdot 1007$$
- If we observe $H:=\bar{G}$ instead of $G$ then among any five we have at least 4 edges. Say $H$ has conected components $C_1,...,C_k$, then $k\leq 2$ since else we don't necessary get $4$ edges.
- If $k=2$ then $C_1$ and $C_2$ must be clique, since however we take 2 vertices $u,v$ in one component (and 3 vertices in other component), they must be connected in order to get 4 edges in total of five vertices. So $G$ is complete bipartite graph and we have $m\leq 1007\cdot 1008$.
- If $k=1$, then $H$ is connected and now...?
We work in $H$ the complement of $G$ which has $m'$ edges. So among any 5 we have at least 4 edges.
Here is an idea, we can ask how many edges are there in a subset with $7$ vertices? The answer is $9$ and then we proceede, what about in a set of $9$ vertices? The answer is $16$, and so on. So we can prove a following lemma.
Lemma: In any set with $2n+1$ vertices we have at least $n^2$ edges in $H$.
Proof: With induction on $n$. In a set $S$ with $2n+3$ vertices we have ${2n+3\choose 2n+1}$ subsets with $2n+1$ vertices and any of it has at least $n^2$ edges. Let $S$ have $k$ edges. Then we have $$ {2n+3\choose 2n+1} \cdot n^2\leq k\cdot {2n+1\choose 2n-1} \implies k\geq (n+1)^2$$
So when $n=1007$ we get $k=m'\geq 1007^2$ so $$m\leq {2015\choose 2} -1007^2 = 1007\cdot 1008$$ which is achiavable with $G= K_{1007,1008}$.