Having a graph $G$ which is simple and non-directed with $n$ vertices and max degree of a vertex $k$. Then show if it does not contain $K_3$ as induced subgraph then that proves $|E(G)|\le (n-k)k$
So,having to find an upper limit to the number of edges. My thoughts so far are:
1)If it does not contain an induced subgraph of $K_3$ then it does not have any kind of bigger $K$ and then the degree of $k$ is $2$.
Extra thought(not complete):Having a vertex ν that is $k(=2)$ degree then compute the sum of degrees $V(G)-N(v)$. [$N(ν)$ is neighbourhood of $v$].I need some analysis if correct to this last statement.