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 3 of 5: Sum over edges and account for triple multiplicity
T≥13∑(i,j)∈S(di+dj−n)=13(∑i=1ndi2−mn)T\ge\frac13\sum_{(i,j)\in S}(d_i+d_j-n)=\frac13\left(\sum_{i=1}^n d_i^2-mn\right)
Detailed analysis

Summing the common-neighbor bound over all mm edges gives the number of incidences of an edge with a completing vertex. Every good triple has three edges, so it is counted three times. Also, each did_i occurs once for every incident edge, hence the sum of the degree terms is ∑idi2\sum_i d_i^2 and the nn term contributes mnmn.