[Math] Existence of a Pythagorean Triple with one side given.

number theorypythagorean triples

I am curious about the answer to the question:

Does there exists a pythagorean triple with $n$ as one of the sides for all $n\geq 3$ ?.

Your answers and comments will mean a lot.

Best Answer

If $n$ is odd, we have $$n^2 + \left(\dfrac{n^2-1}{2}\right)^2 = \left(\dfrac{n^2+1}{2}\right)^2$$ If $n$ is even we have $$n^2 + \left( \dfrac{n^2}{4}-1 \right)^2 = \left( \dfrac{n^2}{4} + 1 \right)^2$$

Related Question