Solvezi.com
Home
Tools
Blog
About
Contact
  1. Home
  2. Number Theory
  3. Harshad (Niven) Number Checker

Harshad (Niven) Number Checker

Check whether a number is divisible by the sum of its digits using this Harshad Number Checker.

Related Tools

More in Number Theory

LCM CalculatorGCF CalculatorFactor CalculatorBig Number CalculatorPrime Number CheckerPrime Factorization CalculatorCo-Prime CheckerTwin Prime CheckerPerfect Number CheckerArmstrong Number CalculatorPalindrome Number CheckerAutomorphic Number CheckerMagic Number Checker
Explore Other Categories

Share

https://www.solvezi.com/number-theory/harshad-number-checker

Solvezi.com

Solve Easy
Privacy PolicyTerms
© 2026 Solvezi.com. All rights reserved.
18 ÷ (1+8) = 2 ✓
💡1 to 10 are all Harshad numbers in base 10

What is a Harshad Number?

A Harshad number (also known as a Niven number) is an integer that is divisible by the sum of its digits.

For example, 18 is a Harshad number because 1 + 8 = 9 and 18 ÷ 9 = 2 with no remainder. The word "Harshad" comes from Sanskrit meaning "joy-giver".

The Joy-Giver Numbers

The term "Harshad" was coined by the Indian mathematician D. R. Kaprekar from Sanskrit: harṣa (joy) + da (giving).

18 ÷ (1 + 8) = 2

Sum of digits = 9Division = 2 exactly

✓ No remainder → Joy-giver!

Single Digits Rule

All numbers 1 through 9 are Harshad numbers.

1 ÷ 1 = 1 ✓
5 ÷ 5 = 1 ✓
9 ÷ 9 = 1 ✓
Every single digit works!

Taxicab Connection

1729 is both a taxicab number AND a Harshad number!

1729 = 1³ + 12³ = 9³ + 10³
1+7+2+9 = 19
1729 ÷ 19 = 91 ✓
Double magic number!

Consecutive Runs

Numbers 1-10 are all consecutive Harshad numbers!

1,2,3,4,5,6,7,8,9,10
All divisible by digit sum
Longest run of Harshads

Harshad Number Examples

Classic Harshad
18

1Digits: 1, 8

Sum = 1 + 8 = 9

2Division Check:

18 ÷ 9 = 2
Result:
Harshad ✓
Not Harshad
19

1Digits: 1, 9

Sum = 1 + 9 = 10

2Division Check:

19 ÷ 10 = 1.9
Result:
Not Harshad ✗
Large Harshad
1729

1Digits: 1, 7, 2, 9

Sum = 1 + 7 + 2 + 9 = 19

2Division Check:

1729 ÷ 19 = 91
Result:
Harshad ✓
Single Digit
7

1Digits: 7

Sum = 7 = 7

2Division Check:

7 ÷ 7 = 1
Result:
Harshad ✓

Famous Harshad Numbers

NumberDigit SumQuotientReason
111Smallest Harshad number
10110First two-digit Harshad
1892Classic example
213721 ÷ (2+1) = 7
111337111 ÷ (1+1+1) = 37
17291991Hardy-Ramanujan taxicab number

Properties of Harshad Numbers

PropertyDescriptionExample
Single DigitsAll numbers 1-9 are Harshad1,2,3,4,5,6,7,8,9
Base DependenceHarshad property depends on base10 in base 10 is Harshad
Niven NumbersAlso called Niven numbersNamed after Ivan M. Niven
Consecutive HarshadsConsecutive Harshad numbers exist1-10 are all Harshad
Infinite SequenceThere are infinitely many Harshad numbersThey become rarer but continue
Sanskrit OriginHarshad = 'joy-giver'harṣa (joy) + da (giving)

Frequently Asked Questions

Are Harshad numbers infinite?

Yes! There are infinitely many Harshad numbers in base 10. However, they become rarer as numbers get larger.

What's the difference between Harshad and Niven?

They are the same! Harshad is the Sanskrit name, while Niven numbers are named after mathematician Ivan M. Niven.

Does 0 count as a Harshad number?

Usually not, because division by zero (digit sum of 0) is undefined. Harshad numbers are typically defined for positive integers.

Who discovered Harshad numbers?

Indian mathematician D. R. Kaprekar (famous for Kaprekar's constant 6174) coined the term "Harshad" in the 20th century.

Interesting Harshad Facts

All single-digit numbers (1-9) are Harshad numbers
1729 is both a Harshad number AND a taxicab number
The longest run of consecutive Harshad numbers is from 1 to 10
Harshad numbers depend on the base (different in base 2, base 8, etc.)

Harshad Number Condition

n ÷ sum_of_digits(n) = integer

A number n is Harshad if it is divisible by the sum of its digits.

Example: 18 ÷ (1+8) = 18 ÷ 9 = 2 → Harshad ✓