Skip to main content
OlympiadHQ

Browse · MathNet

Print

42nd Balkan Mathematical Olympiad

number theory

Problem

Let , and be positive integers. Suppose that for any integer there exists a positive integer such that and . Prove that .
Solution
Solution 1. Let and . Also let . Consider . We have so can take finitely many values. Furthermore, expands into , where only depends on . From these we can easily get As is bounded, expressions and each take finitely many values as varies through positive integers. Lemma. For any pair of integers such that either is not a perfect square or there exist infinitely many primes together with a residue class such that is a quadratic non-residue mod . Proof. Let be a large prime with . Assume that the claim is not true and let . Since expressions produce different residues, we get equality on the sets of residues: Summing both sets yields where , since is a large prime. Therefore , which is a contradiction. Since we can pick infinitely many integers from a class mod , the lemma follows. □ Let for be all the possible values of . Claim. Let be a finite collection of conics such that for each one either is not a perfect square or . Then, there exist infinitely many positive integers such that none of belong to any of these conics. Proof. Let and be three primes and their corresponding residues that the lemma provides for the pair . Note that since lemma provides infinitely many primes for each pair , we can ensure that all mentioned primes are distinct. By choosing to satisfy for all , we see that none of , , can be a perfect square for any (since each expression is a quadratic non-residue modulo some prime). Since there are obviously infinitely many such , the claim follows. □ ---

To finish the solution, pick a large enough positive integer from the claim. If we get that is a square and . Therefore for some integer . Since is a positive integer it follows that and thus . Then , so . Furthermore, as this also holds for and , we get that divides By simple calculations we obtain . Therefore .

Solution 2. We can find values of that do not belong to any of the conics from the lemma in a different way. We will first find one value of which does not belong to any of those conics. Let be all the primes less than or equal to and let . Then, let be a large enough prime number (such that it is not equal to any ). Claim. Number does not belong to any of the conics. Proof. Assume otherwise and let . For all primes it holds that , implying . Therefore is a square and we can divide the whole equation with . We are left with Since , the case is impossible, thus is positive. Subtracting 1 from both sides yields which is impossible as divides precisely one factor on the right, but by choice of it holds that (and ). Similarly as in solution 1 we get that and is a positive integer. Assume there exists a prime . Claim. There exist two positive integers , both of which do not belong to any of the conics from solution 1, such that and . Proof. If , let be a prime such that and . Then, similarly as , the number is shown to not belong to any of the conics. Therefore and are the desired positive integers. Assume and . Let be a quadratic non-residue mod . By Dirichlet's theorem there exists a prime such that Then is also a quadratic non-residue mod and then by the law of quadratic reciprocity, which means . (1) Let . Assume for some integer . Similarly as in the previous claim, after reducing the equation with we are left with

where or for some nonnegative integer . Since , the first form is impossible similarly as in the previous claim and the second form is impossible due to (1). If we define such that , which yields , and proceed analogously. Therefore and are the desired positive integers in this case. To finish the proof, note that , and thus . We also have , which is a contradiction since . Therefore no prime divides , and since is a positive integer, we conclude , that is .

Techniques

Chinese remainder theoremQuadratic residuesQuadratic reciprocityTechniques: modulo, size analysis, order analysis, inequalities