I’m gathering data for a hobby project and notating where the triangles in the data correspond to Pythagorean triples, but sometimes it doesn’t seem clear to me with certain data.

Can there exist Pythagorean triples in which the leg lengths are not coprime with each other but both are coprime with the hypotenuse? i.e., a right triangle in which (leg1, leg2, hypotenuse) = (a * n, b * n, c), in which a, b, c, and n are whole numbers and n is not a factor of c?

How can I determine if a right triangle with given lengths can scale to be a Pythagorean triple? If any of the values in (leg1: leg2: hypotenuse) are irrational, that does indeed mean the values cannot scale to be whole numbers?

Once it is determined that the triangle can scale to a Pythagorean triple, what is the best method of scaling the values to three whole numbers?

Thanks for any help

Edit: I’ve found an effective way to determine primitive Pythagorean triples from given leg lengths. Using a calculator that can output in fractional form, such as wolfram alpha, input leg1 / leg2 and the output will be a fraction with the numerator and denominator denoting the leg lengths of a primitive Pythagorean triple. Determining the hypotenuse is then simply using the Pythagorean Theorem.

  • @[email protected]
    link
    fedilink
    617 days ago

    Can there exist Pythagorean triples in which the leg lengths are not coprime with each other but both are coprime with the hypotenuse?

    I don’t think so. Using the theorem, (an)² + (bn)² = c² … Algebra… c = n(root(a² + b²))

    If c is a whole number, then the root must give a whole number, and therefore n divides c

    If any of the values in (leg1: leg2: hypotenuse) are irrational, that does indeed mean the values cannot scale to be whole numbers?

    Hypothetically I can see it working from the algebra. We can construct some trivial cases like taking 3:4:5 and dividing all those lengths by root(2). All lengths are now irrational and could be made whole by multiplying them all by root(2). We can also do it with different roots in a way that is hard to type on mobile but essentially involves breaking up, say, root(30) into component roots and having different pairs of components between the top and bottom of the fraction line but that is essentially the same thing as dividing them all by the same root. I can’t see a general way of doing it if they are not all irrational in the same way, though I am just a maths teacher not a proper researcher.

    • rockerface 🇺🇦
      link
      fedilink
      517 days ago

      If only some side lengths are irrational, then, by definition, there is no ratio of whole numbers that describes those lengths relative to each other - therefore, you can’t divide them out to be whole. Unless all side lengths are irrational and also share the same irrational multiplier (like root(2) in your example).

      • @[email protected]
        link
        fedilink
        317 days ago

        Yeah I think I was overcomplicating it in my head, I kept getting caught in the hows and whys of squaring everything in Pythagoras’ theorem, that maybe it could get around the problems of some being irrational and some not.

        Ultimately I think you’re right that the scaling itself is the problem: scaling irrational numbers to be whole numbers generally won’t work outside of those specific cases.

  • @[email protected]
    link
    fedilink
    English
    417 days ago

    Some answers here without proof! I’m sure someone will correct me if I’ve got anything wrong.

    Can there exist Pythagorean triples in which the leg lengths are not coprime with each other but both are coprime with the hypotenuse?

    I don’t think so. In your example n2 is a factor of c2 which implies n is a factor of c. Proving that is nontrivial though.

    How can I determine if a right triangle with given lengths can scale to be a Pythagorean triple?

    It can if the ratios between the sides are all rational. This is necessarily true if the sides are rational, but they could also all be irrational, for example 3π, 4π, 5π. It’s not possible if some sides are rational and some are irrational.

    Once it is determined that the triangle can scale to a Pythagorean triple, what is the best method of scaling the values to three whole numbers?

    The simplest way is to first make sure it’s rational and then multiply by the denominators to get integers. If the goal is to get the smallest possible integers (a primitive Pythagorean triple) you can then divide by the highest common factor.