The nth Term Test and the Integral Test

Most series have no formula for their partial sums, so their sums can't be found the way a geometric series's can. A convergence test answers a smaller question: whether the series converges at all.

The nth term test

If ∑an\sum a_n converges to SS, then Sn→SS_n \to S and Sn−1→SS_{n-1} \to S. Each term is the difference of two partial sums, an=Sn−Sn−1a_n = S_n - S_{n-1}, so an→S−S=0a_n \to S - S = 0. Turned around, that's a test for divergence.

The integral test

When the terms come from a decreasing function, a series can be compared with an improper integral. Suppose an=f(n)a_n = f(n) for a decreasing function ff. On [n−1,n][n - 1, n] the curve stays above f(n)f(n), so a rectangle of height ana_n and width 1 fits under it.
Rectangles of heights f(3), f(4), f(5), … under the curve from Example 2, starting at x = 2. The vertical scale is stretched. Their total area is at most the area under the curve from x = 2 on.
If the integral converges, the partial sums are increasing and stay below a fixed number, so they converge. Rectangles of height ana_n on [n,n+1][n, n + 1] reach above the curve instead, so aN+⋯+aM≥∫NM+1f(x) dxa_N + \cdots + a_M \ge \int_N^{M+1} f(x)\,dx. If the integral diverges, the partial sums grow without bound.
Dropping or changing finitely many terms never changes whether a series converges, so the conditions only need to hold from some NN on. When the integral converges, its value is not the sum of the series.