I'm currently stuck on a problem right now for my Intro to Proofs Class. The problem says:
Let $a,b ∈ ℕ$. Prove that if $a+b$ is even, then there exists nonnegative integers $x$ and $y$ such that $x^2-y^2= ab$.
So far I've tried it directly, and by contrapositive and came to a similar road block.
Direct:
Assume $a,b ∈ ℕ$, and that $a+b$ is even.
$a+b$ being even $\implies$ $a+b=k_1$, such that $k_1 ∈ \mathbb{Z}$.
$a+b=k_1$ $\implies$ $a=k_1-b$.
Multiplying both sides of $a$ by $b$ we get: $ab= b(k_1-b)=bk_1-b^2$.
observing the conclusion $x^2-y^2=(x+y)(x-y)=ab$
It's at this point I'm at a road block. I'm not sure if direct is the way to go. I've also tried contrapositive, and contradiction, but i've also hit a roadblock for both of those as well.
If $a+b$ is even, you can write $a+b=2x$, with $x$ a natural number. Then, assuming $a\ge b$, which is not restrictive, you have $$ a-b=a+b-2b=2x-2b=2(x-b) $$ so also $a-b$ is even; set $x-b=y$, so that $$ a+b=2x \qquad a-b=2y $$ Summing these up we obtain $2a=2x+2y$, hence $a=x+y$.
Can you finish?