$$ A = \frac{a_1 + a_2 + r}{n} \qquad G = \sqrt[n]{a_1 \cdot a_2 \cdot p} $$