Can I simply pass the limit in
$a_n=-\sqrt{n}\cos\sqrt{n}-\sin\sqrt{n}+\cos 1+\sin 1$
and say that this sequence diverge, because $\sqrt{n}\rightarrow\infty$?
I have found the manual solution of a book which has this exercise.
Take $\alpha=\frac{1}{2}$. Does the sequence $a_n=\int_1^{\infty}\sin x^{\alpha}\,dx$ converge or diverge?
The development of its solution leads to my problem, but the manual gives only a hint. Here it goes.
Note that being $k_n$ the sequence $k_1=31$, $k_2=314$, $k_3=314$, $k_4=3141,\dots$, i.e, $k_n$ is $10^n$ times the approximation of $\pi$ with $n$ digits. Then $$\lim\sqrt{k_n^2}\cos\sqrt{k_n^2}=+\infty \ \ \ (\mbox{Verify!})$$
The same way we can construct another sequence $p_n$ of natural number such that
$$\lim\sqrt{p_n^2}\cos\sqrt{p_n^2}=-\infty \ \ \ (\mbox{Think about it!})$$
Could anyone help me with this?