A nine digit number in which every digit occurs except zero and which ends in $5$ cannot be a square. I was reading the solution from Arthur Engel's book Problem Solving Strategies . I didn't get the idea of assuming $A=10a+5$. Also, by assuming $A$ and then finding about A, how is that enough in solving the problem since $D=A^2$ .The solution is as follows:
Suppose there is such a nine digit number $D$ so that $D=A^2.A=10a+5$ which means $A^2=100a^2+100a+25 =100a(a+1)+25$. Consequences: The next to last digit is 2 , The third digit from the right in $D$ is one ,which can be the final digit in a(a+1) that is 0,2,or 6 .See the table below: $a=0$
$a(a+1)(mod10)=0$
$a=1$
$a(a+1)(mod10)=0$
$a=2$
$a(a+1)(mod10)=2$
$a=3$
$a(a+1)(mod10)6$
$a=4$
$a(a+1)(mod10)=2$
$a=5$
$a(a+1)(mod10)=0$
$a=6$
$a(a+1)(mod10)=0$
$a=7$
$a(a+1)(mod10)=2$
$a=8$
$a(a+1)(mod10)=6$
$a=9$
$a(a+1)(mod10)=2$
But $0$ cannot occur ,and $5$ has already occured.