My book says
If a rational number $m/n$, for $(m,n)=1$, is a root of the polynomial $a_rx^r+a_{r-1}x^{r-1}+\dots+a_0$, where $a_0,a_1,\dots,a_r\in\Bbb{Z}$, then $n|a_r$ and $m|a_0$.
I was under the impression that such a polynomial with integer coefficients has only integral rational roots.
Is this statement just saying that $m|a_0$ and $1|a_r$?
Thanks in advance!