$f: \mathbb{R}^n \rightarrow \mathbb{R},f$ is continious. $$f \text{ is convex} \Leftrightarrow f\left(\dfrac{x+y}{2}\right) \le \dfrac{f(x) + f(y)}{2}\ \ \ \forall x, y \in \mathbb{R}^n$$
One side comes straight from Jensen's inequality, while the other one is not obvious at all.
Maybe more divisions by 2 will help as I have heard.