Hi I'm looking at problems on deciding if a number is square modulo a composite.
Specifically is 37 a square modulo 2018.
I can solve the problem since it's just (37/1009) = 1, but I'm wondering if dividing 2018 into 2 and 1009 can be generalized to all composites. For example if the denominator is 2024, can I calculate 2^3, 11, and 23, then multiply the Legendre symbols?
i.e. does (a/p) (a/q) = (a/pq) for p and q distinct and coprime?
Many thanks.