Skip to main content

Posts

Showing posts with the label Harshad number

Harshad Number or Niven Number

The concept of Harshad number was given by D. R. Kaprekar, one of the great mathematicians from the country India. Harshad number or Niven number is any positive integer b that is divisible by its sum of digits (SOD). The term Niven number was coined by Ivan Morton Niven, a Canadian-American mathematician, who specializes in number theory. As per the definition: Harshad number b = number / sum of digits Below are some examples: Number 12 Sum of digits = 1 + 2 => 3 Here, number 12 is divisible by its sum of digits 3, and the resultant is 4. Number 18 Sum of digits = 1 + 8 => 9 Here, number 18 is divisible by its sum of digits 9, and the resultant is 2. Number 72 Sum of digits = 7 + 2 => 9 Here, number 72 is divisible by its sum of digits 9, and the resultant is 8. Number 110 Sum of digits = 1 + 1 + 0 => 2 Here, number 110 is divisible by its sum of digits 2, and the resultant is 55. Number 135 Sum of digits = 1 + 3 + 5 => 9 Here, number...