Problem #50
Divisibility
Find the base of a counting system, like decimal(10), binary(2) etc., less than 1000000 in which maximum numbers follow the following property:
"If x is divisible by y, sum of digits in x will also be divisible by y."
In case there is more than 1 possible answer, then concatenate the possible answers in ascending order without any spaces in between. For example if the answers are 3, 21 and 54 then your answer should be 32154.