nonHarshad
A nonHarshad number in base 10 is a positive integer that is not divisible by the sum of its decimal digits. The sum of digits function, denoted s(n), is the sum of the digits of n in base 10. Numbers that are divisible by s(n) are called Harshad numbers (also known as Niven numbers); nonHarshad numbers are therefore the complement of Harshad numbers among positive integers.
Examples illustrate the distinction. The number 11 has digit sum s(11) = 2, and 11 mod 2 =
A notable property is that there are infinitely many nonHarshad numbers. In particular, every prime number
In practice, nonHarshad is used to describe numbers not divisible by the sum of their digits in