The formula of finding the sum of the first n terms in the equal ratio sequence

The formula of finding the sum of the first n terms in the equal ratio sequence

The first term is a and the common ratio is Q
The sum is a (1-Q ^ n) / (1-Q)
You can get it by setting the sum to a and calculating QA