For complex numbers a,ra,r, the geometric series with initial term aa and ratio rr is the

n=0arn.\sum_{n=0}^{\infty} ar^n.

Its through index NN is

n=0Narn={a(1rN+1)/(1r),r1,a(N+1),r=1.\sum_{n=0}^{N} ar^n= \begin{cases} a(1-r^{N+1})/(1-r),&r\ne1,\\ a(N+1),&r=1. \end{cases}

For r1r\ne1, subtracting rr times the finite sum from the sum proves this identity by cancellation.

Convergence and remainder

For 0<r<10<|r|<1, the nonnegative decreasing sequence rn|r|^n has a limit LL by the . Passing to the limit in rn+1=rrn|r|^{n+1}=|r|\,|r|^n gives L=rLL=|r|L, hence L=0L=0. The case r=0r=0 is immediate. Thus if r<1|r|<1, then rN+10r^{N+1}\to0, and the series to a/(1r)a/(1-r). Its tail satisfies

n=N+1arn=arN+11r,n=N+1arnarN+11r.\sum_{n=N+1}^{\infty}ar^n=\frac{ar^{N+1}}{1-r},\qquad \left|\sum_{n=N+1}^{\infty}ar^n\right| \le\frac{|a|\,|r|^{N+1}}{1-|r|}.

If a0a\ne0 and r1|r|\ge1, the terms do not tend to zero, so the series diverges. When a=0a=0, every term is zero for every rr, taking the zeroth power as 11.

Example

The series 1+12+14+1+\tfrac12+\tfrac14+\cdots has sum 22. More generally, if unCrn|u_n|\le Cr^n for C0C\ge0 and 0r<10\le r<1, the gives nunC/(1r)\sum_n|u_n|\le C/(1-r).