We have this inequality for all $n \in \mathbb{N}$ : $\frac{3n-1}{n+1} \le |x-1| \le 3 + \frac{n}{n^2 + 1}$ . Find all of the possible values for $x$ .
My try : I tried to apply this lemma, but I didn't get any result : "If for all $h \gt 0 $ we have $0\le a \lt h$ then $a = 0$ ."
We need $$\sup_{n\in\mathbb N}\frac{3n-1}{n+1}\leq|x-1|\leq3+\inf_{n\in\mathbb N}\frac{n}{n^2+1}$$ or $$3\leq|x-1|\leq3,$$ which gives $x=4$ or $x=-2$.
Because if $|x-1|>3$ then there is $n\in\mathbb N$, for which $3+\frac{n}{n^2+1}<|x-3|$, which is contradiction with the given.
If $|x-1|<3$ then there is $n\in\mathbb N$, for which $\frac{3n-1}{n+1}>|x-1|,$ which is contradiction again.
Done!