For a Pythagorean triple, each square number is or modulo . If neither nor were divisible by , modular congruence would give , impossible for a square number. Thus at least one of is divisible by ; both can be divisible, as in .
An odd number has square number congruent to modulo , whereas an even number has square number congruent to . If both and were odd numbers, their sum of square numbers would again be modulo , which no square number can be. Hence and cannot both be odd. They can both be even; the conclusion does not require the Pythagorean triple to be primitive.