If $\tan(x_n \pi) = -x_n$ and $x_0=0$, show that $$\lim_{n\to \infty} (n-x_n)=\frac{1}{2}$$
I am not getting any idea from where to start this. Can you give me some hint?
EDIT: $x_n$ is the nth solution of $y=\tan(x_n\pi)$ and $y=-x_n$ starting from $n=0$ where $x_n=0$
Note that for $n\geq 1$, by the intermediate value theorem, $x_n\in (n-1/2,n)$ and therefore $n-x_n\in (0,1/2)$. It turns out that $n-x_n$ is increasing (prove it!). Then $n-x_n$ is convergent to some real number $L\in (0,1/2]$. Now, if $L<1/2$ then, as $n\to+\infty$, $$+\infty\leftarrow x_n=-\tan(x_n \pi)=\tan(-x_n \pi)=\tan((n-x_n) \pi)\rightarrow \tan(L \pi)\in\mathbb{R}^+$$ which is a contradiction. Hence we may conclude that $L=1/2$.