For any given three positive integers $a < b < c$ and $n=2$ then it can be derived that
$$\frac{c^2 - ( a^2 + b^2 ) + {a+b-c}^2 }{ (c-a)(c-b)} = 2 $$
Then the condition $$\frac{(a+b-c)^2}{(c-a)(c-b)} = 2$$ to be satisfied to produce the Pythagorean-triples.