Tri-Automorphic Number in JAVA
Tri-Automorphic Number Tri-Automorphic Number : A number is called Tri-Automorphic number if the last digits of 3 times the square of the number is equal to the number itself. Or A number ‘n’ is called Tri-Automorphic if ‘3n 2 ’ ends in ‘n’. Example :- Input : 5 Sqaure : 3 X (5 X 5) = 75 Output : It is a Tri-Automorphic Number Input : 667 Sqaure : 3 X 667 X 667 = 1334667 Output : It is a Tri-Automorphic Number Input : 12 Square : 3 X 12 X 12 = 432 Output : It is not a Tri-Automorphic Number Algorithm and Program given below :-