Question to math geeks. I need a method of finding rational right triangle side lengths for a given integer triangle area.

Note: not every integer area is possible.

Any hints?

Follow

@xpil You've probably already tried iterating through lengths and using the Pythagorean theorem to check if the other side is rational.

I haven't gotten far with this other idea, but a little research introduced me to:
(a) Euclid's formula for Pythagorean triples
(b) Heron's formula / Heronian triangles

These are both fairly new ideas to me and I'm not really sure how to apply them to this problem. However, they /might/ make a faster solution?

Sign in to participate in the conversation
Fosstodon

Fosstodon is an English speaking Mastodon instance that is open to anyone who is interested in technology; particularly free & open source software.