Sum of a finite geometric series: n∑k=0rk=1+r+r2+⋯+rn=1−rn+11−r
Sum of an infinite geometric series (0 < r < 1): ∞∑k=0rk=1+r+r2+⋯=11−r
Example: ∞∑k=212k=14+18+…=14(1+12+14+…)=14(∞∑k=0(12)k)=14⋅11−12=12