Let $f(z) = z+\frac{1}{z}$. Show that for any non-zero rational number $x$, the set
$$\{f^n(x)\}_{n\geq 0} \cap \mathbb{Z}$$
is finite. For which $x$ is this set largest and what is its cardinality?
I found that we can assume without loss of generality that $x$ is a positive integer, but I can't seem to get any other ideas on how to approach the problem. Any help would be great!
Suppose $z = a/b > 0$ is a reduced fraction (say $a,b>0$). Then $f(z) = \frac{a^2 + b^2}{ab} > 0$ is also a reduced fraction. From this your claim follows: Observe that $a/b$, being a reduced fraction, is an integer only if $b = 1$. So, iterating, the denominator will eventually be larger than $1$ and $f^n(z)$ will not be an integer. If $z = 1$, then $f(z) = 2$, $f^2(z) = 5/2$, and so on. This is the longest possible number (2) of integers possible.