A228017 Numbers n divisible by the sum of any k-subset of digits of n with k >= 1.
1, 2, 3, 4, 5, 6, 7, 8, 9, 12, 24, 36, 48
Offset: 1
Examples
48 is here because 48 is divisible by 4, 8, and 4+8.
Programs
-
Mathematica
okQ[n_] := Module[{s = Total /@ Rest[Subsets[IntegerDigits[n]]]}, ! MemberQ[s, 0] && And @@ IntegerQ /@ (n/s)]; Select[Range[10000], okQ] (* T. D. Noe, Aug 14 2013 *)
Comments