Posts

Showing posts from January, 2020

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 :-

Trimorphic Number in JAVA

Trimorphic Number Trimorphic Number : A number is called Trimorphic Number if and only if its cube ends in the same digits as the number itself.  Or  A number ‘n’ is called Trimorphic if ‘n^3’ ends in ‘n’  Example :- Input : 5  Cube : 5 X 5 X 5 = 625  Output : It is Trimorphic Number  Input : 49  Cube : 49 X 49 X 49 = 117649  Output : It is a Trimorphic Number  Input : 7  Cube : 7 X 7 X 7 = 343  Output : It is not a Trimorphic Number   Algorithm and Program given below :-

SuperPalindrome Number in JAVA

Super Palindrome Number Super Palindrome Number : A Super Palindrome Number is a Palindrome Number whose square is also Palindrome. Example: Input         : 11 Square      : 11 X 11 = 121 Output     : It is a Super Palindrome Number Input         : 22 Square      : 22 X 22 = 484 Output     : It is a Super Palindrome Number Input         : 44 Square      : 44 X 44 = 1936 Output     : It is not a Super Palindrome Number   Algorithm and Program given below :-

Tech Number in JAVA

Image
Tech Number Tech Number : A Tech Number has even number of digits. If the number is split into two equal halves. then the square of the sum of these halves is equal to the number itself. Example: Input                  : 3025 Total Digits       : 4 1 st Half              : 30 2 nd Half             : 25 Sum                   : 30 + 25 = 55 Square               : 55 X 55 = 3025 Output               : It is a Tech Number Input                ...