This is my first time to ask a question here, so I'm sorry if I make any mistake.
I'm trying to calculate the limit of $a_n$, which is defined as $a_{n+1}:=\cos\pi a_n$.
The first term is not given in this problem, so I have to prove it by cases. I am badly stuck not knowing how to find the limit of this sequence and where to start the proof. After I substituted some values of $a1$ and calculate it, I found the convergence value might be $-1$ with almost every $a1$ (there were different ones), but I end up stuck here.
Hint: All limit points (if a limit exists) satisfy
$$\cos(\pi x) = x$$
(that is, if we started with a point that is a limit point, the sequence would be constant).
Edit: Numerically, it seems that the sequence converges to $-1$ for almost all values of $a_1$ (the two other fixed points of $\cos(\pi x)$ are some examples of $a_1$ for which it doesn't converge to $-1$).