Browse · MathNet
PrintMacedonian Junior Mathematical Olympiad
North Macedonia number theory
Problem
Find all divisible by , such that all numbers that can be obtained from by an arbitrary rearrangement of its digits are again divisible by .
Најди ги сите деливи со , такви што сите броеви кои се добиваат со произволна прераспределба на цифрите на бројот повторно се деливи со .
Најди ги сите деливи со , такви што сите броеви кои се добиваат со произволна прераспределба на цифрите на бројот повторно се деливи со .
Solution
From the condition , the number must have at least two digits. Let where , are digits and . From the former discussion we have .
We will show that all digits in the number are equal. Namely, from the condition of the exercise, the number ( is obtained from by exchanging the positions of the digits and ) is also divisible by . Therefore , i.e. or , and hence .
It follows that . We easily check that if and only if is an odd number.
---
Alternative solution.
Од условот и бројот мора да е најмалку двоцифрен. Нека каде , се цифри и . Од претходната дискусија .
Ќе покажеме дека сите цифри во бројот се еднакви. Имено, од условот на задачата и бројот ( е добиен од со промена на местата на цифрите и ) е делив со . Значи , т.е. или , па мора .
Следува, . Лесно се проверува дека ако и само ако е непарен број.
We will show that all digits in the number are equal. Namely, from the condition of the exercise, the number ( is obtained from by exchanging the positions of the digits and ) is also divisible by . Therefore , i.e. or , and hence .
It follows that . We easily check that if and only if is an odd number.
---
Alternative solution.
Од условот и бројот мора да е најмалку двоцифрен. Нека каде , се цифри и . Од претходната дискусија .
Ќе покажеме дека сите цифри во бројот се еднакви. Имено, од условот на задачата и бројот ( е добиен од со промена на местата на цифрите и ) е делив со . Значи , т.е. или , па мора .
Следува, . Лесно се проверува дека ако и само ако е непарен број.
Final answer
All numbers whose digits are all the same and whose number of digits is even; equivalently, numbers of the form a times a string of ones of even length with a from one to nine.
Techniques
Modular ArithmeticDivisibility / Factorization