KiloAtlas
EN
EnglishBahasa IndonesiaTiếng Việt

Pythagorean Triples Calculator

Generate an integer right-triangle triple using Euclid’s formula and an optional positive integer scale.

Leg a

31
Leg b
4 1
Hypotenuse c
5 1

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

  1. Enter positive integers m and n with m greater than n.
  2. Enter the positive integer scale k.
  3. 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:

Related tools

Search conversion tools