login
This site is supported by donations to The OEIS Foundation.
Logo

Hints
(Greetings from The On-Line Encyclopedia of Integer Sequences!)
A066008 Number of n-digit positive integers m for which m/(sum of digits of m) is an integer, sometimes referred to as Niven or Harshad numbers. 3
9, 23, 180, 1325, 10334, 83556, 710667, 6148698, 54619717, 491432596, 4471325309, 40951585117 (list; graph; refs; listen; history; internal format)
OFFSET

1,1

COMMENTS

Harshad numbers were named by D. Kaprekar; the word "harshad" in Sanskrit means "giving joy."  [From Harvey P. Dale, Nov 08 2011]

LINKS

S. W. Golomb, Sums and products of digits, IEEE Information Theory Society Newsletter, 51 (No. 3, Sept. 2001), p. 15.

PROG

(ARIBAS): function a066008(a, b: integer); var n, c, m, j, k: integer; s: string; begin for n := a to b do c := 0; for m := 10^n to 10^(n+1) - 1 do s := itoa(m); k := 0; for j := 0 to length(s) - 1 do k := k + atoi(s[j..j]); end; if m mod k = 0 then inc(c); end; end; write(c, ", "); end; return; end; a066008(0, 7).

CROSSREFS

Cf. A007953, A034726, A034727.

Sequence in context: A183338 A147420 A057453 * A101058 A161431 A102217

Adjacent sequences:  A066005 A066006 A066007 * A066009 A066010 A066011

KEYWORD

nonn,base

AUTHOR

N. J. A. Sloane (njas(AT)research.att.com), Dec 11 2001

EXTENSIONS

One more term from Klaus Brockhaus (klaus-brockhaus(AT)t-online.de), Dec 12 2001

a(9)-a(12) from Donovan Johnson (donovan.johnson(AT)yahoo.com), Mar 10 2010

Definition expanded by Harvey P. Dale, Nov 08 2011

Lookup | Welcome | Wiki | Register | Music | Plot 2 | Demos | Index | Browse | More | WebCam
Contribute new seq. or comment | Format | Transforms | Puzzles | Hot | Classics
Recent Additions | More pages | Superseeker | Maintained by The OEIS Foundation Inc.

Content is available under The OEIS End-User License Agreement .

Last modified February 15 14:02 EST 2012. Contains 205811 sequences.