Prove that a graph with $n$ ($n \geq 3$) vertices, and $m$ ($m \gt \frac{n^2}{4}$) edges always contains a triangle.
Also, the graph is simple, but not necessarily connected.
I thought of induction on $n$, in each step removing a vertex with the minimum degree, but couldn't get anywhere useful.
Also since for $n \geq 4$, $\frac{n^2}{4}$ is greater than $n-1$, thus the graph contains a cycle, So I tried to remove a cycle in the induction step and in the induction we assume the condition for $n \in \{1, 2, ..., k\}$ holds, and try to prove for $n = k+1$, when we remove a cycle of length $x$ from the graph; If we prove: $$ m - x \gt \frac{(n - x)^2}{4}$$ then for $n = k+1$ we've proven that the graph contains a triangle, But I unfortunately couldn't prove the inequality.
Appreciate any helps
I also visited Every graph with $n\ge3$ vertices and more than $\frac{n^2}{4}$ edges contains a triangle, but it didn't help