Harshad number In Python
Harshad Number is an integer that is divisible by the sum of its digits.
Program:
Enter Number1729
Harshad Number
Enter Number1930
Not Harshad Number
Harshad Number is an integer that is divisible by the sum of its digits.
An automorphic number is a number whose square ends in the same digits as the
original number itself. Examples: 5, 76, etc.
An automorphic number is a number whose square ends in the same digits as the
original number itself. Examples: 5, 76, etc.
For example,6 and 28 are Friendly Pair.
(Sum of divisors of 6)/6 = (Sum of divisors of 28)/28.
Program to check whether a given number is a perfect number or not is discussed here. A perfect number is a number which is equal to the sum of its proper positive divisors.
For example, 6 is a perfect number.
The divisors of 6 are 1, 2 and 3.
1 + 2 + 3 = 6.