Given a graph $G$ with $m$ edges, what is the maximum chromatic number $\chi(G)$ that the graph can have?
My guess is that $\chi(G) \leq r(m)$ where $r(m) := \max\{k\in \mathbb{N}: \frac{k(k-1)}{2} \leq m\}$, but I can't prove this.
(This is motivated by the fact that the largest complete graph you can form with $m$ edges has $r(m)$ points.)