The inspiration comes from a physical problem. Let's focus on the non-negative half of the number axis -- so we are studying a 1D system. We put 1 unit positve charge on "site" 0, then a unit negative charge on site 1, then a unit positive charge on site 2, ... See figure below.
The question is what's the force on the zeroth charge (the left most one). More specifically,
- what's the total force if we are considering all the charges. (the infinite sum)
- what's the partial force if we are considering forces exerted by the first N charges, here N excludes the 0th charge. (the partial sum)
The physics is just Columb's law. We neglect all physical constants, and since all charges are unit, we have the force expressed as a series
$$ F(N) = \sum_{n=1}^N \frac{(-1)^{n-1}}{n^2} $$
A plot in Mathematica shows $F(100)$ is well converged and is about $0.82242$. But I am sure someone has more elegant analysis. I myself did a lousy approximation by "spreading" a charge into an interval as $$ \frac{\pi}{2} {\cos(\pi x)} $$ $F(N)$ is then approximated by an integration. $$ F(N) \sim -\frac{\pi}{2} \int_{1/2}^{N+1/2} \frac{\cos(\pi x)}{x^2} dx $$ This approximation is very crude and for the infinite sum, it gives $F(\infty) \sim 0.98713$ - not bad, but not good either.