Solution:
Concept:
- Sum of a G.P.: the first n terms of a G.P. with first term a and common ratio r=1 add up to Sn=r−1a(rn−1).
- For a ratio less than 1 it is easier to use the same formula in the form Sn=1−ra(1−rn).
Step 1 — Find the k-th term.
The kth bracket is the G.P. 1+21+… with k terms, first term 1 and ratio 21.
Tk=1−211−(21)k=2−2(21)k=2−2k−11
Step 2 — Add the n terms.
The constant 2 added n times gives 2n. The other parts form the G.P. 1+21+41+… with n terms.
Sn=2n−(1+21+41+⋯+2n−11)
Step 3 — Sum the G.P.
We use the formula with first term 1, ratio 21 and n terms.
1+21+⋯+2n−11=1−211−(21)n=2−2n−11
Step 4 — Combine.
We subtract the G.P. sum from 2n.
Sn=2n−2+2n−11
Step 5 — Check.
For n=2 the two terms are 1 and 23, whose sum is 25. The formula gives the same value.
2(2)−2+21=25
Therefore, Sn=2n−2+2n−11.