limit of $\lim_{n\to \infty} (-1)^{n-1} \sin(\pi \sqrt{n^2 + 0.5n + 1})$ what am I doing wrong? I have to evaluate $$\lim_{n\to \infty} (-1)^{n-1} \sin(\pi \sqrt{n^2 + 0.5n + 1})\,\,where \,\,n\,\epsilon\,N$$
what I would do is just factor out $n^2$ in the sqrare root, then just make the $\frac{0.5}{n}$ and $\frac{1}{n^2}$ term zero.
$$\sin{\left(\pi\sqrt{n^2(1+\frac{0.5}{n}+\frac{1}{n^2})}\,\right)}$$
n goes to infinity so this becomes :-
$$\lim_{n\to\infty} (-1)^{n-1} \sin{\left(n\pi\right)}$$
now $\sin n\pi$ is just $0$ so the answer should be $0$
But the answer is $\sin{\left(-\frac{\pi}{4}\right)}$
Could someone please explain to me what I am doing wrong

The problem is that as $n\to\infty$, $\sqrt{n^2 +0.5n + 1}$ diverges, and $\sqrt{n^2 +0.5n + 1} -n \neq 0$. We have
\begin{align*}
\lim_{n\to\infty} \sqrt{n^2 +0.5n + 1} -n &= \lim_{n\to\infty} \sqrt{(n + 0.25)^2 + 1 - 0.25^2} - n\\
&= \lim_{n\to\infty} \frac{(\sqrt{n^2 +0.5n + 1} - n)(\sqrt{n^2 +0.5n + 1} + n)}{\sqrt{n^2 +0.5n + 1} + n}\\
&= \lim_{n\to\infty} \frac{0.5n + 1}{\sqrt{n^2 +0.5n + 1} + n} = \frac{1}{4}
\end{align*}
