Over a finite field of odd cardinality , a diagonal nondegenerate ternary quadratic form has a zero with : the sets and both have elements and must intersect. This gives a nonzero nonsingular zero. Over a local integer ring with these coefficients units, the Hensel lemma lifts it to an isotropic vector in the fraction field.
This ternary quadratic form has a nonzero zero over exactly when . Away from , the finite-field square-set intersection proof supplies a nonsingular residue zero, and Hensel lemma lifts it. At 5 use modulo 5; at 13 use . At 2 hold and apply the strong form of Hensel lemma to at : the function and derivative have valuations 3 and 1. At 7, the equation modulo 7 forces because 5 is not a square; reduction after dividing by 7 then forces . Any normalized integral nonzero solution would therefore have all coordinates divisible by 7, a contradiction.
The Hasse-Minkowski theorem says that a nondegenerate quadratic form over a number field has a nonzero isotropic vector over that field if and only if it has one over every completion. In particular, over one tests and every . For the present integral form, a rational isotropic vector can be multiplied by a common denominator to give an integer one. This is the Hasse-Minkowski principle.
Write , and . All three primes are odd and exceed three: or would make composite. The second supplementary law for quadratic reciprocity gives
Necessity at . Scale any nonzero vector over so that its coordinates lie in and at least one is a unit. Reduction of its equation modulo gives , since twelve is invertible modulo . If the Legendre symbol is , this forces . The original equation then forces , because its other two terms are divisible by . This contradicts the normalization. Thus
Sufficiency at the coefficient primes. Suppose . A nonzero solution modulo is . Its -derivative is nonzero modulo , so fixing the other two coordinates and applying the Hensel lemma lifts it to .
Since , the same Legendre symbol criterion gives . Modulo , the equation reduces to , and the vector is a simple zero in the coordinate. It lifts to . Modulo , the coefficients of and are respectively and , so is a zero with nonzero -derivative. It lifts to .
The remaining odd primes. If is odd and divides none of , the reduced ternary quadratic form is nondegenerate. An elementary finite-field argument finds a zero with : if its coefficients are , the sets
both have elements, so intersect. The resulting vector has nonzero -derivative , and the Hensel lemma lifts it. This isotropy of nondegenerate ternary quadratic forms over finite fields verifies every remaining odd completion without an extra congruence condition.
The dyadic and real places. Setting reduces the dyadic problem to
The right side is a 2-adic unit congruent to modulo eight. The unit square classes of the p-adic integers computed above show that it is a square in . This also explains the printed hint: its integer can be taken as . Over , the positive and negative coefficients make the form indefinite; for instance gives a nonzero zero.
All completions now have a nonzero isotropic vector. The Hasse-Minkowski theorem, followed by clearing denominators, proves
By Fermat's little theorem,
Thus the sum of over counts, modulo , the triples on which the ternary quadratic form vanishes.
Expand with the multinomial theorem. A term indexed by contributes a constant multiple of
At least one of is strictly less than . Its corresponding exponent is therefore in , so part (b), including its case, makes that power sum zero modulo . Every term in the expansion consequently vanishes after summation. The constant term contributes , and therefore
The zero triple is one solution of . If it were the only solution, the displayed sum would be congruent to rather than . Hence there is another triple , not all divisible by , satisfying