Solution:
Concept: The sum of the first n terms of a G.P. with first term a and common ratio r (r=1) is Sn=r−1a(rn−1). The same sum can also be written as 1−ra(1−rn), which is easier to use when r is less than 1.
Step 1 — Part (i): 1+3+9+27+… to 12 terms.
Here a=1, and the common ratio is 3÷1, which is 3. Since r>1, we use Sn=r−1a(rn−1), with n=12; 312=531441:
S12=3−11(312−1)=2531441−1=2531440=265720
Step 2 — Part (ii): 0.3+0.03+0.003+… to 8 terms.
Here a=0.3, and the common ratio is 0.03÷0.3, which is 0.1. Since r<1, we use Sn=1−ra(1−rn), with n=8; 0.18=0.00000001, so the bracket is 0.99999999:
S8=1−0.10.3(1−0.18)=0.90.3×0.99999999=30.99999999=0.33333333
This agrees with adding directly: each term puts a 3 in the next decimal place, giving eight 3's.
Step 3 — Part (iii): 1−21+41−… to 9 terms.
Here a=1 and r=−21 (the signs alternate). Since r lies between −1 and 1, we use Sn=1−ra(1−rn), with n=9. An odd power of a negative number is negative, so (−21)9=−5121, and subtracting it adds 5121:
S9=1−(−21)1−(−21)9=1+211+5121=512513÷23=512513×32=256171
In the last line we cancelled 3 (513=3×171) and 2 (512=2×256).
Watch out: With a negative ratio keep the brackets: (−21)9 is negative, and 1−(−21)=23, not 21.
Therefore, the sums are (i) 265720, (ii) 0.33333333 and (iii) 256171.