Given any two whole integers m and n such that m > n, how do you generate a Pythagorean triple. Example: 7 and 5? Thank you.
Use these formulas: m2 + n2, m2 - n2, 2·m·n
For example: If m = 2 and n = 1, then you have: 22 + 12 = 5 22 - 12 = 3 2·2·1 = 4.