Let G=(V,E) be a simple graph. Set n=∣V∣. Prove that we can find some edges e1,e2,…,ek of G and some triangles t1,t2,…,tℓ of G such that k+ℓ≤n2/4 and such that each edge e∈E∖{e1,e2,…,ek} is a subset of (at least) one of the triangles t1,t2,…,tℓ.
[Remark: In other words, this exercise is claiming that all edges of G can be covered by at most n2/4 edge-or-triangles. Here, an edge-or-triangle means either an edge or a triangle of G, and the word ``covers'' means that each edge of G is a subset of the chosen edge-or-triangles.]
[Hint: Imitate the above proof of Mantel's theorem.]