A triangle and rectangle have the same area and perimeter. All sides are integers.
Triangle Sides
Rectangle Sides Area
5,5,6
6,2
12
10,10,12 12,4
48
13,20,21 21,6
126
25,51,52 52,12
624
53,53,56 60,21
1260
37,130,157 150,12
1800 (First which has all five lengths unique.)
41,104,105 105,20
2100
Part 2 did not receive any solutions. Perhaps it is impossible. If a solution does exist, the side must satisfy:
I used the table of Pythagorean Triples and was not able to find solutions for c < 10000.
Joseph DeVincentis sent this analysis for Part 1, leading to the table above:
By combining Hero's Formula for the area of a triangle with the other
specifications for the problem, I get:
(d+e)(d+e-a)(d+e-b)(a+b-d-e) = d^2 e^2
where a,b,c are the sides of the triangle and d,e are the sides of the
rectangle. c=2d+2e-a-b and is automatically an integer when the other sides
are. Since the perimeter of the triangle is 2d+2e, the sides of the triangle
must be less than d+e in order to allow those sides to form a triangle.
Then start with small dimensions and look for solutions. For a given e, we
only need to consider d where d^2 e^2 is divisible by d+e. Then the other
three terms in parentheses add to d+e, so we need three positive integers
that add to d+e whose product is (d^2 e^2)/(d+e).
e=1 has no solution because d^2 is never divisible by d+1.
e=2 yields the solution a=b=5, c=6, d=6, e=2, area=12.
e=3 I didn't find any solutions.