Skip to main content
OlympiadHQ

Browse · MathNet

Print

Croatia_2018

Croatia 2018 number theory

Problem

Determine all pairs of prime numbers for which is a perfect square.
Solution
Let be a positive integer such that We will divide our solution into cases, depending on the parity of numbers and .

If both are even, the only possibility is that both are equal to . This leads to a solution for .

If both and are odd, we conclude that there are no solutions by looking at the remainder of division by . If and are odd, then and are even, so that and are squares of odd numbers. This means that they always give remainder when divided by . This shows that the left-hand side gives remainder when divided by , whereas must give remainder or when divided by .

The only remaining case is when one of the numbers and is even, while the other is odd. The equation being symmetric, we can, without loss of generality, assume that is odd, i.e. for some positive integer , and that equals .

Now we have Since is prime, the only way in which we can represent it as a product is if one of the factors equals , while the other is . Notice that , and also that , which yields Subtracting these two equalities, we get Let us prove that this equation has no solution. We know that gives remainder when divided by , so the same must hold for . This implies that is even, i.e. for some positive integer . In that case, is divisible by (because gives remainder when divided by ). We conclude that is divisible by , so . Plugging this into the initial equation, we see that and is not a solution.

This means that the only solution is .
Final answer
(2, 2)

Techniques

Modular ArithmeticFactorization techniquesTechniques: modulo, size analysis, order analysis, inequalities