To install click the Add extension button. That's it.

The source code for the WIKI 2 extension is being checked by specialists of the Mozilla Foundation, Google, and Apple. You could also do it yourself at any point in time.

4,5
Kelly Slayton
Congratulations on this excellent venture… what a great idea!
Alexander Grigorievskiy
I use WIKI 2 every day and almost forgot how the original Wikipedia looks like.
What we do. Every page goes through several hundred of perfecting techniques; in live mode. Quite the same Wikipedia. Just better.
.
Leo
Newton
Brights
Milds

Harshad number

From Wikipedia, the free encyclopedia

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.

YouTube Encyclopedic

  • 1/5
    Views:
    906 885
    136 478
    256 769
    9 915
    538
  • 42 and Douglas Adams - Numberphile
  • Simon Singh: "The Simpsons and Their Mathematical Secrets" | Talks at Google
  • Function of Mathematics by Hansa Soni Tomar (HST) Mam.
  • 1729 (number)
  • The Number 153 : more here: http://goo.gl/9aKzQ

Transcription

JAMES GRIME: OK, so 42 is maybe not such a special number in mathematics, but a very special number in nerd culture. PHIL MORIARTY: Good. Good, good, good. Did you want to do something with 42? JAMES GRIME: Yes. So you take a piece of paper. It's very thin. Let's fold this in half. Fold it in half again. Fold it in half again. Imagine you can keep doing this, and in reality you can't keep doing this. But imagine you can keep folding it in half, and each time you do, it will double in thickness. And if you fold it 42 times, that's enough to reach from the Earth to the moon. You notice when 42 turns up, you keep noticing it. But that's not really all that remarkable, since any two digit number will turn up one hundredth of the time. GERARDO ADESSO: Today we're in my office, and we are talking about numbers. And when I was asked about thinking about the number, I just realized that there is a number that I see every day when I enter my office, and this number is 42. Because we are in this office, B42. JAMES GRIME: 42 is maybe not such a special number in mathematics, but a very special number in nerd culture. 42 is the answer to life, the universe, and everything. GERARDO ADESSO: If you'll now go on Google, the answer to life, the universe, and everything. So Google calculator gives you as an answer, 42. PHIL MORIARTY: 42 is the answer to life, the universe, and everything. I am a huge, huge, huge Douglas Adams fan. My favorite book is The Hitch Hiker's Guide To The Galaxy. All my favorite books are the trilogy of five books that makes up Douglas Adams' work in terms of a character called Arthur Dent. JAMES GRIME: The author Douglas Adams, a great comedy writer, wrote first a radio series called the Hitch Hiker's Guide To The Galaxy. In the show they built a super computer, a giant super computer to work out the meaning of life, the universe, and everything. And after millions of years, it decided that the meaning of life, the universe, and everything was 42. PHIL MORIARTY: At which point the people who programmed the computer and built the computer were rather disappointed, but the computer quite rightly said, well, what's the question? And they said it's the ultimate question. The ultimate question of life, the universe, and everything. But what's the question? Which is, I think is a completely valid thing. So then the idea was to build a supercomputer which would calculate the ultimate question. And the supercomputer was Earth, and we formed part-- or humans formed part of that organic framework. JAMES GRIME: You've ruined the ending! PHIL MORIARTY: Oh, yeah, if you really haven't listened to, or watched, or read the Hitch Hiker's Guide To The Galaxy books, you haven't lived. So go out and get them now. JAMES GRIME: A perhaps slightly embarrassing confession is that I used to be involved with the Hitch Hiker's Guide To The Galaxy fan club. And I use to help run it, briefly. Just a few years ago when the film came out, I remember it was quite an exciting time. I don't see them anymore. It's a shame, but I know more things about 42 than I really ought to. GERARDO ADESSO: This number, 42, is said to be a pronic number. JAMES GRIME: A what, sorry? GERARDO ADESSO: A pronic number. JAMES GRIME: What does that mean? GERARDO ADESSO: I can write it for you. So a pronic number is a number which is obtained as the multiplication of two successive integers. So for instance, in the case of 42, 42 is equal to 6 times 7. These are one after the other, and any number which is like this is called pronic. For instance, 2 times 3, 3 times 4, and so on. JAMES GRIME: Douglas Adams, I think chose this number because it kind of has a funny sound. 40, all those O's, 42, it's a funny sound. PHIL MORIARTY: Again, if you go on the web, and if you read some of the articles about 42, there are arguments ranging from, well actually it's 101010 in binary, which is a nice binary number. And in fact, in the television program that flashes up. When they say 42, you see the binary. JAMES GRIME: You'll find 42 comes up a lot in comedy and other shows, partly because of Douglas Adams and because he used it, but partly because it's just a funny sound. GERARDO ADESSO: Then there is another interesting property, which is slightly more complicated about this number. And it is the fact that it's defined to be a primary pseudoperfect number. JAMES GRIME: A what? GERARDO ADESSO: A primary pseudoperfect number. JAMES GRIME: Go on, what does that mean? GERARDO ADESSO: OK, so first of all, you have to find out what are the prime factors of 42. OK, so write down 42 as 2 times 3, which is 6 times 7. So these are its prime factors. Primary to the perfect number is such that the sum of the inverse of each prime factor plus the sum of the inverse of the number itself is 1. 1 over 2 plus 1 over 3 plus 1 over 7, and these are the sum of the inverses of each prime factor. Then plus 1 over the number itself. If you work out this calculation, you can put everything under the common denominator. The result is one. There are not so many numbers that have this property. The next one after 42 is, I think 1,806. And then you immediately go to very huge numbers. So it appears like any [INAUDIBLE] property, but it's not. JAMES GRIME: The story is he sat-- he wrote it in his garden, he sat in his back garden. He thought, what number should I choose? It should be a sort of smallish number. It should be a sort of boring number. 42 will do, and he picked 42. PHIL MORIARTY: There's also arguments that 6 times 9, if you look at that problem in base 13, out pops the number 42. All these mad, mad things that Douglas Adams himself said were absolutely bonkers. He said he chose 42 because it's a funny number. He thought it was a funny number. GERARDO ADESSO: And then there is another, for instance another one which 42 belongs to. It's the sequence of harshad numbers. Harshad is written like this. So what is a harshad number? It's a number that is divisible by the sum of its digits. So you have 42, take 4 plus 2. This is 6. And 42 is divisible by 6. So any number with this property is called harshad number. JAMES GRIME: Do you think it's a funny number? PHIL MORIARTY: Oh, I don't know. If it's an interesting one. Would I have gone for 42? I don't know. What number is funnier than 42? 71? I don't know. 68? GERARDO ADESSO: If you're very bright in mathematics, and you participate in the International Olympiads of Mathematics, and the total mark to achieve the perfect score is set at 42. JAMES GRIME: Is that a coincidence, or do you think someone did that on purpose? GERARDO ADESSO: Well, this I don't know. We need to ask the people who are involved in these committees. But before Douglas Adams, that was already quite a lot of attention on this number from works by Lewis Carroll. And you know, mathematicians, they are known to have a particular taste for recurrences and nerdiness, so to say. So it may be that this was chosen on purpose. But I don't know. JAMES GRIME: In the fan club magazine, they would have a column all about where people have seen the number 42 recently. And it was a bit of fun, except for one guy. He took it quite seriously. He actually thought there was a mystical meaning behind the number 42. Genuinely thought there was. And he used to go through the phone book and look for multiples of 42 in peoples' phone numbers. He used to find a multiple of 6, find a multiple of 7, multiply them together and go oh, look. It's a multiple of 42. How amazing. It really isn't that remarkable if you look for things like that. PHIL MORIARTY: Soon as I see it, there's an instant resonance there when I see 42. And in fact, one of the experiments I want to do, we're working with taking a silicon surface. Surface like this, where we put hydrogen atoms on it. And then we take a tip of a scanning probe microscope and remove the hydrogen atoms one at a time. And one thing I really want to do is put 42 on a surface in atoms. JAMES GRIME: Fox Mulder's apartment in the X-Files was apartment 42, which may be a reference to Hitch Hiker.

Definition

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.

Examples

  • The number 18 is a harshad number in base 10, because the sum of the digits 1 and 8 is 9, and 18 is divisible by 9.
  • The Hardy–Ramanujan number (1729) is a harshad number in base 10, since it is divisible by 19, the sum of its digits (1729 = 19 × 91).
  • The number 19 is not a harshad number in base 10, because the sum of the digits 1 and 9 is 10, and 19 is not divisible by 10.
  • In base 10, every natural number expressible in the form 9Rnan, where the number Rn consists of n copies of the single digit 1, n > 0, and an is a positive integer less than 10n and multiple of n, is a harshad number. (R. D’Amico, 2019). The number 9R3a3 = 521478, where R3 = 111, n = 3 and a3 = 3×174 = 522, is a harshad number; in fact, we have: 521478/(5+2+1+4+7+8) = 521478/27 = 19314.[2]
  • Harshad numbers in base 10 form the sequence:
    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, 102, 108, 110, 111, 112, 114, 117, 120, 126, 132, 133, 135, 140, 144, 150, 152, 153, 156, 162, 171, 180, 190, 192, 195, 198, 200, ... (sequence A005349 in the OEIS).
  • All integers between zero and n are n-harshad numbers.

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.

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 “Ɛ”, the sum of whose digits is also Ɛ. Since Ɛ 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

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, 1, 5, 9, 1, 8, 1, 2, 3, 18, 1, 2, 2, 2, 9, 9, 1, 12, 6, 1, 3, 3, 2, 3, 3, 3, 1, 18, 1, 7, 3, 2, 2, 4, 2, 9, 1, ... (sequence A144261 in the OEIS).

The smallest k such that is not a harshad number are

11, 7, 5, 4, 3, 11, 2, 2, 11, 13, 1, 8, 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, 1, 4, 1, 1, 11, 1, 1, 2, 1, 5, 1, 1, 1, 537, 1, 1, 1, 1, 1, 83, 1, 1, 3, 1, 1, 1, 1, 1, 1, 5, 1, 68, 1, 1, 1, 1, 1, 1, 1, 2, ... (sequence A144262 in the OEIS).

Other bases

The harshad numbers in base 12 are:

1, 2, 3, 4, 5, 6, 7, 8, 9, ᘔ, Ɛ, 10, 1ᘔ, 20, 29, 30, 38, 40, 47, 50, 56, 60, 65, 70, 74, 80, 83, 90, 92, ᘔ0, ᘔ1, Ɛ0, 100, 10ᘔ, 110, 115, 119, 120, 122, 128, 130, 134, 137, 146, 150, 153, 155, 164, 172, 173, 182, 191, 1ᘔ0, 1Ɛ0, 1Ɛᘔ, 200, ...

where ᘔ represents ten and Ɛ represents eleven.

Smallest k such that is a base-12 harshad number are (written in base 10):

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, 6, 4, 3, 11, 2, 1, 3, 11, 11, 11, 1, 12, 11, 5, 7, 9, 1, 7, 3, 3, 9, 11, 1, ...

Smallest k such that is not a base-12 harshad number are (written in base 10):

13, 7, 5, 4, 3, 3, 2, 2, 2, 2, 13, 16, 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, 1, 1, 1, 1, 1, 1, 5, 1, 1, 1, 1, 4, 1, 1, 1, 1, 1, 1885, 1, 1, 1, 1, 1, 3, ...

Similar to base 10, not all factorials are harshad numbers in base 12. After 7! (= 5040 = 2Ɛ00 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!)

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.[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·bkb 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., 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

Estimating the density of harshad numbers

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.

Sums of harshad numbers

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:

0, 1, 1, 2, 2, 3, 3, 4, 4, 5, 5, 5, 5, 5, 4, 4, 3, 3, 3, 3, 3, 4, 3, 4, 4, 4, 4, 5, 4, 5, 4, 4, 4, 3, 2, 4, 3, 3, 4, 3, 3, 5, 3, 4, 5, 4, 4, 7, 4, 5, 6, 5, 3, 7, 4, 4, 6, 4, 2, 7, 3, 4, 5, 4, 3, 7, 3, 4, 5, 4, 3, 8, 3, 4, 6, 3, 3, 6, 2, 5, 6, 5, 3, 8, 4, 4, 6, ... (sequence A337853 in the OEIS).

The smallest number that can be written in exactly 1, 2, 3, ... ways as the sum of two harshad numbers is:

2, 4, 6, 8, 10, 51, 48, 72, 108, 126, 90, 138, 144, 120, 198, 162, 210, 216, 315, 240, 234, 306, 252, 372, 270, 546, 360, 342, 444, 414, 468, 420, 642, 450, 522, 540, 924, 612, 600, 666, 630, 888, 930, 756, 840, 882, 936, 972, 1098, 1215, 1026, 1212, 1080, ... (sequence A337854 in the OEIS).

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.[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 OEISA011760 (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)

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, 4698946, 4779947, 2998848, 2998849, 9999950, ... (sequence A187924 in the OEIS)

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

References

  1. ^ D. R. Kaprekar, Multidigital Numbers, Scripta Mathematica 21 (1955), 27.
  2. ^ Rosario D'Amico, A method to generate Harshad numbers, in Journal of Mathematical Economics and Finance, vol. 5, n. 1, giugno 2019, p. 19-26.
  3. ^ Cooper, Curtis; Kennedy, Robert E. (1993), "On consecutive Niven numbers" (PDF), Fibonacci Quarterly, 31 (2): 146–151, ISSN 0015-0517, Zbl 0776.11003
  4. ^ a b c Sándor, Jozsef; Crstici, Borislav (2004). Handbook of number theory II. Dordrecht: Kluwer Academic. p. 382. ISBN 1-4020-2546-7. Zbl 1079.11001.
  5. ^ Grundman, H. G. (1994), "Sequences of consecutive n-Niven numbers" (PDF), Fibonacci Quarterly, 32 (2): 174–175, ISSN 0015-0517, Zbl 0796.11002
  6. ^ Wilson, Brad (1997), "Construction of 2n consecutive n-Niven numbers" (PDF), Fibonacci Quarterly, 35: 122–128, ISSN 0015-0517
  7. ^ De Koninck, Jean-Marie; Doyon, Nicolas (November 2003), "On the number of Niven numbers up to x", Fibonacci Quarterly, 41 (5): 431–440.
  8. ^ De Koninck, Jean-Marie; Doyon, Nicolas; Kátai, I. (2003), "On the counting function for the Niven numbers", Acta Arithmetica, 106 (3): 265–275, Bibcode:2003AcAri.106..265D, doi:10.4064/aa106-3-5.
  9. ^ Sanna, Carlo (March 2021), "Additive bases and Niven numbers", Bulletin of the Australian Mathematical Society, 104 (3): 373–380, arXiv:2101.07593, doi:10.1017/S0004972721000186, S2CID 231639019.
  10. ^ Boscaro, Sandro (1996–1997), "Nivenmorphic integers", Journal of Recreational Mathematics, 28 (3): 201–205.
  11. ^ Bloem, E. (2005), "Harshad numbers", Journal of Recreational Mathematics, 34 (2): 128.

External links

Weisstein, Eric W. "Harshad Number". MathWorld.

This page was last edited on 15 January 2024, at 16:19
Basis of this page is in Wikipedia. Text is available under the CC BY-SA 3.0 Unported License. Non-text media are available under their specified licenses. Wikipedia® is a registered trademark of the Wikimedia Foundation, Inc. WIKI 2 is an independent company and has no affiliation with Wikimedia Foundation.