Browse · MathNet
PrintThe 14th Thailand Mathematical Olympiad
Thailand number theory
Problem
Prove or disprove that there exist consecutive positive integers that cannot be written as where and are integers.
Solution
We will prove that such a sequence exists. First we prove the following lemma.
Lemma. Let be a prime such that . If then cannot be written as the sum of two squares.
Proof. Let be a prime such that , and be an integer satisfying . Let be the integer where . Assume to the contrary that can be written as for some integers and . Suppose . Then since , we get and so , contradicting our assumption. Hence , and analogously, . By Fermat's little theorem we have On the other hand we have , raising this to the -th power yields: Since , this contradicts (1), thus cannot be written as the sum of two squares.
To construct the required sequence, let be primes congruent to modulo , and consider the following system of congruences: Since all moduli are pairwise relatively prime, by the Chinese Remainder Theorem there exists a solution to this system modulo . Let be a solution, then the lemma implies that cannot be written as the sum of two squares.
Lemma. Let be a prime such that . If then cannot be written as the sum of two squares.
Proof. Let be a prime such that , and be an integer satisfying . Let be the integer where . Assume to the contrary that can be written as for some integers and . Suppose . Then since , we get and so , contradicting our assumption. Hence , and analogously, . By Fermat's little theorem we have On the other hand we have , raising this to the -th power yields: Since , this contradicts (1), thus cannot be written as the sum of two squares.
To construct the required sequence, let be primes congruent to modulo , and consider the following system of congruences: Since all moduli are pairwise relatively prime, by the Chinese Remainder Theorem there exists a solution to this system modulo . Let be a solution, then the lemma implies that cannot be written as the sum of two squares.
Techniques
Chinese remainder theoremFermat / Euler / Wilson theoremsPrime numbersTechniques: modulo, size analysis, order analysis, inequalities