Browse · MathNet
PrintMMO2025 Round 4
Mongolia 2025 number theory
Problem
Find the least number of digits in the multiple of such that the number of different digits in it is exactly two.
Solution
Answer: 4050 Put and . Let be a multiple of such that the number of different digits in is at most two. Then we can assume that and clearly since . Suppose that , and consider and . Since and we have . Moreover, is a multiple of and so , or equivalently, If then since and . Therefore, and by (0.2). But this is impossible since . Thus and so it follows from (0.2) that . Moreover, we have for some digit . Observe that and since and . Assume that . If then by (0.2). Hence , a contradiction. If then and so , a contradiction. Assume that . If then , hence (0.2) is impossible. If then , hence , a contradiction. Thus and so it suffices to show that -digit number is divisible by :
Final answer
4050
Techniques
Divisibility / FactorizationModular Arithmetic