OFFSET
1,2
COMMENTS
The first 10 odd terms greater than 1 are a(1151) = 543375, 5329233, 18640125, 19178775, 23186625, 30131535, 35026425, 36797775, 46101825, 51856875. - Giovanni Resta, Jun 01 2013
LINKS
Amiram Eldar, Table of n, a(n) for n = 1..10000
EXAMPLE
Example: 336 is in the sequence because the sum of digits of 336 when expressed in bases 1 through 10 is: 336, 3, 4, 3, 8, 6, 12, 7, 8, 12; and 336 is divisible by all these numbers. In this particular example 336 keeps this property in bases 11, 12 and 13, but not 14.
MATHEMATICA
Select[Range[10^4], Catch[Do[If[Mod[#, Total@IntegerDigits[#, b]] > 0, Throw@ False], {b, 2, 10}]; True] &] (* Giovanni Resta, May 29 2013 *)
t = Table[b = 2; While[s = Total[IntegerDigits[n, b]]; s < n && Mod[n, s] == 0, b++]; If[s == n, b = 0]; b, {n, 2000}]; Flatten[Position[t, _?(# == 0 || # > 10 &)]] (* T. D. Noe, May 30 2013 *)
CROSSREFS
KEYWORD
nonn,base,easy
AUTHOR
Sergio Pimentel, May 29 2013
EXTENSIONS
Missing a(17) and a(35)-a(49) from Giovanni Resta, May 29 2013
STATUS
approved