Solution

ID: past-exam-of-the-short-options-course-of-the-university-of-oxford/2014/1/a/iv/solution

Because is odd, must be odd. Every odd square is modulo eight. If is even, is zero modulo eight; if is odd, it is two modulo eight. Thus
More precisely, the first case has even and the second has odd . These are necessary conditions on the congruence class, as requested; the elementary calculation alone does not prove their sufficiency.
Equivalently, reduction modulo makes a quadratic residue: cannot divide , since that would also force and hence . The two supplementary laws and multiplicativity of the Legendre symbol give the same two allowed classes.

New to topics? Read the docs here!