Project Euler 176 - Right-angled triangles that share a cathetus

Official link:

Thought Process

Warning: This problem is not suitable for hints, don't look further if you don't want to be spoiled!

I actually found and you will see the formula I derived below is listed and reverse engineered the whole problem without writing a single line of code, felt a bit nasty doing that, so below is my proof (If it's not the standard proof) of how to get the answer!

Interactive Code

No interactive code