The Integral Test

If an = f(n),where f(x) is positive, continuous and nonincreasing on an interval [N,¥) where N > 0, then
¥
å
n = 1 
an  and   ó
õ
¥

N 
f(x)dx
either both converge or both diverge to infinity.