Mathwords logoMathwords

Congruent Number — Definition, Formula & Example

A congruent number is a positive whole number that equals the area of some right triangle whose three sides are all rational numbers. For example, 6 is congruent because the 3-4-5 triangle has area 6.

A positive integer nn is congruent if there exist rational numbers a,b,c>0a, b, c > 0 with a2+b2=c2a^2 + b^2 = c^2 and 12ab=n\tfrac{1}{2}ab = n. Since nn is congruent exactly when nk2nk^2 is congruent for every positive rational kk with nk2nk^2 an integer, it suffices to study square-free nn. Equivalently, nn is congruent if and only if the elliptic curve y2=x3−n2xy^2 = x^3 - n^2x has a rational point with y≠0y \neq 0.

Key Formula

n is congruent  ⟺  y2=x3−n2x has a rational solution (x,y) with y≠0n \text{ is congruent} \iff y^2 = x^3 - n^2 x \text{ has a rational solution } (x, y) \text{ with } y \neq 0
Where:
  • nn = The positive integer being tested
  • x,yx, y = Rational coordinates of a point on the elliptic curve

Worked Example

Problem: Show that 5 is a congruent number using the right triangle with legs 32\tfrac{3}{2} and 203\tfrac{20}{3} and hypotenuse 416\tfrac{41}{6}.
Step 1: Add the squares of the legs over the common denominator 36.
(32)2+(203)2=8136+160036=168136\left(\tfrac{3}{2}\right)^2 + \left(\tfrac{20}{3}\right)^2 = \tfrac{81}{36} + \tfrac{1600}{36} = \tfrac{1681}{36}
Step 2: Compare with the square of the hypotenuse. They match, so the triangle is a right triangle.
(416)2=168136\left(\tfrac{41}{6}\right)^2 = \tfrac{1681}{36}
Step 3: Compute the area as half the product of the legs.
12⋅32⋅203=6012=5\tfrac{1}{2} \cdot \tfrac{3}{2} \cdot \tfrac{20}{3} = \tfrac{60}{12} = 5
Answer: The triangle has rational sides, a right angle, and area 5, so 5 is a congruent number.

Why It Matters

Deciding which integers are congruent is still an open problem. Tunnell's theorem (1983) gives a test based on counting integer solutions of n=2x2+y2+32z2n = 2x^2 + y^2 + 32z^2 and n=2x2+y2+8z2n = 2x^2 + y^2 + 8z^2 (for odd, square-free nn). One direction is proved outright; the other is proved assuming the Birch and Swinnerton-Dyer conjecture, and that conjecture is one of the Clay Millennium Prize Problems. Fermat's proof that 1 is not congruent was an early use of his method of infinite descent.

Common Mistakes

Mistake: Assuming the triangle's sides must be whole numbers, and concluding that 5 is not congruent because no integer right triangle has area 5.
Correction: The sides only need to be rational. Every integer-sided right triangle has an area divisible by 6. Many congruent numbers, such as 5 and 7, therefore need fractional sides.

Related Terms