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 2 of 5: Lower-bound common neighbors of each edge
∣Di∩Dj∣≥di+dj−n((i,j)∈S)|D_i\cap D_j|\ge d_i+d_j-n\qquad((i,j)\in S)
Detailed analysis

For an edge (i,j)(i,j), a vertex in Di∩DjD_i\cap D_j forms a good triple with i,ji,j. Both neighbor sets lie among the nn vertices, so inclusion–exclusion gives ∣Di∩Dj∣=di+dj−∣Di∪Dj∣≥di+dj−n|D_i\cap D_j|=d_i+d_j-|D_i\cup D_j|\ge d_i+d_j-n.