World Library  
Flag as Inappropriate
Email this Article

Harshad number

Article Id: WHEBN0000641307
Reproduction Date:

Title: Harshad number  
Author: World Heritage Encyclopedia
Language: English
Subject: 400 (number), 700 (number), 500 (number), 600 (number), 300 (number)
Collection:
Publisher: World Heritage Encyclopedia
Publication
Date:
 

Harshad number

In recreational 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. 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. All integers between zero and n are n-Harshad numbers.

Contents

  • Definition 1
  • Examples 2
  • Properties 3
  • Consecutive Harshad numbers 4
    • Maximal runs of consecutive Harshad numbers 4.1
    • First runs of exactly n consecutive 10-Harshad numbers 4.2
  • Estimating the density of Harshad numbers 5
  • Nivenmorphic numbers 6
  • Multiple Harshad numbers 7
  • References 8

Definition

Stated mathematically, let X be a positive integer with m digits when written in base n, and let the digits be ai (i = 0, 1, ..., m − 1). (It follows that ai must be either zero or a positive integer up to n − 1.) X can be expressed as

X=\sum_{i=0}^{m-1} a_i n^i.

If there exists an integer A such that the following holds, then X is a Harshad number in base n:

X=A\sum_{i=0}^{m-1} a_i.

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).

Examples

  • The number 18 is a Harshad number in base 10, because the sum of the digits 1 and 8 is 9 (1+8=9), and 18 is divisible by 9 (since 18/9=2 and 2 is a whole number)
  • The number 19 is not a Harshad number in base 10, because the sum of the digits 1 and 9 is 10 (1+9=10), and 19 is not divisible by 10 (since 19/10=1.9 and 1.9 is not a whole number).

Properties

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.

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, obviously, it 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 hexadecimal the number 11 may be represented as "B", the sum of whose digits is also B and clearly B is divisible by B, ergo it is Harshad in base 16.

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.

Consecutive Harshad numbers

Maximal runs of consecutive Harshad numbers

Cooper and Kennedy proved in 1993 that no 21 consecutive integers are all Harshad numbers in base 10.[1][2] 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.[2][3] 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)[2] and for arbitrary b by Brad Wilson in 1997.[4]

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:

  • Inserting zeroes into N will not change the sequence of digital sums (just as 21, 201 and 2001 are all 10-Harshad numbers).
  • If we insert n zeroes after the first digit, α (worth αbi), we increase the value of N by αbi(bn - 1) .
  • If we can ensure that bn - 1 is divisible by all digit sums in the sequence, then the divisibility by those sums is maintained.
  • If our initial sequence is chosen so that the digit sums are coprime to b, we can solve bn = 1 modulo all those sums.
  • If that is not so, but the part of each digit sum not coprime to b divides αbi, then divisibility is still maintained.
  • (Unproven) The initial sequence is so chosen.

Thus our initial sequence yields an infinite set of solutions.

First runs of exactly n consecutive 10-Harshad numbers

The smallest naturals starting runs of exactly n consecutive 10-Harshad numbers (i.e., smallest x such that x, x+1, ..., x+n-1 are Harshad numbers but x-1 and x+n are not) are as follows (sequence A060159 in 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 n > 20.

Estimating the density of Harshad numbers

If we let N(x) denote the number of Harshad numbers ≤ x, then for any given ε > 0,

x^{1-\varepsilon} \ll N(x) \ll \frac{x\log\log x}{\log x}

as shown by Jean-Marie De Koninck and Nicolas Doyon;[5] furthermore, De Koninck, Doyon and Kátai[6] proved that

N(x)=(c+o(1))\frac{x}{\log x}

where c = (14/27) log 10 ≈ 1.1939.

Nivenmorphic numbers

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.[7]

Multiple Harshad numbers

Bloem (2005) defines a multiple Harshad number as a Harshad number that, when divided by the sum of its digits, produces another Harshad number.[8] He states that 6804 is "MHN-3" on the grounds that

\begin{array}{l} 6804/18=378\\ 378/18=21\\ 21/3=7 \end{array}

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).

References

  1. ^ Cooper, Curtis; Kennedy, Robert E. (1993), "On consecutive Niven numbers" (PDF),  
  2. ^ a b c Sándor, Jozsef; Crstici, Borislav (2004). Handbook of number theory II. Dordrecht: Kluwer Academic. p. 382.  
  3. ^  
  4. ^ Wilson, Brad (1997), -Niven numbers"n consecutive n"Construction of 2 (PDF),  
  5. ^ De Koninck, Jean-Marie; Doyon, Nicolas (November 2003), "On the number of Niven numbers up to x",  .
  6. ^ De Koninck, Jean-Marie; Doyon, Nicolas; Katái, I. (2003), "On the counting function for the Niven numbers",  .
  7. ^ Boscaro, Sandro (1996–1997), "Nivenmorphic integers",  .
  8. ^ Bloem, E. (2005), "Harshad numbers",  .
This article was sourced from Creative Commons Attribution-ShareAlike License; additional terms may apply. World Heritage Encyclopedia content is assembled from numerous content providers, Open Access Publishing, and in compliance with The Fair Access to Science and Technology Research Act (FASTR), Wikimedia Foundation, Inc., Public Library of Science, The Encyclopedia of Life, Open Book Publishers (OBP), PubMed, U.S. National Library of Medicine, National Center for Biotechnology Information, U.S. National Library of Medicine, National Institutes of Health (NIH), U.S. Department of Health & Human Services, and USA.gov, which sources content from all federal, state, local, tribal, and territorial government publication portals (.gov, .mil, .edu). Funding for USA.gov and content contributors is made possible from the U.S. Congress, E-Government Act of 2002.
 
Crowd sourced content that is contributed to World Heritage Encyclopedia is peer reviewed and edited by our editorial staff to ensure quality scholarly research articles.
 
By using this site, you agree to the Terms of Use and Privacy Policy. World Heritage Encyclopedia™ is a registered trademark of the World Public Library Association, a non-profit organization.
 


Copyright © World Library Foundation. All rights reserved. eBooks from Project Gutenberg are sponsored by the World Library Foundation,
a 501c(4) Member's Support Non-Profit Organization, and is NOT affiliated with any governmental agency or department.