(This is a homework problem. I would very much appreciate it if you may provide some constructive hints/ideas.)
Consider a triangle-free graph $G=(V,E)$. Let $n=|V|$ and $m=|E|$.
Define $N(v)$ as the set of vertices that are adjacent to $v$, including $v$ itself.
Prove: There exists a vertex $v$ such that $V(G)\backslash N(v)$ contains at most $m-\frac{4m^2}{n^2}$ edges.
Note: I have seen a proof that any n-vertex triangle-free graph has at most $n^2/4$ edges, where the inequality $m\ge \frac{4m^2}{n^2}$is obtained. I suspected I may use this result in my problem.
Hint:
Let $f : V \to \mathbb{N}$ be defined as $$f(v) = \sum_{u \in V \text{ is adjacent to } v} \deg(u),$$ and prove that the average value of $f$ over $V$ is at least $\frac{4m^2}{n^2}$.
Solution:
I hope this helps $\ddot\smile$