I'm reading Silverman/Tate's Rational Points on Elliptic Curves and pg 15 states:
(1) $\quad aX^2 + bY^2 = cZ^2$ (to be solved in integers)
"Legendre's theorem states that there is an integer m, depending in a simple fashion on a, b, c, so that the above equation (1) has a solution in integers, not all zero, if and only if the congruence:
$$ aX^2 + bY^2 \equiv cZ^2 \mod m$$
has a solution in integers relatively prime to $m$."
I'm guessing that $m$ is the product of $a,b,c$ but I want to make sure.