MathLabs

Problem 4

Let SS be a set consisting of mm pairs (a,b)(a,b) of positive integers with 1≤a<b≤n1\le a<b\le n. Show that there are at least m(4m−n2)3n\dfrac{m(4m-n^2)}{3n} triples (a,b,c)(a,b,c) such that (a,b),(a,c)(a,b),(a,c), and (b,c)(b,c) belong to SS.
Step 1 of 5: Build the graph degrees
Di={j:(i,j)∈S or (j,i)∈S},di=∣Di∣D_i=\{j:(i,j)\in S\text{ or }(j,i)\in S\},\qquad d_i=|D_i|
Detailed analysis

Regard 1,…,n1,\ldots,n as vertices and the pairs in SS as edges. Let DiD_i be the neighbor set of vertex ii and di=∣Di∣d_i=|D_i|. Since an edge has two endpoints, ∑i=1ndi=2m\sum_{i=1}^n d_i=2m.