Question 8The positive integers $N$ and $N^2$ both end in the same sequence of four digits $abcd$ when written in base $10,$ where digit $a$ is not zero. Find the three-digit number $abc.$