Let p be an odd prime number. Let n be a quadratic nonresidue mod p. Prove that the sum over the divisors of n $d^{(p-1)/2}$ is congruent to 0 mod p.