login
Numbers n such that (product of digits of n) is divisible by (sum of digits of n) and digits of n are in nondecreasing order.
2

%I #24 Jun 20 2016 10:31:43

%S 1,2,3,4,5,6,7,8,9,22,36,44,66,88,123,138,145,159,167,189,224,235,246,

%T 257,268,279,333,345,347,357,369,448,456,459,466,578,579,666,678,789,

%U 999,1124,1146,1168,1225,1233,1236,1247,1258,1269,1344,1348,1356,1368,1447

%N Numbers n such that (product of digits of n) is divisible by (sum of digits of n) and digits of n are in nondecreasing order.

%C Every number with a digit 0 is in A038367. Every permutation of every element of this is in A038367. These elements describe A038367 completely.

%C Intersection of A038367 and A009994.

%H David A. Corneth, <a href="/A274124/b274124.txt">Table of n, a(n) for n = 1..10000</a>

%o (PARI) is(n) = my(v=vecsort(digits(n))); v==digits(n) && prod(i=1,#v,v[i]) % vecsum(v)==0

%Y Cf. A038367, A009994.

%K nonn,base

%O 1,2

%A _David A. Corneth_, Jun 10 2016