Recursive formulas for geometric sequences