In Hardy's Pure Mathematics, Hardy discusses the limit $$\lim_{n\to\infty}\sin (2^{n}\theta\pi)$$ and says that if this limit exists it must be zero and then $\theta$ must be a rational number whose denominator is a power of $2$. Then he asks the reader to consider the limit $$\lim_{n\to\infty}\sin (a^{n}\theta\pi)$$ where $a$ is an integer greater than $2$.
It is also mentioned that when $a > 2$ then the limit can be non-zero and as an example Hardy states that if $a = 9$ and $\theta = 1/2$ then the above limit is $1$. In this case I reasoned (based on Hardy's technique for the case $a = 2$) that $\lim_{n\to\infty}\sin((9^{n}\pi)/2)$ will be $1$ only when we can write $$\frac{9^{n}\pi}{2} = 2b_{n}\pi + \frac{\pi}{2} + c_{n}$$ for all sufficiently large values of $n$, where $\{b_{n}\}$ is a sequence which takes only integer values and $\{c_{n}\}$ is a sequence which tends to zero as $n \to \infty$. Thus we get
$\displaystyle \begin{aligned}9^{n}\pi &= 4b_{n}\pi + \pi + 2c_{n}\\ \Rightarrow (9^{n} - 1)\pi &= 4b_{n}\pi + 2c_{n}\end{aligned}$
Since $9^{n} - 1$ is divisible by $9 - 1 = 8$ and hence also by $4$, it follows that we can take $b_{n} = (9^{n} - 1)/4$ and $c_{n} = 0$. The same logic could be applied when $a$ is any integer of the form $a = 4m + 1$ and $\theta = 1/2$.
But, and this is my question, how does one handle the case for general integer $a > 2$ and any real $\theta$ rational or irrational?
EDIT: I should also provide more details so that readers get the full context. For the specific case when $a = 2$ Hardy reasons that if the limit exists and, say is equal to $l$, then we must have $|l| \leq 1$ so that we have a constant $\alpha = \sin^{-1} l$ lying in interval $[-\pi/2, \pi/2]$. Since the solution of $\sin x = \sin \alpha$ is given by $x = m\pi + (-1)^{m}\alpha$ for all integers $m$, we can see that the existence of limit $l$ entails that $$2^{n}\theta\pi = b_{n}\pi + (-1)^{b_{n}}\alpha + c_{n}$$ where $b_{n}$ takes integer values and $c_{n} \to 0$ as $n\to\infty$. We can now see that $$2^{n}\theta = b_{n} + (-1)^{b_{n}}\beta + d_{n}$$ where $\beta = \alpha/\pi$ so that $\beta \in [-1/2, 1/2]$ and $d_{n} = c_{n}/\pi \to 0$ as $n \to\infty$. Hardy somehow assumes that $b_{n}$ will always be even and then proceeds as follows:
$\displaystyle 2^{n}\theta = b_{n} + \beta + d_{n}$ so that multiplication by $2$ gives
$\displaystyle 2^{n + 1}\theta = 2b_{n} + 2\beta + 2d_{n}$ and also we have
$\displaystyle 2^{n + 1}\theta = b_{n + 1} + \beta + d_{n + 1}$ and therefore we get
$\displaystyle (b_{n + 1} - 2b_{n}) - \beta + (d_{n + 1} - 2d_{n}) = 0$
After this Hardy uses simple arguments to show that $\beta = 0$ and $d_{n}$ should be identically zero from a certain value of $n = n_{0}$ so that $2^{n_{0}}\theta = b_{n_{0}}$ and thus $\theta$ is rational with denominator a power of $2$.
In the above I don't understand why he assumes $b_{n}$ as even. Also I think the argument can be continued without assuming parity of $b_{n}$ but I am not sure. I wonder how this can be carried forward for higher values of $a$.