what is the common ratio

Answer:
Sn = a(r^n-1)
21 = 7(r^2-1)
21 = 7r
divide both sides by the 7 to remove the coefficient
Sn = a(r^n-1)
-1/4 = -1/2(r^2-1)
-1/4 = -1/2r
Sn = a(r^n-1)
-512 = -128(r^2-1)
-512 = -128r