Let $f:\mathbb{Z} \rightarrow \mathbb{Z}$ be given by $f(x) = \frac{n}{2}$ if $n$ is even and $f(n) = n^2 -1$ if $n$ is odd. Consider the sequence $(a_n)$ given by $a_n = f(a_{n-1})$ with $a_0$ a positive integer. Will the sequence eventually reach $1$? ( i.e does there exist an $N$, such that for any $m>N$, $a_m = 1$ no matter what the value of $a_0$ is ?)
At first glance, it does seem to be the case, but taking $a_0 = 13$, it is not clear whether the sequence reaches $1$. Coding it in python, after $1000$ iterations the sequence got exponentially large, to the point that squaring woulnd not be accurate enough in python. I tried looking for patterns in $mod(8)$ but couldn't really make much progress with this approach.