Which of the following is the formula in getting the sum of the first n terms of a geometric sequence?​