# Geometric progression Calculator

Calculate geometric sequence of a series of numbers for given values.

The geometric progression is also known as a geometric series. It is a sequence of numbers such that the quotient of any two successive members of the sequence is a constant called the common ratio (common difference) of the sequence.

The geometric progression of n terms, we mean a finite sequence in the form as follows :

a, ar, ar^{2}, ar^{3}, . . . . ar^{n-1}

Where

(a) is the first term of GP and real number

(r) is common difference.

### The sum of n terms of GP is :

S_{n} = a+ ar + ar^{2} + ar^{3} + ar^{4} +…+ar^{n-1}

**The sum of n terms of GP formula:**

S_{n} = na if r=1

S_{n} = a[(r^{n}-1)/(r-1)] if r ≠ 1

Where

a is the first term

r is the common ratio

n is the number of terms