A function $f$ is defined for all real numbers and satisfies $f(2+x)=f(2-x)$ and $f(7+x)=f(7-x)$ for all $x$. If $x=0$ is a root for $f(x)=0$, what is the least number of roots $f(x)=0$ must have in the interval $-1000\leq x \leq 1000$?
From $f(0)=0$, we get $f(10k)=0$ and $f(4+10k)=0$ for all integers $k$.
In $[-1000,1000]$ there are $201$ multiples of $10$ and $200$ numbers $\equiv4\pmod{10}$. (A function with exactly these roots exists.) The answer is $\boxed{401}$.
A function $f$ is defined for all real numbers and satisfies $f(3+x)=f(3-x)$ and $f(11+x)=f(11-x)$ for all $x$. If $x=0$ is a root for $f(x)=0$, what is the least number of roots $f(x)=0$ must have in the interval $-800\leq x \leq 800$?