It is a well known fact that for $|x|<1$, we have $$\sum_{n=0}^{+\infty} (-1)^n x^n = \frac{1}{1+x}$$ How can we prove that $$\exists \lim_{x\rightarrow1^{-}}\sum_{n=0}^{+\infty} (-1)^n x^{n^2} = 1/2$$ and how would the results change if we replace $n^2$ by $n^k$ for some $k$?
It is not very difficult to observe that this is an alternating series and that it converges for $|x|<1$. The problem lies in the boundary, where the sum is divergent and so we can't apply Abel's theorem. Maybe there are some results in Tauberian theory but I don't know much about it.
You could use this with $\lambda_n:=n^2,\,s:=-\ln x$ so the limit is$$\lim_{R\to\infty}\frac{1}{(2N+1)^2}\sum_{n=0}^N(4n+1)=\frac12.$$In fact, this problem is the $k=2$ special case of the first comment under that answer.