I'm having hard time understanding when I can do the following move: $\lim_{n\to \infty}a_n\cdot b_n = \lim_{n\to \infty}a_n\cdot\lim_{n\to \infty}b_n $
On one hand, my teacher said that I can do that only if prove that both limits of $a_n$ and $b_n$ are exist and finite. On the other hand, When I calculated the limit of the series $a_n=n*cos1/n$ using this site https://www.symbolab.com which is pretty reliable, I saw this steps:
$\lim_{n\to \infty}n\cos(1/n)=\lim_{n\to \infty}n\cdot \lim_{n\to \infty}cos(1/n)="\infty\cdot 1"=\infty$
So how this move is possible if the limit of $a_n=n$ is not finite?