Skip to main content
OlympiadHQ

Browse · MathNet

Print

17th Turkish Mathematical Olympiad

Turkey number theory

Problem

If and are integers such that for every integer , for some , find the smallest possible value of .
Solution
Every integer satisfies at least one of the congruences , , , , . Therefore can be . We will show that is not possible.

Let and be integers, and let . Since at most integers from to can satisfy at least one of the congruences for , we must have if every integer satisfies at least one of these congruences.

Now assume that and satisfy the condition of the problem and that has the smallest possible value. If , then . Therefore .

Without loss of generality we may assume that . For , let and if is odd, and let and if is even. The integers and satisfy the condition of the problem except that might not be distinct. Therefore by the minimality of , we must have and .

If is odd, then and . Since , this is not possible.



If is even, then and . If or and , we get contradictions because The only remaining case is and . This gives . Since the integers in a congruence class modulo cannot be all even or all odd, this also leads to a contradiction.

Therefore, the smallest possible value of is .
Final answer
5

Techniques

Inverses mod nLeast common multiples (lcm)Counting two ways