Let $f\in \mathbb{Q}[x]$ be a polynomial of degree $n>0$. Let $p_1, \dots , p_{n+1}$ be distinct prime numbers. Show that there exists a non-zero polynomial $g\in \mathbb{Q}[x]$ such that $fg=\sum_{i=1}^{n+1} c_ix^{p_i}$ with $c_i\in \mathbb{Q}$.
I tried to solve the problem using the division algorithm over $\mathbb{Q}[x]$ but could not get any satisfactory result. Also I don't understand how the distinct prime powers be particularly accounted in the expression of $fg$. Any help on this one will be appreciated.