Browse · MathNet
PrintSlovenija 2008
Slovenia 2008 number theory
Problem
Find the smallest possible value of the expression , given that and are non-negative integers.
Solution
Assume that . If , then . Since is obviously even the numbers and must be coprime, which implies and . This is not possible. If is divisible by , then , if is of the form , then
, and if , then . Since none of the remainders are equal to or and , we conclude that .
Now, assume . This number cannot be equal to either or . We can see this by considering the remainders modulo , because is either divisible by (and hence greater than or equal to ), or has the form or . So, either or .
Assume there exist and such that . We can rewrite the equation as This implies that is a perfect square. If it is equal to , then . Let us consider the expression modulo . We have since there are summands in the sum. This sum is therefore divisible by but not by . So, is even. On the other hand, and have the same parity, so is divisible by , a contradiction. The numbers and such that do not exist.
We have shown that and cannot be equal to , , or , so the smallest possible value of is and this value is attained when and , for example.
, and if , then . Since none of the remainders are equal to or and , we conclude that .
Now, assume . This number cannot be equal to either or . We can see this by considering the remainders modulo , because is either divisible by (and hence greater than or equal to ), or has the form or . So, either or .
Assume there exist and such that . We can rewrite the equation as This implies that is a perfect square. If it is equal to , then . Let us consider the expression modulo . We have since there are summands in the sum. This sum is therefore divisible by but not by . So, is even. On the other hand, and have the same parity, so is divisible by , a contradiction. The numbers and such that do not exist.
We have shown that and cannot be equal to , , or , so the smallest possible value of is and this value is attained when and , for example.
Final answer
4
Techniques
Quadratic residuesFactorization techniquesTechniques: modulo, size analysis, order analysis, inequalities