Question
Prove for every odd integer $a \geq 3$ that there exists an even integer $b$ such that $(a, b, b + 1)$ is a Pythagorean triple.
Proof
Let $a \geq 3$ be an odd integer. Then $a = 2n + 1$ for some positive integer $n$. We seek a positive even integer $b$ such that $(a, b, b + 1)$ is a Pythagorean triple. Then
$a^2 + b^2 = 4n^2 + 4n + 1 + b^2 = b^2 + 2b + 1.$
Therefore, $2b = 4n^2+4n$ and so $b = 2n^2+2n.$ Letting $b = 2n^2+2n$ , we see that $a^2+b^2 = (b+1)^2$ and so $(a, b, b + 1)$ is a Pythagorean triple.
My question is how we could we write $4n^2 + 4n + 1 + b^2 = b^2 + 2b + 1$ before we say that $2b = 4n^2+4n$? The way it was written makes it seem like $4n^2 + 4n$ naturally simplifies to $2b$, but I don't see how it does before $2b$ is explicitly defined to equal $4n^2 + 4n$.