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

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

Its through index NN is

∑n=0Narn={a(1−rN+1)/(1−r),r≠1,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 r≠1r\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 ∣r∣n|r|^n has a limit LL by the . Passing to the limit in ∣r∣n+1=∣r∣ ∣r∣n|r|^{n+1}=|r|\,|r|^n gives L=∣r∣LL=|r|L, hence L=0L=0. The case r=0r=0 is immediate. Thus if ∣r∣<1|r|<1, then rN+1→0r^{N+1}\to0, and the series to a/(1−r)a/(1-r). Its tail satisfies

∑n=N+1∞arn=arN+11−r,∣∑n=N+1∞arn∣≤∣a∣ ∣r∣N+11−∣r∣.\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 a≠0a\ne0 and ∣r∣≥1|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 ∣un∣≤Crn|u_n|\le Cr^n for C≥0C\ge0 and 0≤r<10\le r<1, the gives ∑n∣un∣≤C/(1−r)\sum_n|u_n|\le C/(1-r).