Pythagorean Triples Calculator
Generate an integer right-triangle triple using Euclid’s formula and an optional positive integer scale.
Formula
a=k(m²−n²); b=2kmn; c=k(m²+n²), m>n>0.
Leg a ≈ (1)×((2)^2-(1)^2) · Leg b ≈ 2×(1)×(2)×(1) · Hypotenuse c ≈ (1)×((2)^2+(1)^2)
How to use
- Enter positive integers m and n with m greater than n.
- Enter the positive integer scale k.
- Read integer legs a, b and hypotenuse c.
Examples
- m=2, n=1, k=1 gives (3,4,5).
Frequently asked questions
Are all triples primitive?
No; k=1, coprime m,n and opposite parity are required for a primitive triple.
Does the order of the legs matter?
No; swapping a and b gives the same triangle.
Does this check an existing triple?
No; it generates one from m,n,k and satisfies a²+b²=c².
Sources
Updated: