Been a while since i've done this, but I believe these are the formulae:
= 
= 
The first formula is correct for the sum of n terms of a geometric sequence.
The second formula should read a/(1-r) rather than 1/(1-r) and is then the sum to infinity of a geometric sequence where 0<r<1.
Edit: Exceptions...If
r>=1, the geometric sequence would be divergent and the infinite sum cannot be found unless the value of
a is a fraction.
NOTE: If
r is a fraction, difficulties can arise if
a is also negative.
For example, if
a=-4 and
r=0.5, then the second term would be the square root of -4 which is not possible in real numbers.
If
a and
r are both integers, then the sequence is divegent and a sum to infinity cannot be found, For example,
a=2 and
r=-2 would give the sequence 2, 1/4, 16, 1/256 ....
If
r = 1, then the sequence is again divergent. For example,
a=2 and
r=1 gives a sequence 2,2,2,2... which has no sum to infinity.
If
r = -1, then we get a sequence such as 2, -2, 2, -2, ........ which can give at least two possible answers for an infinite sum:
Either (2-2) + (2-2) + (2-2) ..... = 0
or 2 - (2-2) - (2-2) - (2-2).... = 2
If
r < -1 and .........
All such exceptions to the geometric series formulas given in the study design could not be examined but some may find them worthy of exploration.