TITLE: Property of 111,111
QUESTION [43 upvotes]: 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?

REPLY [3 votes]: Note that, if we take $(s_n)=(1, 11, 111, 1111, \cdots),$ then easily we can see that $$s_n=\dfrac{10^n-1}{9}$$ and this lead us to find the number of solution for the Diophantine equation $\dfrac{10^n-1}{9}=x^2-y^2.$ Since $9=3^2$ this reduced to $$10^n=u^2-v^2+1$$ where both $u$ and $v$ are multiples of $\color{Green}{3}.$ 
In general, for any $n\in\Bbb{N},$ $10^n-1$ has two factors $p, q$  such that $p\gt q\ge 1$
satisfying $$10^n-1=u^2-v^2=(u-v)(u+v)=pq.$$ Therefore we can take $$u=\dfrac{p+q}{2} ,\,\,\,\text{and}\,\,\,\,\ v=\dfrac{p-q}{2}.$$
Now,  

For $n=1$: $$9=3^2 \,\,\,\,\,\text{and}\,\,\,\,\, (p, q)\in\{(9,1),(3,3)\}.$$ For $n=2$: $$99=3^2\times 11 \,\,\,\,\,\text{and}\,\,\,\,\, (p, q)\in\{(99,1),(33,3),(11,9)\}.$$
  For $n=3$: $$999=3^3\times 37 \,\,\,\,\,\text{and}\,\,\,\,\, (p, q)\in\{(999,1),(333,3),(111,9),(37,27)\}.$$
  For $n=4$: $$9999=3^2\times 11\times 101 \,\,\,\,\,\text{and}\,\,\,\,\, (p, q)\in\{(9999,1),(3333,3),(1111,9),(909,11),(303,33),(101,99)\}.$$
  And so on. Finally choose $p, q$ which are multiples of $3.$ Number of such pairs will solve your problem.