Find a sequence $(a_n)$ such that $(a_{n^2})$ converges but $(a_n)$ diverges
I am running out of examples.
Find a sequence $(a_n)$ such that $(a_{n^2})$ converges but $(a_n)$ diverges
I am running out of examples.
Define the sequence $(a_m)$ as $$a_m=\begin{cases} 0 & \text{if }\;\ m=n^2 \text{ for some } n \in \mathbb{Z}\\ 1 & \text{otherwise}\end{cases}$$ Note that $$\lim_{n\to\infty}a_{n^2}=0$$ but that the sequence $(a_n)$ does not converge.
As @Did pointed out in his comment, if $d(n)$ denotes the number of divisors of $n$, note that $$a_{n}=\frac{(-1)^{d(n)}+1}{2}$$ Is equivalent to the sequence mentioned above.
This sequence also works $a_n=\sin(\pi\sqrt n)$.
With $a_n=0$ only when $n$ is a perfect square, else it takes various values in $[-1,1]$.