Harshad NumberEdit
Harshad numbers are integers that are divisible by the sum of their digits. In the most familiar setting, base 10, a number n is a Harshad (also called a Niven) number if n is divisible by s(n), where s(n) denotes the sum of its decimal digits. The basic idea is simple: take a number, add its digits, and check whether that digit sum evenly divides the original number. For example, 18 is Harshad because 1 + 8 = 9 and 18 is divisible by 9. Likewise, 21 is Harshad since 2 + 1 = 3 and 21 is divisible by 3. The concept generalizes to other numeral systems, not just base 10.
The term Harshad originates from Sanskrit and means “joy-giver,” a naming choice that reflects a long tradition of aesthetically labeling mathematical ideas with terse, memorable terms. In other parts of the literature, these numbers are more commonly called Niven numbers, honoring the American mathematician Ivan Niven who studied their properties in depth. This dual terminology is visible in mathematical texts and encyclopedic overviews, and both names refer to the same core idea: a number being divisible by the sum of its digits in a given base. For deeper historical context, see discussions that connect the Sanskrit-derived naming to modern number theory, and discussions of Ivan Niven’s contributions to digit-sum divisibility problems. Sanskrit Ivan Niven Niven numbers Digit sum
Definition and naming
A Harshad number in base b is a positive integer n such that s_b(n) divides n, where s_b(n) is the sum of the base-b digits of n. The best-known case is base 10, where s(n) is the decimal digit sum. The simplicity of the definition makes Harshad numbers a popular object of study in recreational and theoretical number theory alike, connecting ideas about divisibility, digit sums, and base representations. For readers who want to situate the notion within the broader field, see Number theory and Divisibility.
Examples and basic facts
- Every one-digit number in base 10 (that is, 1 through 9) is Harshad, since each equals its own digit sum and therefore divides itself.
- The two-digit numbers 10, 12, 18, 20, 21, 24, 27, 30, 36, 40, and so on, are Harshad when the sum of their digits evenly divides the number itself. For instance, 27 has digit sum 2 + 7 = 9, and 27 ÷ 9 = 3.
- A simple way to generate more Harshad numbers is to append zeros to an existing Harshad number. If n is Harshad in base b, then n · b^k is Harshad for any k ≥ 1, since the digit sum s_b(n · b^k) = s_b(n) and n · b^k remains divisible by that sum. This yields infinitely many Harshad numbers in any base.
Generalizations and bases
- In bases other than 10, the same criterion applies: a number is Harshad (in base b) if it is divisible by the sum of its digits in that base. This makes Harshad numbers a concept that crosses linguistic and cultural boundaries within mathematics, linking digit-sum ideas to modular/divisibility properties across numeral systems. See discussions of base-10 and more general Base (number theory).
- The study of Harshad numbers spans both constructive aspects (how to build large families of them) and analytic questions (how often they occur). Researchers may ask how the distribution of Harshad numbers behaves as numbers grow large, what patterns appear in particular bases, or how Harshad numbers interact with other digit-based phenomena such as digital roots or repunits. See, for example, entries that connect digit sums to broader topics in Number theory.
Computational and educational context
Harshad numbers are a natural entry point for exploring divisibility, modular arithmetic, and base representations without heavy machinery. They are particularly accessible for programming exercises: computing s_b(n) and testing n mod s_b(n) is a straightforward task that scales well to large ranges. This makes Harshad numbers a common topic in mathematical outreach, classroom activities, and hobbyist programming projects. See references that discuss digit sums, base representations, and elementary divisibility criteria within the broader framework of Arithmetic and Number theory.
Controversies and debates
There are no major political or ideological controversies surrounding Harshad numbers; the subject sits squarely in pure mathematics and recreational number theory. The debates around them tend to be technical and methodological—questions about their density, precise asymptotic behavior in various bases, and conjectures about their occurrence in specific sequences or patterns. As in many areas of integer sequences, researchers may disagree on the best conjectures or the most fruitful directions for empirical computation, but these discussions are purely mathematical and not tied to broader social or political discourse.
See also