Skip to main content
OlympiadHQ

Browse · MathNet

Print

Croatian Mathematical Olympiad

Croatia number theory

Problem

Determine all pairs of positive integers such that
Solution
Note that , which means that for some positive integer . Now we have Denote and . Let be the greatest common divisor of and , and note that is odd. Furthermore, divides , and since is odd, it follows that or . Therefore, we have exactly four possibilities for factorising and . In all cases we assume that and are relatively prime positive integers.

Case 1. and . This is not possible because , i.e. cannot be a perfect square.

Case 2. and . If , note that , i.e. , which is not possible. Therefore, and we get .

Case 3. and . Analogously to the previous case we can conclude that necessarily, but that is not possible in this case, since .

Case 4. and . Therefore, is divisible by , i.e. , from which it follows that for some positive integer . Now we have and since and are relatively prime, we have only two possibilities: where and are relatively prime positive integers.

In the first option, if we have , which is not possible. Therefore, and we get another solution .

In the second option, we have . Since the greatest common divisor of and is at most and their product is a power of , we can conclude that , i.e. that , but then , which is not possible.

Finally, all solutions of the given equation are and .
Final answer
(3, 1) and (6, 3)

Techniques

Techniques: modulo, size analysis, order analysis, inequalitiesGreatest common divisors (gcd)Factorization techniquesMultiplicative order