If the rational number $r$ is also an algebraic integer, show that $r$ is an integer
So $r$ is a rational number that is a root of a polynomial $p(x)$ over the integers, right? I need to show that $r$ is an integer.
I know that for $p(x) = x^n + a_{n-1}x^{n-1} + \cdots + a_0$
we have that $a_0$ is the product of all roots. I don't think it helps because we could have two roots $a/b$ and $b/a$ and their product is an integer, so the fact that the polynomial is over the integers won't do anything in this case.
Somebody have an idea?