Let $a_0,\ldots, a_n$ be real numbers such that $\displaystyle \sum_{k=0}^n \frac{a_k}{k+1} = 0$. Prove that there exists a real number $x$ for which $\displaystyle \sum_{k=0}^n a_kx^k = 0$.
Attempt
We have $\dfrac{a_0}{1}+\dfrac{a_1}{2}+\cdots+\dfrac{a_n}{n+1} = 0$, so to relate that to $a_0 + a_1x+\cdots+a_nx^n$ we get a common denominator $(n+1)!$ so that $a_0(n+1)!+a_1\dfrac{(n+1)!}{2}+\cdots+a_n\dfrac{(n+1)!}{n+1}=0$. Then how do I transform this so I have $x,x^2,\ldots,x^k$ multiplying the terms?