This equations is used to find the sum of the terms in a geometric sequence. A geometric sequence is where each term after the first is obtained by multiplying the preceding term by the same number. In geometric sequence, dividing any term after the first by the term that precedes it always results in the same nonzero number. This number is called the common ratio and is denoted as r.
Input Variables:
a_1 - first term of the sequence
r- common ratio
n- number of the terms in the sequence
Output for Formula:
Returns the sum of the terms in the sequence
