To solve, we can simply sum the current angles and subtract them from 360°
Using the trig function tan(?) = opposite/adjacent
360° - arctan(4/3) - arctan(12/5) - arctan(24/7) - arctan(40/9) ? 88.43°
We therefore know that tan(88.43) = opposite/adjacent of the final triangle.
tan(88.43) = 2664/73
Therefore 2664 is the length of one side and 73 is the length of the other.
The large acute angle of the fifith triangle is
2? - [arctan(4/3 + arctan(12/5 + arctan(24/7) + arctan(40/9)]
= arctan (2664/73) using the following Wolfram Alpha link:
http://www.wolframalpha.com/input/?i=arctan%284%2F3%29+%2B+arctan%2812%2F5%29+%2B+arctan%2824%2F7%29+%2B+arctan%2840%2F9%29
The rigorous work out of the above result is as under.
The sum of large acute angles of the first two triangles
= tan^-1 (4/3) + tan^-1 (12/5)
= ? + tan^-1 [(4/3 + 12/5) / (1 - 48/15)]
= ? - tan^-1 (56/33).
The sum of large acute angles of the next two triangles
= tan^-1(24/7) + tan^-1 (40/9)
= ? + tan^-1 [(24/7 + 40/9) / (1 - 960/63)]
= ? - tan^-1 (496/897)
=> sum of the four large acute angles
= 2? - [tan^-1 (56/33) + tan^-1(496/897)]
= 2? - tan^-1 [(56/33 + 496/897) / (1 - 27776/29601)]
= 2? - tan^-1 [(50232 + 16368) / (29601 - 27776)]
= 2? - tan^-1 (66600/1825)
= 2? - tan^-1 (2664/73)
=> The fifith right triangle has sides 2664, 73 and 2665.