Inspired by this Hagon Von Eitzen's answer( https://math.stackexchange.com/a/1591028/789547) I started investigating how I could express natural numbers as differences of squares.
Using the method explained in the solution, I investigated natural numbers up to $60$ manually.
I observed the following:
- There is no way to express numbers of the form $4k+2$ as a difference of two squares.
2.There is one and only one way to express prime numbers (except $2$) as a difference of two squares.
- The smallest number that can be expressed as a difference of two squares in two different ways is $15$ and the smallest number that can be expressed as a difference of two squares in three different ways is $45$.
As,
$15= 8^2-7^2=4^2-1^2$.
$45=23^2-22^2=9^2-6^2=7^2-2^2$.
I could prove point $2$ easily but could not prove point $1$.
Also I am interested in knowing how I could find the smallest natural number that could be expressed as a difference of two squares in four different ways without manual calculation.
Point 1 Proof:
$$4k+2=2(2k+1)\ =\ a^2-b^2=(a-b)(a+b)$$
Obviouslu LHS is divisible by 2 so $2\mid a-b$ or $2\mid a+b$. It means that $a$ and $b$ are either both even or both odd. So RHS has two factors divisible by 2 and therefore must be divisible by 4. But the LHS is divisible by 2 only (the other factor of LHS is odd). Contradiction.
Alternative proof: It's easy to check that all squares are either equal to 0 or 1 modulo 4. Their differencies can be 0, 1 or 3 but not 2 (modulo 4)