Use the condition a² + b² = c²
Choose two positive integers m and n with m > n
Set a = m² – n²
Set b = 2mn
Set c = m² + n²
Ensure m and n are coprime
Ensure m and n are not both odd
Swap a and b if needed
Multiply all three numbers by the same positive integer to get more triples
Check that all three numbers are integers
Verify the result by squaring and adding a² + b² = c²
