Sum of first n terms of a GP (If r is not 1, S_n = a(1−r^n)/(1−r); if r=1, sum is na)

jee-mainjee-advanced

If r is not 1, S_n = a(1−r^n)/(1−r); if r=1, sum is na

What each symbol means

SymbolWhat it stands for
S_nSum of first n terms
a,r,nAs in GP

When to use this

Separate case r=1; for r≠1 denominator 1−r must not be zero.