m-Beautiful Numbers

m-Beautiful Numbers is a number which is divisible by m and the sum of the digits is also divisible by m. For example, 268 is a 4-Beautiful Number, but 68 and 26 are not 4-Beautiful Number.

This is a companion discussion topic for the original entry at https://toph.co/p/m-beautiful-numbers