Let $a_{2n-1}=-1/\sqrt{n}$, $a_{2n}=1/\sqrt{n}+1/n$ for $n=1,2,\dots$ Show that $\prod (1+a_n)$ converges but that $\sum a_n$ diverges.
What I have found so far is that $\prod_{k=2}^{2n} a_n$=$3(1-\frac{1}{2\sqrt{2}})\cdots (1-\frac{1}{n\sqrt{n}})$
and
$\prod_{k=2}^{2n+1} a_n$=$3(1-\frac{1}{2\sqrt{2}})\cdots (1-\frac{1}{n\sqrt{n}})(1-\frac{1}{\sqrt{n+1}})$
I'm considering using the theorem that if each $a_n \ge 0$, then the product $\prod(1-a_n)$ converges if and only if, the series $\sum a_n$ converges. So since $\sum \frac{1}{n\sqrt{n}}$ converges, I think the above product converges as well, but I can't use this theorem right now because of the odd partial products. How can I resolve this problem? Also, I can clearly see that $\sum a_n$ diverges, but how can I prove this rigorously?
I would greatly appreciate some help.
It seems the following.
Assume that $\sum a_n$ converges to a number $A$. Then $\sum_{n=1}^{2m} a_n$ converges to $A$ too, but $\sum_{n=1}^{2m} a_n$ tends to $+\infty$.
So we have that the sequence $b_n=\prod_{k=2}^{2n} (1+a_n)$ converges to a number $A$. Then a sequence $\prod_{k=2}^{2n+1} (1+a_n)=b_n (1-\frac{1}{\sqrt{n+1}})$ converges to $A$ too, so the product $\prod_{k=2}^\infty (1+a_n)$ converges to $A$ too.