The Alternating Series Error Bound

A partial sum is only an estimate of the sum of a series. For most series it's hard to say how good the estimate is. For an alternating series that passes the alternating series test, the answer comes straight from the terms.

The error bound

Take ∑(−1)n+1bn\sum (-1)^{n+1} b_n with bn>0b_n > 0 decreasing to 0. Its partial sums step back and forth past the sum SS, each step shorter than the one before. So SS always lies between two consecutive partial sums SnS_n and Sn+1S_{n+1}, which differ by bn+1b_{n+1}.
If the first omitted term is positive, adding it raises the estimate, so SnS_n is too small. If it's negative, SnS_n is too large. When the terms decrease only from some NN on, the bound holds for SnS_n with n≥Nn \ge N.

How many terms

Run the bound backward to find how many terms make the error small enough. Find the first nn with bn+1b_{n+1} below the target.