Following excerpts are adapted from the book Wonders of Numbers
by Clifford A. Pickover (ISBN: 0-19-515799-0).
Not only is 5 the hypotenuse of the smallest Pytagorean triangle, but it is also the smallest
automorphic number. Let me explain. A Pytagorian triangle is a right-angled triangle with
integral sides. For example, the smallest Pytagorean triangle has side lengths 3, 4, and 5. An automorphic
number n, when multiplied by itself, leads to a product whose rightmost digits are n.
Not counting the trivial case of number 1, the numbers 5 and 6 are the smallest automorphic numbers
because 5 x 5 = 25 and 6 x 6 = 36. Examining a larger number, the square of 25 is 625. Note that
25 appears as the final 2 digits of 625.