Does the following series converge?
$$\sum_{n=1}^{\infty}\frac{\cos\left({\frac{n\pi}{2}}\right)}{\sqrt{n}}$$
The $\cos$ function:
- alternates between (-1) and 1 for every $n$ that is even. (for a general expression see this)
- equal to zero for every $n$ that is odd.
Thus the sequence of the given series is actually alternating between positive and negative:
$$ \sum_{n=1}^{\infty}\frac{\cos\left({\frac{n\pi}{2}}\right)}{\sqrt{n}} = 0 + \frac{-1}{\sqrt{2}} + 0 + \frac{1}{\sqrt{4}} + 0 + \frac{-1}{\sqrt{6}} + \cdots + \frac{i^{n} (1 + (-1)^{n})}{2}\cdot\frac{1}{\sqrt{n}} $$
Would it be valid to use the Leibniz Test in order to say that the given series converge?
Do you know of a different method to prove whether the given series converges/diverges? Without using the complex number $i$.
Dor, you can write the following $$\displaystyle a_n=\cos\left (\frac{\pi n}{2}\right)=\begin{cases} 0, & \mathrm{n \ odd} \\ (-1)^{\large \frac{n}{2}}, & \mathrm{n \ even}\end{cases}$$ Hence, $\displaystyle a_{2k-1}=0 \ , \ a_{2k}=(-1)^k$.
Assume that the series does converge, then we can write $$\displaystyle \sum_{n=1}^{\infty} a_n=\underbrace{\sum_{k=1}^{\infty}a_{2k+1}\cdot{\frac{1}{\sqrt{2k+1}}}}_{=0}+\sum_{k=1}^{\infty}a_{2k}\cdot{\frac{1}{\sqrt{2k}}}=0+\sum_{k=1}^{\infty}(-1)^k\cdot{\frac{1}{\sqrt{2k}}}$$
Look at the sequence $a_k=\frac{1}{\sqrt{2k}}$. It is monotonically decreasing to $0$, thus, by Leibniz criterion we can write that $\displaystyle \sum_{k=1}^{\infty}(-1)^k\cdot{\frac{1}{\sqrt{2k}}}$ converges, therfore $\displaystyle \sum_{n=1}^{\infty}\frac{\cos\left(\frac{\pi n}{2}\right)}{\sqrt{n}}$ converges.