It follows that one of the roots of $P$ is $x_1=-\dfrac{n}{m}$ and the other two satisfy the condition $x_2x_3=\dfrac{n^2}{m^2}$. We obtained $x_1^2=x_2x_3$, thus the roots are terms of a geometric sequence.
If $m=0$ then $n=0$ but in this case, the polynomial $x^3+p$ cannot have three real roots.