Determine the side lengths of a right triangle if they are integers and the product of the legs’ lengths equals three times the perimeter.
I tried this question for 3+ hours and I get 6 and 0 every time. Stuck now and don’t know how to approach it.
I did it like this:- Let x and y be the base and height of right triangle respectively. Then $xy = 3(x + y + \sqrt {x^2 + y^2})$
$xy - 3x - 3y = 3\sqrt {x^2 + y^2}$
$xy - 3x - 3y + 9 = 3\sqrt {x^2 + y^2} + 9$
$(x-3)(y-3) = 3(\sqrt {x^2 + y^2} + 3)$
then comparing these two products with every possible combination.
This question is from Number Theory by Titu and Dorin Page 160