Suppose $G$ has order $7$ and $\chi(G) = 3$. Prove that the size of $G$ is at most $16$.
I am really not so sure how to do this problem. This is from a book which teaches some extremal graph theory, combinatorics, and basic ramsey theory. I'm familiar with theorems like Turan's Theorem as well as many other results. But none of them seem to work for this problem.
I don't know if I'm just missing something that seems easy or not.
I tried to utilize Pigeonhole somehow which says that one of the three colors must appear $3$ times. But I got nowhere.
Say $a,b,c$ vertices are of each color. So $a+b+c = 7$ and we have at most $$e\leq ab+ac+bc$$ edges. We have $$49=(a+b+c)^2\geq 3(ab+bc+ca)\geq 3e\implies e\leq 16$$