Browse · MathNet
Print75th NMO Selection Tests
Romania number theory
Problem
Determine all natural numbers such that is a perfect square.
Solution
We check by direct computation that are solutions. We will prove that these are the only ones. We may assume after checking all smaller cases. We distinguish two cases.
(I) If is even, write (then ). One can prove that which means that in this case, cannot be a perfect square. Indeed, the second inequality is obvious, and the first can be proven easily by induction for , with the base cases verified directly.
(II) If is odd, let be the largest (necessarily odd) prime dividing . If , then , and since , it follows that , so in particular . But then divides , hence (since ). If , then . Since , and , it follows that . But then , which contradicts the assumption that .
Therefore, we must have . Since , it follows that , but does not divide (this follows immediately from factoring or applying LTE for ). This implies that there exists a prime , with such that . Using the statement below, we obtain that . Since , and assuming , we get . By the same reasoning as above, , which contradicts the maximality of as the largest prime dividing . This completes the proof that for , the expression is not a perfect square.
Claim. If is a prime with , then any odd prime factor of , different from 3, satisfies . Proof. Let be a prime dividing . Then , so the order of 2 modulo is . Indeed, the order of 2 (mod ) must divide , so it could be 1, 2, , or . It cannot be 1 or (as ), and if it were 2, then implies , contradicting . Since , by Fermat's Little Theorem we have . But the order of 2 modulo is , so , which implies .
(I) If is even, write (then ). One can prove that which means that in this case, cannot be a perfect square. Indeed, the second inequality is obvious, and the first can be proven easily by induction for , with the base cases verified directly.
(II) If is odd, let be the largest (necessarily odd) prime dividing . If , then , and since , it follows that , so in particular . But then divides , hence (since ). If , then . Since , and , it follows that . But then , which contradicts the assumption that .
Therefore, we must have . Since , it follows that , but does not divide (this follows immediately from factoring or applying LTE for ). This implies that there exists a prime , with such that . Using the statement below, we obtain that . Since , and assuming , we get . By the same reasoning as above, , which contradicts the maximality of as the largest prime dividing . This completes the proof that for , the expression is not a perfect square.
Claim. If is a prime with , then any odd prime factor of , different from 3, satisfies . Proof. Let be a prime dividing . Then , so the order of 2 modulo is . Indeed, the order of 2 (mod ) must divide , so it could be 1, 2, , or . It cannot be 1 or (as ), and if it were 2, then implies , contradicting . Since , by Fermat's Little Theorem we have . But the order of 2 modulo is , so , which implies .
Final answer
n = 2, 3, 4
Techniques
Prime numbersFermat / Euler / Wilson theoremsMultiplicative orderQuadratic residuesTechniques: modulo, size analysis, order analysis, inequalities