Solnov1405
From landen.
Here is a general solution in integers. Two basic equations are needed. In this form it is easy to find all the solutions. Factor 2r2. Then (x − 2r) can take on all integer values below . Since the problem is symmetric in x and y these values are all distinct pairs not counting order for the lengths of the legs of the triangle.
In the specific case with r = 3 the factors of 18 below are just 1,2,3. Therefore, there will be 3 values for (x,y,z): (7,24,25), (8,15,7), (9,12,15). Polytope noted that there are always 3 solutions for any prime r > 2.