OFFSET
1,2
LINKS
Harvey P. Dale, Table of n, a(n) for n = 1..1000
MATHEMATICA
Do[a=IntegerDigits[FromDigits[Sort[IntegerDigits[n]]]]; If[Mod[Apply[Plus, a], Apply[Times, a]]==0, Print[n]], {n, 5000}]
pdsdQ[n_]:=Module[{idnz=Select[IntegerDigits[n], #!=0&]}, Divisible[Total[ idnz], Times@@idnz]]; Select[Range[1200], pdsdQ] (* Harvey P. Dale, Aug 13 2015 *)
CROSSREFS
KEYWORD
easy,nonn,base
AUTHOR
Robert G. Wilson v, Jul 17 2000
STATUS
approved