>>13975167Youre very welcome. Playing around with pythagoras? If you want something really fascinating, check out Burton's book on Number Theory (the pdf is free online). Chapter 12 has a whole section on pythagorean triplets with some pretty surprising results.
For example, the pythagorean equation x^2 + y^2 = z^2 has solutions of the form x=2st, y=s^2-t^2 z=s^2+t^2, (as long as x y and z are relatively prime).
If that doesnt mean much to you, let me give an example. Let a=40. If we want a, b, and c to not share any common factors, then all of its solutions are of the form 60=2st, so 30=st. Our s and t can then be 30 and 1, 15 and 2, 10 and 3, or 6 and 5. Using our formula from before, y=s^2-t^2, z=s^2+t^2, we have the pythagorean triples:
60, 899, 901
60, 221, 229
60, 11, 61
60, 91, 109
And these are just the ones with side lengths relatively prime to each other. Pretty cool I would say. There's more like it in the chapter, give it a read if you're interested.
What's your level of math? I might have better recommendations for your level