Puzzles/Arithmetical puzzles/Digits of the Square

Puzzles | Arithmetical puzzles | Digits of the square

There is one four-digit whole number n, such that the last four digits of n&sup2; are in fact the original number n. What is it?

solution