Whilst playing on my calculator, I noticed the following pattern.
$1^2-0^2=1$
$6^2-5^2=11$
${20}^2-{17}^2=111$
${56}^2-{45}^2=1{,}111$
${156}^2-{115}^2=11{,}111$
To me, this is where it gets interesting:
$344^2-85^2=556^2-445^2=356^2-125^2=111{,}111.$
My question: Is $111{,}111$ the first number with only $1$s as digits that can be represented as a difference of $2$ squares in $3$ different ways? Or, can $1,11,111,1111\,\mathrm{or}\,11111$ be written as $u^2-v^2=w^2-x^2=y^2-z^2$, where $u,v,w,x,y,z$ are all unique?
I lack the knowledge to write a computer program that would check possible solutions for me. Can anyone either prove that the previous numbers can't be written as I've stated or find a counterexample?
Let $a$ be an odd number with $d$ divisors (so for a prime like $a=11$ we have $d=2$ and for $a=111=3\cdot 37$ we have $d=4$ and so on). Then there are $d$ ways to write $a=u\cdot v$ with $u,v\in\Bbb N$ and $\frac d2$ of these have $u<v$ (well, $\frac{d-1}2$ for square $a$). Each such factorisation gives rise to a solution $a=x^2-y^2$ with $x=\frac{u+v}2$, $y=\frac{v-u}2$ (and vice versa: $a=x^2-y^2$ implies $a=uv$ with $u=x-y$ and $v=x+y$). So your question really is: Among the numbers $1, 11, 111, \ldots$, which is the first with six or more divisors? As $111=3\cdot 37$, $1111=11\cdot 101$, $11111=41\cdot 271$ and $111111=3\cdot 7\cdot 11\cdot 13\cdot 37$ we confirm that $111111$ is the first such number and in fact has $16$ such solutions: $$\begin{align}111111&=55556^2 - 55555^2\\ &=18520^2 - 18517^2\\ &=7940^2 - 7933^2\\ &=5056^2 - 5045^2\\ &=4280^2 - 4267^2\\ &=2656^2 - 2635^2\\ &=1700^2 - 1667^2\\ &=1520^2 - 1483^2\\ &=1444^2 - 1405^2\\ &=760^2 - 683^2\\ &=656^2 - 565^2\\ &=556^2 - 445^2\\ &=460^2 - 317^2\\ &=356^2 - 125^2\\ &=344^2 - 85^2\\ &=340^2 - 67^2 \end{align}$$