I want to prove the sequence $$a_n = \frac{(-1)^n\cdot n}{n+1}$$ has no limit as $\,n\to+\infty$.
I tried to work with inequalities to get that $\,|a_n-L|\geqslant\varepsilon\,$ and the way I tried to solve it was to divide into cases:
$\,L\geqslant0\,$ or $\,L<0\,.$
When I did the case with $\,L\geqslant0\,,\,$ I chose an even $\,n\,$ and I found there is $\,\varepsilon=L\,$ for which this is true, but I don't know if I am allowed to represent $\,\varepsilon\,$ with $\,L\,$ or should I represent it as a number.
And I would also be glad if someone could show me the way to solve this because my prof hasn't shown us this although he gave us to do that.
This is how to do it using the definition of limits.
We say that $a_n$ converges (to $L$) iff $$\exists L \in \mathbb{R} \; \forall \varepsilon > 0 \; \exists n_0\in\mathbb{N} \; \forall n\geq n_0 : |a_n - L| < \varepsilon.$$ Hence, we say that $a_n$ does not converge iff $$\forall L\in\mathbb{R}\; \exists \varepsilon > 0 \; \forall n_0\in\mathbb{N} \; \exists n\geq n_0 : |a_n - L| \geq \varepsilon,$$ or in other words, you want to find an $\varepsilon > 0$ such that $|a_n - L| \geq \varepsilon$ is satisfied for infinitely many $n$.
Let $L\in\mathbb{R}$ be given and take $\varepsilon = |L|$ (or, if $L=0$, set $\varepsilon = 1/2$). Let moreover $n_0\in\mathbb{N}$ be given.
Case 1: $L > 0$. Define $n = 2n_0 + 1 > n_0$. Then $(-1)^n = -1$ and $$|a_n - L| = L -\frac{-(2n_0 + 1)}{2n_0 + 2} = L + \frac{2n_0 + 1}{2n_0 + 2} > L = \varepsilon.$$ Case 2: $L < 0$. Define $n = 2n_0 > n_0$. Then $(-1)^n = 1$ and $$|a_n - L| = \frac{2n_0}{2n_0 + 1} - L > -L = \varepsilon.$$ Edit: Case 3: $L=0$. Define $n=n_0+1$. Then $$|a_n - L| = \frac{n}{n+1} \geq \frac{1}{2} = \varepsilon,$$ where $\frac{n}{n+1} \geq \frac{1}{2}$ for $n\geq 1$ is an easily verified inequality.
Since this covers both cases, we are done.