Let $f:[a,b]\to\mathbb{R}$ be continuous. Suppose for any sequence $(r_n)_{n=0}^{\infty}$ with $\lim_{n\to\infty}r_n=0$, and any $x\in(a,b)$:
$$\lim_{n\to\infty}\frac{f(x-r_n)+f(x+r_n)-2f(x)}{r_n^2}=0$$
Show that $f$ is a linear function.
Clearly the limit of the numerator is zero, I want to conclude that the numerator must be zero for all $n$, then from this to conclude $f$ is linear. I am not sure if this is the right approach. Are there any hints?