5*0=0
5*1=1
.
.
.
5*10=50
Example: Input Number- 6
Factors- 1,2,3,6
Example:
Input Number- 123
Reverse Number- 321
Example:
Input Number- 1221
Reverse number-1221
Input value & reverse value both are same, the 1221 is a palindrome number.
Example:
Input Number- 9
c=9^2=81
c=8+1=9
Input value & calculated value both are same, the 9 is a neon number.
Example:
Input Number- 1124
Sum=1+1+2+4
Multiply=1*1*2*4=8
Sum & multiplication value both are same, the 1124 is a spy number.
Example:
Input Number- 145
Factorial value:-
1=1
4=1*2*3*4=24
5=1*2*3*4*5=120
Sum=1+24+120=145
Input value & calculated value both are same, the 153 is a Krishnamurthy or special number.
Example:
Input Number-25
c=25^2=625
Input value & last two digit of calculated value both are same, the 25 is a automorphic number.
Example:
Input Number- 10
Output:
0
1
1
2
3
5
8
Example:
Input Number- 6
Factors- 1,2,3
Sum=1+2+3=6
Input value & calculated value both are same, the 6 is a perfect number.