The Sum of the First n Terms of Geometric Progressions