1

I know that the question "Prove that if $n$ is odd, it is the difference between two squares" has been answered here:

Prove every odd integer is the difference of two squares

But I want to know if the converse of that is true, I think it must be something like this:

$2k = A^2 - B^2$ but I am unsure.

Sarah
  • 263

5 Answers5

4

Note that $A^2$ is odd iff $A$ is odd, same for $B$

Thus $A^2-B^2$ is even iff exactly one of the numbers $A$ and $B$ is even. Otherwise it is odd!

3

How about $4^2-2^2=16-4=12?$...

Ross Millikan
  • 374,822
2

We can address this question without knowing anything about multiplication, factorization, or squaring; all we need is subtraction! Given any three numbers $a,b,c$, either $a-b$ is even, or $a-c$ is even, or $(a-b)-(a-c)=c-b$ is a difference of odd numbers, hence even.

Now, you can apply this result to your favorite three squares. You can also apply it to any set containing at least three numbers, regardless of their origin: cubes, primes, the population of Timbuktu during full moons, etc.

Chris Culter
  • 26,806
2

The square of any number has the same parity (odd-even) as the number being squared.

The difference of two numbers is even if the numbers have the same parity.

The difference of two numbers is odd if the numbers have different parity.

DJohnM
  • 3,580
1

A numbers $n$ can be expressed as the difference of two squares iff $n$ is odd or $n$ is a multiple of $4$.

In both cases, it is easy to explicitly find $a$ and $b$ such that $n=a^2-b^2$ using $a^2-b^2=(a-b)(a+b)$ and the simplest factorization you can think of.

lhf
  • 216,483