Summation calculation results:
If the ratio of each term to the preceding term is equal to the same constant from the second term onwards, the sequence is called a proportional sequence.
This constant is called the common ratio of the geometric series, usually denoted by the letter q (q is not equal to 0), and the geometric series a1 is not equal to 0. Note that when q=1, an is a constant series.
General formula:
an = a1*q^(n-1)
The first N terms of the geometric series and the calculation formula:
Sn=a1(1-q^n)/(1-q)