Geometry

The areas a right triangle can have

A right triangle with sides 3, 4 and 5 has area 6; one with sides 3/2, 20/3 and 41/6 has area 5. No right triangle with rational sides has area 1, 2 or 3. Which whole numbers are areas is a thousand-year-old question, and its best answer — two counts of solutions to quadratic equations — rests on one of the great unproved conjectures.

Worth reading first: Every triple, on one circle · A tree that holds every triple.

Every Pythagorean triple sits on one circle: draw a line of rational slope through a point of the unit circle, and where it comes out is a rational point, which cleared of denominators is a triple. That essay ended with a theorem of Fermat’s — no right triangle with whole-number sides has an area that is a perfect square — and a question it opened. Which whole numbers are the area of some right triangle whose sides are rational?

Six is, because of the triangle with sides 3, 4 and 5. Five is too, but the smallest triangle that proves it has sides 32\tfrac32, 203\tfrac{20}3 and 416\tfrac{41}6. Seven needs 245\tfrac{24}5, 3512\tfrac{35}{12} and 33760\tfrac{337}{60}. A whole number that is such an area is called congruent, a name that goes back to Fibonacci’s congruum of 1225, though Arab mathematicians had studied the question in another form in the tenth century. One, two and three are not congruent: no rational right triangle at all, however thin or strangely shaped, has area 1, 2 or 3.

Right triangles of area five, six and seven. area 5: 3/2, 20/3, 41/6; area 6: 3, 4, 5; area 7: 24/5, 35/12, 337/60.
Fig. 1 Right triangles with rational sides and areas 5, 6 and 7, drawn to the same scale.

The question of which numbers are congruent sounds like a puzzle about triangles. It turns out to be a question about rational points on a curve, and its best answer — a theorem of Jerrold Tunnell from 1983 — decides it by counting solutions of three quadratic equations, completely and correctly in one direction, and in the other direction only if one of the hardest open conjectures in mathematics is true.

Three squares in a row

The name comes from a different but equivalent puzzle. In 1225, at the court of the emperor Frederick II, Johannes of Palermo set Leonardo of Pisa — Fibonacci — the problem of finding a rational square that stays a square when 5 is added to it and when 5 is subtracted. Fibonacci found one: (4112)2\left(\tfrac{41}{12}\right)^2, since

(4112)2−5=(3112)2,(4112)2+5=(4912)2.\left(\tfrac{41}{12}\right)^2 - 5 = \left(\tfrac{31}{12}\right)^2, \qquad \left(\tfrac{41}{12}\right)^2 + 5 = \left(\tfrac{49}{12}\right)^2.

Three squares in arithmetic progression with common difference 5 — and he called such a difference a congruum. The connection to triangles is one identity: if (a,b,c)(a, b, c) is a right triangle of area nn, then (c/2)2±n=((a±b)/2)2(c/2)^2 \pm n = \left((a \pm b)/2\right)^2, because (a±b)2=c2±4n(a \pm b)^2 = c^2 \pm 4n once a2+b2=c2a^2 + b^2 = c^2 and 2ab=4n2ab = 4n are used. The triangle (32,203,416)(\tfrac32, \tfrac{20}3, \tfrac{41}6) of area 5 gives exactly Fibonacci’s three squares, and the (3,4,5)(3, 4, 5) triangle gives (12)2(\tfrac12)^2, (52)2(\tfrac52)^2 and (72)2(\tfrac72)^2, three squares a distance 6 apart. Conversely three rational squares with common difference nn give back a triangle of area nn, so congruent numbers are exactly the possible common differences of three rational squares in arithmetic progression.

Fibonacci also stated, without a complete proof, that no square number is a congruum — the case Fermat later settled by descent. A congruent number can always be scaled by a square, so the question is really about square-free numbers, and every figure here uses only those.

From triangles to triples

Every rational right triangle is a scaled copy of a primitive Pythagorean triple — whole numbers (m2−k2,2mk,m2+k2)(m^2 - k^2, 2mk, m^2 + k^2) for coprime m>km > k of opposite parity, all of which a single tree of three matrices produces. The triple’s area is mk(m−k)(m+k)mk(m - k)(m + k), and scaling the triangle by a rational factor tt scales its area by t2t^2. So nn is congruent exactly when some triple’s area is nn times a square: then shrinking the triple by the square root of that square gives a rational triangle of area nn.

That turns the question into a search. For each triple, factor the area, strip out the squares, and what is left — the area’s square-free part — is a congruent number. The four factors mm, kk, m−km - k and m+km + k are pairwise coprime, so the square-free part of their product is the product of their square-free parts, which makes the search fast. The triple (3,4,5)(3, 4, 5) has m=2m = 2, k=1k = 1 and area 6, which is square-free, so 6 is congruent. The triple with m=5m = 5, k=4k = 4 is (9,40,41)(9, 40, 41), of area 180=5×36180 = 5 \times 36, so 5 is congruent — and dividing every side by 6 gives the triangle in the figure.

The areas the small triangles prove. 1:0 2:0 3:0 5:1 6:2 7:1 10:0 11:0 13:0 14:1 15:2 17:0 19:0 21:1 22:1 23:0 26:0 29:0 30:2 31:0 33:0 34:3 35:0 37:0 38:0 39:1; 18281 triples.
Fig. 2 The 18,281 primitive Pythagorean triples with m up to 300, sorted by the square-free part of their area — the congruent number each proves — for areas up to 40. × marks a square-free number that is not congruent; · one that is but whose triangle needs a larger triple.

The areas 1, 2 and 3 never appear, and never will. Fermat’s proof that 1 is not congruent was the first proof by infinite descent: from a right triangle of square area he built a smaller one, and since whole numbers cannot shrink for ever, there is none. The same kind of argument disposes of 2 and 3. Among the congruent numbers that do appear, most are proved by only one, two or three of the eighteen thousand triples in this range, and several — marked with a dot — appear in none of them. A congruent number’s triangle can be very large.

Why one is not an area

Fermat’s argument for 1 is worth seeing in the form the squares in arithmetic progression give it. If 1 were congruent, there would be three rational squares a distance 1 apart; clearing denominators, three whole-number squares u2−w2u^2 - w^2, u2u^2, u2+w2u^2 + w^2 that are all squares, and multiplying the outer two, a solution of u4−w4=z2u^4 - w^4 = z^2 in whole numbers. Fermat showed that any such solution can be turned into a strictly smaller one — the same move as folding a square that cannot shrink in the proof that 2\sqrt2 is irrational — and whole numbers cannot decrease for ever. So there is no solution, and 1 is not congruent.

The equation u4−w4=z2u^4 - w^4 = z^2 has a famous corollary: it has no solutions with zz a square, so x4+y4=z4x^4 + y^4 = z^4 has none either, which is the exponent-four case of Fermat’s last theorem — proved by this descent three and a half centuries before the general case. The essay that met every triple on one circle told that story from the side of the triples; here it is the first entry in the list of non-congruent numbers, and the descent that produced it does not extend to settle the general question. For 2 and 3 similar descents work. For most numbers neither a short descent nor a small triangle settles the matter, and the answer has to come from the curve.

How large the smallest triangle can be

Extending the search to every mm up to 5,000 makes the point sharper.

How large the smallest triangle can be. 75 of 149 congruent n ≤ 400 found with m ≤ 5000; not found: 23, 37, 47, 53, 61, 62, 79, 87, 94, 101, 103, 118, 127, 133, 134, 142, 143, 149, 151, 157, 158, 159, 166, 167, 173, 181, 183, 191, 197, 199, 206, 213, 214, 222, 223, 229, 237, 239, 247, 253, 254, 257, 262, 263, 269, 271, 277, 278, 287, 293, 295, 302, 303, 309, 311, 317, 326, 327, 334, 335, 341, 349, 358, 359, 365, 367, 373, 381, 382, 383, 389, 391, 397, 398.
Fig. 3 For each congruent square-free number up to 400, the smallest m of a primitive triple whose area is that number times a square, searched up to m = 5,000, on a logarithmic scale. Red ticks above the dashed line mark the 74 congruent numbers the search did not reach.

For half of the congruent numbers below 400 the search finds a triple, sometimes tiny — 6 needs m=2m = 2, 5 needs m=5m = 5 — and sometimes in the thousands. For the other half it finds nothing, and those numbers are congruent all the same, as the next section’s criterion shows. The most famous of them is 157: the simplest rational triangle of area 157, found by Don Zagier, has sides that are fractions with more than twenty digits above and below the line, and its generating triple is far beyond any search.

That is why searching can never settle the question on its own. A search that finds a triangle proves a number congruent. A search that finds nothing proves nothing, because no bound is known on how large the smallest triangle can be in terms of nn. Deciding that a number is not congruent needs a different kind of argument.

A curve where triangles are points

The different kind of argument comes from geometry of a different sort. A rational right triangle (a,b,c)(a, b, c) of area nn gives a rational point

x=(c2)2,y=c (b2−a2)8x = \left(\frac c2\right)^2, \qquad y = \frac{c\,(b^2 - a^2)}{8}

on the curve y2=x3−n2xy^2 = x^3 - n^2 x, and every rational point on that curve with y≠0y \ne 0 gives back a triangle: a=∣(x2−n2)/y∣a = |(x^2 - n^2)/y|, b=∣2nx/y∣b = |2nx/y|, c=∣(x2+n2)/y∣c = |(x^2 + n^2)/y|. Congruent numbers are the nn for which this elliptic curve has rational points other than the three obvious ones on the axis.

A new triangle of area six from a tangent. y² = x³ − 36x; P = (12, 36) from (3, 4, 5); tangent slope 5.5; 2P = (25/4, −35/8) giving (7/10, 120/7, 1201/70).
Fig. 4 The curve y2=x3−36xy^2 = x^3 - 36x, on which every rational right triangle of area 6 is a rational point. The tangent at the point of the (3, 4, 5) triangle meets the curve again at a rational point, whose reflection is a new triangle of area 6.

Elliptic curves carry an extraordinary structure: a line through two rational points of the curve meets it in a third rational point, and a tangent at one rational point meets it in another. The (3, 4, 5) triangle is the point (12,36)(12, 36) on the curve for n=6n = 6. Its tangent there has slope 112\tfrac{11}2 — found by differentiating the curve’s equation as it stands — and meets the curve again at (254,358)(\tfrac{25}4, \tfrac{35}8). Reflecting that point in the horizontal axis gives (254,−358)(\tfrac{25}4, -\tfrac{35}8), and the formula turns it into a second triangle of area 6:

710,1207,120170.\frac{7}{10}, \qquad \frac{120}{7}, \qquad \frac{1201}{70}.

Doubling again gives a third, much larger, and so on for ever: a congruent number has infinitely many triangles, and the tangent-and-chord rule produces them. The same rule makes the points of any cubic curve into a group, which is how nine trees can be planted in ten rows of three: collinear triples of points on a cubic are triples that add to zero.

The triangles grow fast as the doubling is repeated. On the curve for 6, the hypotenuse of the triangle from 2P2P has a numerator of four digits, from 4P4P thirteen, from 8P8P fifty, from 16P16P a hundred and ninety-eight, and from 32P32P seven hundred and ninety-one — the number of digits multiplies by about four at each doubling. That is the height of a rational point at work: doubling a point raises the size of its coordinates’ numerators and denominators to roughly the fourth power, so their lengths in digits roughly quadruple. It is also why the smallest triangle for a number like 157 can be enormous: if the curve’s simplest point is already large, every triangle built from it is larger still, and there is nothing smaller to find.

Two counts that decide

The curve’s rational points are governed by a deep theory, and in 1983 Tunnell extracted from it a criterion that needs no curve at all. For an odd square-free nn, count the integer solutions of two equations:

A=#{x2+2y2+8z2=n},B=#{x2+2y2+32z2=n}.A = \#\{x^2 + 2y^2 + 8z^2 = n\}, \qquad B = \#\{x^2 + 2y^2 + 32z^2 = n\}.

If nn is congruent then A=2BA = 2B. For even nn the same holds with 4y24y^2 in place of 2y22y^2 and n/2n/2 in place of nn.

Two counts that decide a triangle. 1: A=2, B=2; 37: A=0, B=0; 73: A=16, B=12; 109: A=0, B=0; 149: A=0, B=0; 187: A=24, B=16; 221: A=0, B=0; 257: A=64, B=32; 295: A=0, B=0; 331: A=36, B=12; 373: A=0, B=0; 409: A=64, B=24; 445: A=0, B=0; 481: A=64, B=24; 517: A=0, B=0; 557: A=0, B=0; 593: A=96, B=56.
Fig. 5 For every odd square-free n up to 600, Tunnell’s two counts A against B, jittered slightly sideways so that equal pairs can be seen. Congruent numbers lie on the line A = 2B.

The first direction is a theorem: a number with A≠2BA \ne 2B is certainly not congruent, and the counts are finite and quick. That settles 1, 2 and 3 in a line each, and every dot off the line in the figure. The converse — that A=2BA = 2B implies congruence — Tunnell proved only on the assumption that the Birch and Swinnerton-Dyer conjecture is true. That conjecture, one of the Clay Institute’s seven Millennium Prize problems, says that the number of independent rational points on an elliptic curve can be read off from the behaviour of a function built from counting the curve’s points modulo every prime. For congruent numbers it would mean that the counts AA and BB, which measure that function’s value at one point, decide everything.

The counts are close relatives of the representation numbers that count lattice points in a ball and of Ramanujan’s question about which numbers a sum of weighted squares takes. Here they decide a question about triangles: the numbers of points on two ellipsoids with integer coordinates, compared, say whether a curve has infinitely many rational points.

The remainder mod 8 decides most of it

Applying Tunnell’s criterion to every square-free number up to 1,000 finds 361 congruent numbers, and their distribution has a striking shape.

Congruent numbers by their remainder mod 8. 1 mod 8: 22/98; 2 mod 8: 19/101; 3 mod 8: 12/101; 5 mod 8: 102/102; 6 mod 8: 103/103; 7 mod 8: 103/103; total 361.
Fig. 6 Every square-free number up to 1,000, sorted by its remainder on division by 8 and laid out in rows of ten in increasing order; filled when Tunnell’s criterion says it is congruent.

Every one of the 308 square-free numbers of the form 8k+58k + 5, 8k+68k + 6 or 8k+78k + 7 passes the test. Among those of the form 8k+18k + 1, 8k+28k + 2 and 8k+38k + 3, only 22, 19 and 12 do. The pattern is predicted by the Birch and Swinnerton-Dyer conjecture through a parity argument: for nn in the first three classes the curve’s root number forces an odd number of independent points, so at least one, so a triangle. For primes the predictions are theorems in several classes — Kurt Heegner and later Paul Monsky proved, for instance, that every prime of the form 8k+58k + 5 or 8k+78k + 7 is congruent — and Tian Ye proved in 2014 that each of the three classes contains infinitely many congruent numbers. That every square-free number of the form 8k+58k + 5, 6 or 7 is congruent is still not proved.

In the other three classes congruent numbers are expected to become rarer and rarer. Alexander Smith proved in 2017 that among square-free numbers of the forms 8k+18k + 1, 8k+28k + 2 and 8k+38k + 3 the congruent ones make up a proportion that tends to nought, by a delicate analysis of how the curves’ rational points behave on average; the 22, 19 and 12 congruent numbers in those columns below 1,000 are, in that sense, the start of a long thinning out. The other three classes hold the hard cases. A number like 41 or 34, in the classes where congruence is rare, is congruent for reasons the residue does not reveal, and Tunnell’s counts are the only general way to find out.

What a search and a count cannot settle

Every congruent number in the figures is certified in one of two ways, and the two are of different strength. A triangle found by the search is a proof, checked by arithmetic. A number passing Tunnell’s test, with no triangle found, is congruent if the Birch and Swinnerton-Dyer conjecture holds; for many such numbers, including 157, a triangle has since been found by other means, so the conditional is not needed for them, but for the criterion as a whole it is.

The search figure also shows only what the search reached. That 74 congruent numbers below 400 have no triangle with m≤5,000m \le 5{,}000 says nothing about how large their triangles are, only that they are larger. The curves’ rational points can be searched far more efficiently than the triples, by computing heights and using the group structure, and the largest known triangles were found by a different route altogether: Zagier obtained 157’s triangle by constructing a point on its curve from the theory of modular forms, the method of Heegner points, which produces a rational point directly when the theory guarantees one exists. The simple search here is meant to show the difficulty, not to measure it.

And the counts are exact for the numbers drawn and say nothing about larger ones. The pattern by residue mod 8 is visible in every range anyone has checked, and that is evidence, not proof.

Still open: the Birch and Swinnerton-Dyer conjecture

Is every square-free nn with A=2BA = 2B congruent? Equivalently, for these curves, is the Birch and Swinnerton-Dyer conjecture true? The conjecture is known in special cases — when the relevant function vanishes to order zero or one, by the work of Benedict Gross, Don Zagier and Victor Kolyvagin in the 1980s — and those cases are enough to settle the congruent number problem for many individual nn and for some infinite families. The general statement is open, and a proof would settle a question about triangles that the Arab mathematicians of the tenth century already asked.

In the meantime, the problem has a curious status. It is decidable in practice for any particular number anyone has cared to test: compute AA and BB, and if they agree, search the curve for a point. Every number with A=2BA = 2B that has been examined closely has yielded a triangle in the end. What is missing is a guarantee that the search always ends.

Areas decided by counting

A whole number is the area of a rational right triangle exactly when the curve y2=x3−n2xy^2 = x^3 - n^2x has a rational point off its axis; six, five and seven are, and one, two and three are not. A triangle found by search proves congruence, and a tangent to the curve turns it into infinitely many — (3, 4, 5) becomes (7/10, 120/7, 1201/70). Tunnell’s two counts of solutions to quadratic equations prove non-congruence outright and congruence on the strength of the Birch and Swinnerton-Dyer conjecture; applied to every square-free number up to 1,000 they find 361 congruent numbers, including every one of the form 8k+58k + 5, 6 or 7 — and 157, whose smallest triangle has fractions of more than twenty digits.

What links here

Computed from the collection, not written here: the essays that point at this one.

Shares its objects with

Essays that name at least two of the same things, and that neither author linked.

Named objects

A dashed tag is an object no other essay names yet.

Congruent numberConjectureElliptic curveExhaustive searchInfinite descentPythagorean triplesQuadratic formRational points