A381631 Numbers k such that the product of k and its digits is divisible by the sum of its digits.
1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 12, 18, 20, 21, 22, 24, 26, 27, 30, 36, 40, 42, 44, 45, 48, 50, 54, 60, 62, 63, 66, 70, 72, 80, 81, 84, 88, 90, 100, 101, 102, 103, 104, 105, 106, 107, 108, 109, 110, 111, 112, 114, 116, 117, 120, 123, 126, 130, 132, 133, 134, 135, 138, 140
Offset: 1
Examples
36 is a term because 36*3*6 is divisible by 3+6. 140 is a term because 140*1*4*0 equals 0, which is trivially divisible by 1+4+0.
Programs
-
Mathematica
q[k_] := Module[{d = IntegerDigits[k]}, Divisible[k * Times @@ d, Plus @@ d]]; Select[Range[140], q] (* Amiram Eldar, Mar 03 2025 *)
-
PARI
isok(k) = my(d=digits(k)); !((k*vecprod(d)) % vecsum(d)); \\ Michel Marcus, Mar 03 2025
Comments