This article needs additional citations for verification .(July 2019) |
In mathematics, a harshad number (or Niven number) in a given number base is an integer that is divisible by the sum of its digits when written in that base. Harshad numbers in base n are also known as n-harshad (or n-Niven) numbers. Harshad numbers were defined by D. R. Kaprekar, a mathematician from India. [1] The word "harshad" comes from the Sanskrit harṣa (joy) + da (give), meaning joy-giver. The term "Niven number" arose from a paper delivered by Ivan M. Niven at a conference on number theory in 1977.
Stated mathematically, let X be a positive integer with m digits when written in base n, and let the digits be (). (It follows that must be either zero or a positive integer up to .) X can be expressed as
X is a harshad number in base n if:
A number which is a harshad number in every number base is called an all-harshad number, or an all-Niven number. There are only four all-harshad numbers: 1, 2, 4, and 6. The number 12 is a harshad number in all bases except octal.
Given the divisibility test for 9, one might be tempted to generalize that all numbers divisible by 9 are also harshad numbers. But for the purpose of determining the harshadness of n, the digits of n can only be added up once and n must be divisible by that sum; otherwise, it is not a harshad number. For example, 99 is not a harshad number, since 9 + 9 = 18, and 99 is not divisible by 18.
The base number (and furthermore, its powers) will always be a harshad number in its own base, since it will be represented as "10" and 1 + 0 = 1.
All numbers whose base b digit sum divides b−1 are harshad numbers in base b.
For a prime number to also be a harshad number it must be less than or equal to the base number, otherwise the digits of the prime will add up to a number that is more than 1, but less than the prime, and will not be divisible. For example: 11 is not harshad in base 10 because the sum of its digits “11” is 1 + 1 = 2, and 11 is not divisible by 2; while in base 12 the number 11 may be represented as “B”, the sum of whose digits is also B. Since B is divisible by itself, it is harshad in base 12.
Although the sequence of factorials starts with harshad numbers in base 10, not all factorials are harshad numbers. 432! is the first that is not. (432! has digit sum 3897 = 32 × 433 in base 10, thus not dividing 432!)
The smallest k such that is a harshad number are
The smallest k such that is not a harshad number are
The harshad numbers in base 12 are:
where A represents ten and B represents eleven.
Smallest k such that is a base-12 harshad number are (written in base 10):
Smallest k such that is not a base-12 harshad number are (written in base 10):
Similar to base 10, not all factorials are harshad numbers in base 12. After 7! (= 5040 = 2B00 in base 12, with digit sum 13 in base 12, and 13 does not divide 7!), 1276! is the next that is not. (1276! has digit sum 14201 = 11 × 1291 in base 12, thus does not divide 1276!)
Cooper and Kennedy proved in 1993 that no 21 consecutive integers are all harshad numbers in base 10. [3] [4] They also constructed infinitely many 20-tuples of consecutive integers that are all 10-harshad numbers, the smallest of which exceeds 1044363342786.
H. G.Grundman ( 1994 ) extended the Cooper and Kennedy result to show that there are 2b but not 2b + 1 consecutive b-harshad numbers for any base b. [4] [5] This result was strengthened to show that there are infinitely many runs of 2b consecutive b-harshad numbers for b = 2 or 3 by T.Cai ( 1996 ) [4] and for arbitrary b by Brad Wilson in 1997. [6]
In binary, there are thus infinitely many runs of four consecutive harshad numbers and in ternary infinitely many runs of six.
In general, such maximal sequences run from N·bk − b to N·bk + (b − 1), where b is the base, k is a relatively large power, and N is a constant. Given one such suitably chosen sequence, we can convert it to a larger one as follows:
Thus our initial sequence yields an infinite set of solutions.
The smallest naturals starting runs of exactlyn consecutive 10-harshad numbers (i.e., the smallest x such that are harshad numbers but and are not) are as follows (sequence A060159 in the OEIS ):
n | 1 | 2 | 3 | 4 | 5 |
x | 12 | 20 | 110 | 510 | 131052 |
n | 6 | 7 | 8 | 9 | 10 |
x | 12751220 | 10000095 | 2162049150 | 124324220 | 1 |
n | 11 | 12 | 13 | 14 | 15 |
x | 920067411130599 | 43494229746440272890 | 121003242000074550107423034×1020 − 10 | 420142032871116091607294×1040 − 4 | unknown |
n | 16 | 17 | 18 | 19 | 20 |
x | 50757686696033684694106416498959861492×10280 − 9 | 14107593985876801556467795907102490773681×10280 − 10 | unknown | unknown | unknown |
By the previous section, no such x exists for
If we let denote the number of harshad numbers , then for any given
as shown by Jean-Marie De Koninck and Nicolas Doyon; [7] furthermore, De Koninck, Doyon and Kátai [8] proved that
where and the term uses Big O notation.
Every natural number not exceeding one billion is either a harshad number or the sum of two harshad numbers. Conditional to a technical hypothesis on the zeros of certain Dedekind zeta functions, Sanna proved that there exists a positive integer such that every natural number is the sum of at most harshad numbers, that is, the set of harshad numbers is an additive basis. [9]
The number of ways that each natural number 1, 2, 3, ... can be written as sum of two harshad numbers is:
The smallest number that can be written in exactly 1, 2, 3, ... ways as the sum of two harshad numbers is:
A Nivenmorphic number or harshadmorphic number for a given number base is an integer t such that there exists some harshad number N whose digit sum is t, and t, written in that base, terminates N written in the same base.
For example, 18 is a Nivenmorphic number for base 10:
16218 is a harshad number 16218 has 18 as digit sum 18 terminates 16218
Sandro Boscaro determined that for base 10 all positive integers are Nivenmorphic numbers except 11. [10] In fact, for an even integer n > 1, all positive integers except n+1 are Nivenmorphic numbers for base n, and for an odd integer n > 1, all positive integers are Nivenmorphic numbers for base n. e.g. the Nivenmorphic numbers in base 12 are OEIS: A011760 (all positive integers except 13).
The smallest number with base 10 digit sum n and terminates n written in base 10 are: (0 if no such number exists)
Bloem (2005) defines a multiple harshad number as a harshad number that, when divided by the sum of its digits, produces another harshad number. [11] He states that 6804 is "MHN-4" on the grounds that
(it is not MHN-5 since , but 1 is not "another" harshad number)
and went on to show that 2016502858579884466176 is MHN-12. The number 10080000000000 = 1008 × 1010, which is smaller, is also MHN-12. In general, 1008 × 10n is MHN-(n+2).
19 (nineteen) is the natural number following 18 and preceding 20. It is a prime number.
21 (twenty-one) is the natural number following 20 and preceding 22.
In recreational mathematics, a repunit is a number like 11, 111, or 1111 that contains only the digit 1 — a more specific type of repdigit. The term stands for "repeated unit" and was coined in 1966 by Albert H. Beiler in his book Recreations in the Theory of Numbers.
27 is the natural number following 26 and preceding 28.
72 (seventy-two) is the natural number following 71 and preceding 73. It is half a gross or six dozen.
73 (seventy-three) is the natural number following 72 and preceding 74. In English, it is the smallest natural number with twelve letters in its spelled out name.
36 (thirty-six) is the natural number following 35 and preceding 37.
37 (thirty-seven) is the natural number following 36 and preceding 38.
114 is the natural number following 113 and preceding 115.
1000 or one thousand is the natural number following 999 and preceding 1001. In most English-speaking countries, it can be written with or without a comma or sometimes a period separating the thousands digit: 1,000.
300 is the natural number following 299 and preceding 301.
360 is the natural number following 359 and preceding 361.
400 is the natural number following 399 and preceding 401.
500 is the natural number following 499 and preceding 501.
700 is the natural number following 699 and preceding 701.
It is:
135 is the natural number following 134 and preceding 136.
1,000,000,000 is the natural number following 999,999,999 and preceding 1,000,000,001. With a number, "billion" can be abbreviated as b, bil or bn.
In mathematics, the digit sum of a natural number in a given number base is the sum of all its digits. For example, the digit sum of the decimal number would be
In mathematics, a pandigital number is an integer that in a given base has among its significant digits each digit used in the base at least once. For example, 1234567890 is a pandigital number in base 10.