I’m fairly new to Octave, and I’m still trying to get an understanding of how the syntax works. I’ll be going back to the online manual after I post this, but I’m hoping someone could explain and perhaps show an example of how I’d enter this problem.

I want to graph each value for the the following equation:

\sum_{n = 1}^{\infty} \frac{-1^{1+n}}{n}

Any suggestions?