A little bit of context. I was given a problem which went like if $X_n$ is normally distributed with mean $a_n$ and is converging in distribution to $X$, then $a_n\to a$ for some $a\in\mathbb R$ and $X$ is normally distributed. The question is quite doable using characteristic functions, I guessed, until I ended up with the problem if both limits $$\lim_{n\to\infty}\cos(a_nt) \ \ \ \text{ and } \lim_{n\to\infty} \sin(a_nt)$$ for all $t\in\mathbb R$ then the limit $$\lim_{n\to\infty} a_n$$ exists as well and is finite. If I assume $a_n$ is bounded, then I don't have any problem proving the statement. But if $a_n$ is unbounded, then there is, without loss of generality, a subsequence $a_{n_k}\to\infty$. Therefore my question which is a bit general:
Question. Let $f:\mathbb R\to\mathbb R$ be a continuous function and $a_n$ be a sequence diverging to $\infty$, if $$\lim_{n\to\infty} f(a_nt)$$ exists for all $t\in\mathbb R$, do we have $\lim_{x\to\infty} f(x)$ exists as well?
The result is well-known if $a_n=n$. If we have proven this statement then my original claim is easy to prove. I attempted to mimic the proof in this post, but I stopped where they say $(f(nmx))_{n\in\mathbb N}$ is a subsequence of $(f(nx))_{n\in\mathbb N}$ since in my particular case I don't have $(f(a_na_mx))_{n\in\mathbb N}$ is a subsequence of $(f(a_nx))_{n\in\mathbb N}$. However deep inside, I believe there is a possibility for mimicing.