OFFSET
1,1
LINKS
Robert Israel, Table of n, a(n) for n = 1..10000
MAPLE
filter:= proc(n) local s, t;
s:= convert(convert(n, base, 10), `+`);
t:= n mod s;
(t <> 0) and (n mod t = 0)
end proc:
select(filter, [$1..200]); # Robert Israel, Jul 19 2023
MATHEMATICA
Select[ Range[200], Mod[ #, Plus @@ IntegerDigits[ # ]] != 0 && IntegerQ[ # / Mod[ #, Plus @@ IntegerDigits[ # ]]] &]
Select[Range[200], Divisible[#, Mod[#, Total[IntegerDigits[#]]]]&]//Quiet (* Harvey P. Dale, May 07 2017 *)
CROSSREFS
KEYWORD
nonn,base
AUTHOR
Reinhard Zumkeller, Jun 26 2003
STATUS
approved