Arithmetic mean and geometric mean formula