Formula for Geometric Progression