Recreational mathematics is mathematics that is fun and used as either as a diversion from serious mathematics or as a way of making serious mathematics understandable or palatable. These are the pedagogic uses of recreational mathematics. They are already present in the oldest known mathematics and continue to the present day. One of the topic of the recreational mathematics is the Automorphic numbers which have many use in different fields.
Automorphic numbers are those numbers whose square ends with the number itself:
52 | = | 25, |
252 | = | 625, |
762 | = | 5776. |
The first automorphic numbers are 1, 5, 6, 25, 76, ... By definition 0 is not an Automorphic Number and for this particular problem we will not consider 1 as an Automorphic Number.
Automorphic numbers have enormous application in mathematics. In this problem you are to determine whether a given number is Automorphic or not.
5 76 34
Automorphic number of 1-digit. Automorphic number of 2-digit. Not an Automorphic number.