Let $f$ be a continuous function on closed interval $[a,b]$, $m$ be a nonnegative integer. If $\forall n=0,1,\cdots ,m$, $$\int_{a}^{b}x^nf(x)dx=0$$ Prove that $f$ has at least $m+1$ different zeros on $[a,b]$.
My attempt: I've tried induction and solved the base case $m=0$. For the induction step I tried to use contradiction method and construct a polynomial $g(x)$ based on zeros of $f$, and prove that $g(x)f(x)$ always positive, but not clear about how to proceed on. Thanks for any help.