Proof. We obtain a general formula (if
) for a ternary quadratic form
useful for the three following problems.
This gives (if
)
If
, the formula (1) gives (with the help of Sagemath, see Note 2)
Consider the form
By (3),
has a nontrivial rational solution if and only if
has a nontrivial rational solution. Therefore
has a nontrivial integral solution if and only if
has a nontrivial integral solution.
Here
and
are prime numbers. Note that
sage: kronecker(21,17), kronecker(51,7), kronecker(-119,3)
(1, 1, 1)
Then by Legendre’s Theorem,
has nontrivial integer solutions, so
has nontrivial integer solutions. □
Note 1: Consider some integral solution of
, for instance
:
To obtain a corresponding solution
of
, we solve the system
If
, then
, and
So
is an integral solution of
:
Note 2: With Sagemath:
(a,b,c,d,e,f) = (3,5,7,9,11,13)
var(’x,y,z’)
g = a * (x + (d/(2*a))*y + (f/(2*a))*z)^2 \
+ ((4*a*b - d^2)/(4*a))* (y + ((2*a*e-d*f)/(4*a*b - d^2))*z)^2 \
+ ((4*a*c -f^2)/(4*a) - (2*a*e-d*f)^2/(16*a^2*b - 4*a*d^2))*z^2
84 * g