Suppose a sequence $(a_n)$ is defined as $a_n=1+\frac{(-1)^n}{n}$ for $n \geq 1$. I want to plot these points on a desmos graphing calculator.
However, the calculator does not accept $(-1)^n$, as it does not display any graph after I key in.
Question: Is it possible to express $a_n$ in terms of modulus or other functions so that it can be shown in the calculator?