OFFSET
1,2
COMMENTS
Many terms, including the first nine, are in A128397; it seems that the same (and no others(?)) are in A177917. - M. F. Hasler, Oct 21 2012
LINKS
Arkadiusz Wesolowski, Table of n, a(n) for n = 1..10000
Wikipedia, Harshad number
EXAMPLE
In base 10 the number 322 is divisible by the sum of its digits, it is a Harshad number. It also has this property in octal (322 = 502(8), 5 + 0 + 2 = 7) and hexadecimal (322 = 142(16), 1 + 4 + 2 = 7), but not in binary. Therefore 322 is not a term.
MATHEMATICA
lst = {}; Do[b = 2; While[b < 17, If[! Mod[n, Total@IntegerDigits[n, b]] == 0, Break[]]; b++]; If[b == 17, AppendTo[lst, n]], {n, 2, 23040, 2}]; Prepend[lst, 1]
Select[Range[25000], Union[Divisible[#, Table[Total[IntegerDigits[#, b]], {b, 2, 16}]]]=={True}&] (* Harvey P. Dale, Jan 03 2024 *)
CROSSREFS
KEYWORD
base,nonn
AUTHOR
Arkadiusz Wesolowski, Oct 20 2012
STATUS
approved