A Harshad number or Niven number is a natural number that is divisible by its checksum , i.e. the sum of its digits (in the decimal system with base 10).
The term Harshad number was introduced by the Indian mathematician D. R. Kaprekar and is derived from the Sanskrit word harsha ("joy"), while the Niven number goes back to the mathematician Ivan M. Niven , who described these numbers at a congress in 1977.
Examples
777 is its cross sum is divisible and is thus a Harshad number: .
7th
+
7th
+
7th
=
21st
{\ displaystyle 7 + 7 + 7 = 21}
777
=
21st
⋅
37
{\ displaystyle 777 = 21 \ cdot 37}
The first Harshad numbers (in the decimal system) are:
1
,
2
,
3
,
4th
,
5
,
6th
,
7th
,
8th
,
9
,
10
,
12
,
18th
,
20th
,
21st
,
24
,
27
,
30th
,
36
,
40
,
42
,
45
,
48
,
50
,
54
,
60
,
63
,
70
,
72
,
80
,
81
,
84
,
90
,
100
,
...
{\ displaystyle 1,2,3,4,5,6,7,8,9,10,12,18,20,21,24,27,30,36,40,42,45,48,50,54 , 60,63,70,72,80,81,84,90,100, \ ldots}
(Follow A005349 in OEIS )
The smallest , making it a harshad number, are the following:
k
{\ displaystyle k}
k
⋅
n
{\ displaystyle k \ cdot n}
1
,
1
,
1
,
1
,
1
,
1
,
1
,
1
,
1
,
1
,
10
,
1
,
9
,
3
,
2
,
3
,
6th
,
1
,
6th
,
1
,
1
,
5
,
9
,
1
,
2
,
6th
,
1
,
3
,
9
,
1
,
12
,
6th
,
4th
,
3
,
2
,
1
,
3
,
3
,
3
,
1
,
10
,
1
,
12
,
3
,
...
{\ displaystyle 1,1,1,1,1,1,1,1,1,1,10,1,9,3,2,3,6,1,6,1,1,5,9,1 , 2,6,1,3,9,1,12,6,4,3,2,1,3,3,3,1,10,1,12,3, \ ldots}
(Follow A144261 in OEIS )
d. h .: are Harshad numbers
1
_
⋅
1
=
1
,
1
_
⋅
2
=
2
,
...
,
1
_
⋅
10
=
10
,
10
_
⋅
11
=
110
,
1
_
⋅
12
=
12
,
9
_
⋅
13
=
117
,
...
{\ displaystyle {\ underline {1}} \ cdot 1 = 1, {\ underline {1}} \ cdot 2 = 2, \ ldots, {\ underline {1}} \ cdot 10 = 10, {\ underline {10 }} \ cdot 11 = 110, {\ underline {1}} \ cdot 12 = 12, {\ underline {9}} \ cdot 13 = 117, \ ldots}
The smallest , so that it is not a Harshad number, are the following:
k
{\ displaystyle k}
k
⋅
n
{\ displaystyle k \ cdot n}
11
,
7th
,
5
,
4th
,
3
,
11
,
2
,
2
,
11
,
13
,
1
,
8th
,
1
,
1
,
1
,
1
,
1
,
161
,
1
,
8th
,
5
,
1
,
1
,
4th
,
1
,
1
,
7th
,
1
,
1
,
13
,
1
,
1
,
1
,
1
,
1
,
83
,
1
,
1
,
1
,
4th
,
...
{\ displaystyle 11,7,5,4,3,11,2,2,11,13,1,8,1,1,1,1,1,1,161,1,8,5,1,1,4,1 , 1,7,1,1,13,1,1,1,1,1,83,1,1,1,4, \ ldots}
(Follow A144262 in OEIS )
d. h .: No Harshad numbers
11
_
⋅
1
=
11
,
7th
_
⋅
2
=
14th
,
5
_
⋅
3
=
15th
,
4th
_
⋅
4th
=
16
,
3
_
⋅
5
=
15th
,
11
_
⋅
6th
=
66
,
...
{\ displaystyle {\ underline {11}} \ cdot 1 = 11, {\ underline {7}} \ cdot 2 = 14, {\ underline {5}} \ cdot 3 = 15, {\ underline {4}} \ cdot 4 = 16, {\ underline {3}} \ cdot 5 = 15, {\ underline {11}} \ cdot 6 = 66, \ ldots}
n-Harshad numbers
Harshad numbers are also called n-Harshad numbers (or n-Niven numbers ) if they are considered in the base n .
The first n-Harshad numbers in base 12 are (with the lack of further digits being used):
A.
=
10
,
B.
=
11
,
C.
=
12
,
...
{\ displaystyle A = 10, B = 11, C = 12, \ ldots}
1
,
2
,
3
,
4th
,
5
,
6th
,
7th
,
8th
,
9
,
A.
,
B.
,
10
,
1
A.
,
20th
,
29
,
30th
,
38
,
40
,
47
,
50
,
56
,
60
,
65
,
70
,
74
,
80
,
83
,
90
,
92
,
A.
0
,
A.
1
,
B.
0
,
100
,
{\ displaystyle 1,2,3,4,5,6,7,8,9, A, B, 10.1A, 20,29,30,38,40,47,50,56,60,65,70 , 74,80,83,90,92, A0, A1, B0,100,}
10
A.
,
110
,
115
,
119
,
120
,
122
,
128
,
130
,
134
,
137
,
146
,
150
,
153
,
155
,
164
,
172
,
173
,
182
,
191
,
1
A.
0
,
...
{\ displaystyle 10A, 110,115,119,120,122,128,130,134,137,146,150,153,155,164,172,173,182,191,1A0, \ ldots}
Example:
172
{\ displaystyle 172}
is not an n-Harshad number for base 10:
N
=
172
{\ displaystyle N = 172}
has the checksum , but it is not a factor of .
1
+
7th
+
2
=
10
{\ displaystyle 1 + 7 + 2 = 10}
10
{\ displaystyle 10}
172
{\ displaystyle 172}
172
12
{\ displaystyle 172_ {12}}
but is an n-Harshad number for base 12:
N
=
172
12
{\ displaystyle N = 172_ {12}}
is the number in the decimal system . The checksum of is (in the decimal system that is ). It is actually a divisor of (in the decimal system ).
1
_
⋅
12
2
+
7th
_
⋅
12
1
+
2
_
⋅
12
0
=
230
{\ displaystyle {\ underline {1}} \ cdot 12 ^ {2} + {\ underline {7}} \ cdot 12 ^ {1} + {\ underline {2}} \ cdot 12 ^ {0} = 230}
N
=
172
12
{\ displaystyle N = 172_ {12}}
1
+
7th
+
2
=
A.
12
{\ displaystyle 1 + 7 + 2 = A_ {12}}
10
{\ displaystyle 10}
A.
12
{\ displaystyle A_ {12}}
N
=
172
12
=
A.
12
⋅
1
B.
12
{\ displaystyle N = 172_ {12} = A_ {12} \ cdot 1B_ {12}}
230
=
10
⋅
23
{\ displaystyle 230 = 10 \ cdot 23}
The smallest , so that a base 12 harshad number is n, are the following (written in the decimal system):
k
{\ displaystyle k}
k
⋅
n
{\ displaystyle k \ cdot n}
1
,
1
,
1
,
1
,
1
,
1
,
1
,
1
,
1
,
1
,
1
,
1
,
12
,
6th
,
4th
,
3
,
10
,
2
,
11
,
3
,
4th
,
1
,
7th
,
1
,
12
,
6th
,
4th
,
3
,
11
,
2
,
11
,
3
,
1
,
5
,
9
,
1
,
12
,
11
,
4th
,
3
,
11
,
2
,
11
,
1
,
4th
,
4th
,
11
,
1
,
16
...
{\ displaystyle 1,1,1,1,1,1,1,1,1,1,1,1,12,6,4,3,10,2,11,3,4,1,7,1 , 12,6,4,3,11,2,11,3,1,5,9,1,12,11,4,3,11,2,11,1,4,4,11,1,16 \ ldots}
The smallest , so that there is no base 12 n-Harshad number, are the following (written in the decimal system):
k
{\ displaystyle k}
k
⋅
n
{\ displaystyle k \ cdot n}
13
,
7th
,
5
,
4th
,
3
,
3
,
2
,
2
,
2
,
2
,
13
,
16
,
1
,
1
,
1
,
1
,
1
,
1
,
1
,
1
,
1
,
157
,
1
,
8th
,
1
,
1
,
1
,
1
,
1
,
1
,
1
,
1
,
13
,
1
,
1
,
6th
,
1
,
1
,
1
,
1
,
1
,
1
,
1
,
157
,
1
,
1
,
1
,
4th
...
{\ displaystyle 13,7,5,4,3,3,2,2,2,2,13,16,1,1,1,1,1,1,1,1,1,1,157,1,8,1 , 1,1,1,1,1,1,1,13,1,1,6,1,1,1,1,1,1,1,157,1,1,1,4 \ ldots}
properties
The example given above with the number 777 can be generalized to all 3-digit natural numbers of the same type:
Every natural number of the form , where any digit from 1 to 9 can represent, is a Harshad number in the decimal system (so it can be divided by its checksum).
n
n
n
{\ displaystyle nnn}
n
{\ displaystyle n}
The proof results from the following consideration:
n
n
n
=
n
⋅
10
2
+
n
⋅
10
1
+
n
⋅
10
0
=
n
⋅
(
100
+
10
+
1
)
=
n
⋅
111
=
n
⋅
(
3
⋅
37
)
=
(
n
⋅
3
)
⋅
37
{\ displaystyle {\ begin {aligned} nnn & = n \ cdot 10 ^ {2} + n \ cdot 10 ^ {1} + n \ cdot 10 ^ {0} \\ & = n \ cdot (100 + 10 + 1 ) \\ & = n \ cdot 111 \\ & = n \ cdot (3 \ cdot 37) \\ & = (n \ cdot 3) \ cdot 37 \\\ end {aligned}}}
But now the sum of the digits is .
n
n
n
:
n
+
n
+
n
=
n
⋅
3
{\ displaystyle nnn \ colon ~ n + n + n = n \ cdot 3}
So every natural number of the form is 37 times its checksum, i.e. a Harshad number. q. e. d.
n
n
n
{\ displaystyle nnn}
All integers between 0 and base n are n -Harshad numbers.
There are no 21 consecutive harshad numbers in the decimal system.
In the decimal system there are an infinite number of 20 consecutive Harshad numbers. The smallest of these is larger than .
10
44363342786
{\ displaystyle 10 ^ {44363342786}}
first occurrence of n consecutive Harshad numbers
n
first occurrence of n consecutive Harshad numbers (sequence A060159 in OEIS )
1
{\ displaystyle 1}
12
{\ displaystyle 12}
2
{\ displaystyle 2}
20th
{\ displaystyle 20}
3
{\ displaystyle 3}
110
{\ displaystyle 110}
4th
{\ displaystyle 4}
510
{\ displaystyle 510}
5
{\ displaystyle 5}
131.052
{\ displaystyle 131.052}
6th
{\ displaystyle 6}
12,751,220
{\ displaystyle 12.751.220}
7th
{\ displaystyle 7}
10,000,095
{\ displaystyle 10,000,095}
8th
{\ displaystyle 8}
2.162.049.150
{\ displaystyle 2.162.049.150}
9
{\ displaystyle 9}
124.324.220
{\ displaystyle 124.324.220}
10
{\ displaystyle 10}
1
{\ displaystyle 1}
11
{\ displaystyle 11}
920.067.411.130.599
{\ displaystyle 920.067.411.130.599}
12
{\ displaystyle 12}
43,494,229,746,440,272,890
{\ displaystyle 43,494,229,746,440,272,890}
13
{\ displaystyle 13}
121.003.242.000.074.550.107.423.034
⋅
10
20th
-
10
{\ displaystyle 121.003.242.000.074.550.107.423.034 \ cdot 10 ^ {20} -10}
14th
{\ displaystyle 14}
420.142.032.871.116.091.607.294
⋅
10
40
-
4th
{\ displaystyle 420.142.032.871.116.091.607.294 \ cdot 10 ^ {40} -4}
15th
{\ displaystyle 15}
unknown
16
{\ displaystyle 16}
50,757,686,696,033,684,694,106,416,498,959,861,492
⋅
10
280
-
9
{\ displaystyle 50,757,686,696,033,684,694,106,416,498,959,861,492 \ cdot 10 ^ {280} -9}
17th
{\ displaystyle 17}
14,107,593,985,876,801,556,467,795,907,102,490,773,681
⋅
10
280
-
10
{\ displaystyle 14,107,593,985,876,801,556,467,795,907,102,490,773,681 \ cdot 10 ^ {280} -10}
18th
{\ displaystyle 18}
unknown
19th
{\ displaystyle 19}
unknown
20th
{\ displaystyle 20}
unknown
With base n there are no 2n + 1 consecutive n-Harshad numbers (generalization of the property above).
With base n there are infinitely many 2n consecutive Harshad numbers (generalization of the property above).
Let be the number of Harshad numbers and be . Then:
N
(
x
)
{\ displaystyle N (x)}
≤
x
{\ displaystyle \ leq x}
ε
>
0
{\ displaystyle \ varepsilon> 0}
x
1
-
ε
≪
N
(
x
)
≪
x
log
log
x
log
x
{\ displaystyle x ^ {1- \ varepsilon} \ ll N (x) \ ll {\ frac {x \ log \ log x} {\ log x}}}
Example:
There are exactly 11872 Harshad numbers out of 100,000. So is and . And actually applies
x
=
100,000
{\ displaystyle x = 100000}
N
(
x
)
=
11872
{\ displaystyle N (x) = 11872}
x
1
-
ε
=
100,000
1
-
ε
≪
100,000
1
-
0
,
185095
≈
N
(
x
)
=
11872
≪
21223
,
7th
≈
100,000
⋅
log
log
100,000
log
100,000
=
x
log
log
x
log
x
{\ displaystyle x ^ {1- \ varepsilon} = 100000 ^ {1- \ varepsilon} \ ll 100000 ^ {1-0.185095} \ approx N (x) = 11872 \ ll 21223.7 \ approx {\ frac { 100000 \ cdot \ log \ log 100000} {\ log 100000}} = {\ frac {x \ log \ log x} {\ log x}}}
Number of harshad numbers under a number
N
(
x
)
{\ displaystyle N (x)}
x
{\ displaystyle x}
x
{\ displaystyle x}
Harshad numbers
≤
x
{\ displaystyle \ leq x}
10
{\ displaystyle 10}
10
{\ displaystyle 10}
100
{\ displaystyle 100}
33
{\ displaystyle 33}
1000
{\ displaystyle 1000}
213
{\ displaystyle 213}
x
{\ displaystyle x}
Harshad numbers
≤
x
{\ displaystyle \ leq x}
10
4th
{\ displaystyle 10 ^ {4}}
1538
{\ displaystyle 1538}
10
5
{\ displaystyle 10 ^ {5}}
11872
{\ displaystyle 11872}
10
6th
{\ displaystyle 10 ^ {6}}
95428
{\ displaystyle 95428}
x
{\ displaystyle x}
Harshad numbers
≤
x
{\ displaystyle \ leq x}
10
7th
{\ displaystyle 10 ^ {7}}
806095
{\ displaystyle 806095}
10
8th
{\ displaystyle 10 ^ {8}}
6954793
{\ displaystyle 6954793}
10
9
{\ displaystyle 10 ^ {9}}
61574510
{\ displaystyle 61574510}
Niven morph numbers
A niven morph number (or harshadmorph number ) for a base n is an integer t such that there exists a Harshad number N whose cross sum is t , and t , written in this base n , describes the number N in this base n .
Example 1:
18th
{\ displaystyle 18}
is a niven morph number for base 10:
N
=
16218
{\ displaystyle N = 16218}
is a Harshad number (based on n = 10). The checksum of is . It is actually a factor of .
16218
{\ displaystyle 16218}
1
+
6th
+
2
+
1
+
8th
=
18th
{\ displaystyle 1 + 6 + 2 + 1 + 8 = 18}
18th
{\ displaystyle 18}
16218
=
18th
⋅
901
{\ displaystyle 16218 = 18 \ cdot 901}
Example 2:
18th
12
{\ displaystyle 18_ {12}}
is a niven morph number for base 12:
N
=
1
A.
0
12
{\ displaystyle N = 1A0_ {12}}
is a Harshad number (based on n = 12) and is the number in the decimal system . The checksum of is (in the decimal system 11). It is actually a divisor of (in the decimal system ).
1
_
⋅
12
2
+
10
_
⋅
12
1
+
0
_
⋅
12
0
=
264
{\ displaystyle {\ underline {1}} \ cdot 12 ^ {2} + {\ underline {10}} \ cdot 12 ^ {1} + {\ underline {0}} \ cdot 12 ^ {0} = 264}
N
=
1
A.
0
12
{\ displaystyle N = 1A0_ {12}}
1
+
A.
+
0
=
B.
12
{\ displaystyle 1 + A + 0 = B_ {12}}
B.
12
{\ displaystyle B_ {12}}
N
=
1
A.
0
12
=
B.
12
⋅
20th
12
{\ displaystyle N = 1A0_ {12} = B_ {12} \ cdot 20_ {12}}
264
=
11
⋅
24
{\ displaystyle 264 = 11 \ cdot 24}
The next list gives the smallest number (in the decimal system) whose cross sum is n and which is divisible by n (if there is no such number, 0 is given):
1
,
2
,
3
,
4th
,
5
,
6th
,
7th
,
8th
,
9
,
910
,
0
,
912
,
11713
,
6314
,
915
,
3616
,
15317
,
918
,
17119
,
9920
,
18921
,
9922
,
82823
,
19824
,
9925
,
46826
,
18927
,
18928
,
{\ displaystyle 1,2,3,4,5,6,7,8,9,910,0,912,11713,6314,915,3616,15317,918,17119,9920,18921,9922,82823,19824,9925,46826 , 18927,18928,}
78329
,
99930
,
585931
,
388832
,
1098933
,
198934
,
289835
,
99936
,
99937
,
478838
,
198939
,
1999840
,
2988941
,
2979942
,
2979943
,
999944
,
999945
,
{\ displaystyle 78329,99930,585931,388832,1098933,198934,289835,99936,99937,478838,198939,1999840,2988941,2979942,2979943,999944,999945,}
4698946
,
4779947
,
2998848
,
2998849
,
9999950
,
...
{\ displaystyle 4698946,4779947,2998848,2998849,9999950, \ ldots}
(Follow A187924 in OEIS )
For example has the checksum and actually is a factor of . So is a niven morph number to base 10.
289835
{\ displaystyle 289835}
2
+
8th
+
9
+
8th
+
3
+
5
=
35
{\ displaystyle 2 + 8 + 9 + 8 + 3 + 5 = 35}
35
{\ displaystyle 35}
289835
=
35
⋅
8281
{\ displaystyle 289835 = 35 \ cdot 8281}
35
{\ displaystyle 35}
Properties:
All positive integers with a base of 10 are niven morph numbers, except for the number 11.
All positive even integers with base n > 1 are niven morph numbers with base n , except for n + 1 .
All positive odd integers with base n > 1 are niven morph numbers with base n .
Multiple Harshad numbers
A multiple harshad number is a harshad number which, divided by its checksum, results in another (different) harshad number.
Example 1
is a multiple Harshad number, because , , and also Harshad numbers are. This number is also known as MHN-4 , so you can make four (different) more Harshad numbers out of it.
6804
{\ displaystyle 6804}
6804
/
18th
=
378
{\ displaystyle 6804/18 = 378}
378
/
18th
=
21st
{\ displaystyle 378/18 = 21}
21st
/
3
=
7th
{\ displaystyle 21/3 = 7}
7th
/
7th
=
1
{\ displaystyle 7/7 = 1}
6804
{\ displaystyle 6804}
Example 2:
is an MHN-12 , so you can find 12 different other Harshad numbers by dividing with their respective checksums (the first checksum is ).
2016502858579884466176
{\ displaystyle 2016502858579884466176}
108
{\ displaystyle 108}
Example 3:
is another, smaller MHN-12 .
10080000000000
=
1008
⋅
10
10
{\ displaystyle 10080000000000 = 1008 \ cdot 10 ^ {10}}
Example 4:
is an MHN- (n + 2) .
1008
⋅
10
n
{\ displaystyle 1008 \ cdot 10 ^ {n}}
See also
literature
Curtis Cooper, Robert E. Kennedy: On consecutive Niven numbers . In: Fibonacci Quarterly , 31, 2, 1993, pp. 146-151
Helen G. Grundmann: Sequences of Consecutive Niven Numbers . In: Fibonacci Quarterly , 32, 2, (1994), 174-175
Brad Wilson: Construction of 2n consecutive n-Niven numbers . In: Fibonacci Quarterly , 35, 1997, pp. 122-128
Jean-Marie DeKoninck, Nicolas Doyon: On the number of Niven numbers up to x . In: Fibonacci Quarterly , 41, 5, November 2003, pp. 431-440
Jean-Marie DeKoninck, Nicolas Doyon, I. Katái: On the counting function for the Niven numbers . In: Acta Arithmetica , 106, 2003, pp. 265-275
Sandro Boscaro: Nivenmorphic Integers . In: Journal of Recreational Mathematics , 28, 3, 1996-1997, pp. 201-205
E. Bloem: Harshad numbers . In: Journal of Recreational Mathematics , 34, 2, 2005, p. 128
Web links
Eric W. Weisstein : Harshad Number . In: MathWorld (English).
József Sándor , Borislav Crstici: Handbook of Number Theory II. (PDF) Springer-Verlag, pp. 381–383 , accessed on May 27, 2018 (English).
Curtis Cooper, Robert E. Kennedy: On consecutive Niven numbers. (PDF) Fibonacci Quarterly , pp. 146–151 , accessed on May 28, 2018 (English).
Helen G. Grundman: Sequences of consecutive n -niven numbers. (PDF) Fibonacci Quarterly, pp. 174–175 , accessed on May 28, 2018 (English).
Brad Wilson: Construction of 2 n consecutive n -niven numbers. (PDF) Fibonacci Quarterly, pp. 122–128 , accessed on May 28, 2018 (English).
Jean-Marie DeKoninck, Nicolas Doyon: On the number of Niven numbers up to x. (PDF) Fibonacci Quarterly, pp. 431–440 , accessed on May 30, 2018 (English).
Individual evidence
↑ József Sándor , Borislav Crstici: Handbook of Number Theory II. (PDF) (No longer available online.) Springer-Verlag, pp. 381 and 451 , formerly in the original ; accessed on May 27, 2018 (English). ( Page no longer available , search in web archives ) Info: The link was automatically marked as defective. Please check the link according to the instructions and then remove this notice. @1 @ 2 Template: Dead Link / nozdr.ru
^ Curtis Cooper, Robert E. Kennedy: On consecutive Niven numbers. (PDF) In: Fibonacci Quarterly . Pp. 146–151 , accessed on May 28, 2018 (English).
↑ a b c József Sándor , Borislav Crstici: Handbook of Number Theory II. (PDF) (No longer available online.) Springer-Verlag, p. 382 , formerly in the original ; accessed on May 28, 2018 (English). ( Page no longer available , search in web archives ) Info: The link was automatically marked as defective. Please check the link according to the instructions and then remove this notice. @1 @ 2 Template: Dead Link / nozdr.ru
^ Curtis Cooper, Robert E. Kennedy: On consecutive Niven numbers. (PDF) In: Fibonacci Quarterly . P. 148 , accessed on May 28, 2018 (English).
↑ primepuzzles.net: Problems & Puzzles: Puzzle 129. Retrieved May 30, 2018 (English).
↑ a b Helen G. Grundman: Sequences of consecutive n -niven numbers. (PDF) In: Fibonacci Quarterly . Pp. 174–175 , accessed on May 28, 2018 (English).
^ Brad Wilson: Construction of 2 n consecutive n -niven numbers. (PDF) In: Fibonacci Quarterly . Pp. 122–128 , accessed on May 28, 2018 (English).
^ A b Jean-Marie DeKoninck, Nicolas Doyon: On the number of Niven numbers up to x. (PDF) In: Fibonacci Quarterly . Pp. 431–440 , accessed May 30, 2018 (English).
↑ Sandro Boscaro: Nivenmorphic integers . In: Journal of Recreational Mathematics . tape 28 , no. 3 , 1996, p. 201-205 .
↑ E. Bloem: Harshad numbers . In: Journal of Recreational Mathematics . tape 34 , no. 2 , 2005, p. 128 .
<img src="https://de.wikipedia.org//de.wikipedia.org/wiki/Special:CentralAutoLogin/start?type=1x1" alt="" title="" width="1" height="1" style="border: none; position: absolute;">