Let the set of size
be
, and construct a bipartite graph
between vertex sets
and
where
is connected to
iff
. Let
be the number of tuples
such that
is connected to
,
is connected to
, and
is connected to
, i.e. the number of walks of length 3 in
. Suppose that there are
edges in
, and note that
.
First, note that the LHS is equal to
. Indeed, given
and
, there are
choices for
and
choices for
. Summing over all pairs
gives the result.
Now, summing over all pairs
instead, we have that
. Now, note that by Holder's inequality we have that
![\[\left(\sum_{v_i-w_j}\frac1{\deg v_i}\right)\left(\sum_{v_i-w_j}\frac1{\deg w_j}\right)\left(\sum_{v_i-w_j}\deg v_i\cdot\deg w_j\right)\ge\left(\sum_{v_i-w_j}1\right)^3\]](https://latex.artofproblemsolving.com/c/f/d/cfdf31ee860b3015564b9fed26dff650affa7365.png)
![\[\left(\sum_{v_i}1\right)\left(\sum_{w_j}1\right)N\ge e^3\]](https://latex.artofproblemsolving.com/3/b/9/3b9e58955bca490c8fae7eba2e7e729d44a3d819.png)
as desired.