c^2 is congruent to d^2 modulo 8