Find all rational numbers $r$ for which $\log_{2}(r)$ is rational as well.
I found this problem in one of the Serbian competition books marked with a star. I looked at the solution, but it's confusing. Could someone help me by providing a detailed solution and how to approach problems similar to this one?
This is the same thing as asking: for which rational numbers $r$ is it true that $2^r$ is also rational? The answer is: when $r\in\mathbb Z$. In fact, if $r\in\mathbb{Q}\setminus\mathbb Z$, $r=\frac ab$ with $b>1$ and $\gcd(a,b)=1$. The number $2^{\frac ab}$ is a root of the polynomial $x^b-2^a$. By the rational root theorem, all rational roots of this polynomial are integer numbers, but $2^{\frac ab}$ is not an integer.