Test the convergence of summation $$\sum_{n=1}^\infty x_n$$ where $$x_{2n-1}=\frac{n}{n+1}\\ x_{2n}=-\frac{n}{n+1}$$ That is the series $$\frac 1 2-\frac 12+\frac 23-\frac 23 +-\cdots$$
what I did was let Sn be the partial sums of the series.Then
$$S_n=\begin{cases} 0 & \text{when } n \text{ is even} \\ \frac{n}{n+1} &\text{when } n \text{ is odd}\end{cases}$$
thus $$\lim\limits_{ n\to \infty} S_n= \begin{cases} 0 & \text{when } n \text{ is even}\\ 1 & \text{when } n \text{ is odd}\end{cases}$$
Thus $\lim\limits_{ n\to \infty} S_n$ doesn't converge to a particular value. Hence $\lim\limits_{ n\to \infty} S_n$ doesn't exist. Therefore the series diverge.