Sequence 1, - A, a ^ 2, - A ^ 3 The sum of the first n items of is

Sequence 1, - A, a ^ 2, - A ^ 3 The sum of the first n items of is

Sum of equal ratio sequence
(1-(-a)^n)/(1+a)