Gauss Sum Equation