Skip to main content
OlympiadHQ

Browse · MathNet

Print

42nd Balkan Mathematical Olympiad

number theory

Problem

Given a positive integer , a pair of positive integers is said to be -nice if and . For which positive integers are there infinitely many -nice pairs?
Solution
First we will solve the case . Notice that a pair is 1-nice if and . Assuming without loss of generality that and setting , we observe that since then , i.e. . Since divides , we conclude that , and then that , which means that only finitely many pairs are 1-nice.

Now, consider some integer . First, notice that the pair is -nice. Now, given a -nice pair such that , let . By construction, is a positive integer that divides . Notice that we must have , because otherwise if some divides both and , we have that divides as well, hence , contradiction.

Now we observe that and since and , we get that , which means that is -nice. Moreover, and so .

Therefore, there is no -nice pair whose sum is maximal, and since is -nice, there must exist infinitely many -nice pairs.

In conclusion, for all there exist infinitely many -nice pairs.
Final answer
All positive integers k greater than or equal to 2

Techniques

Greatest common divisors (gcd)Invariants / monovariantsTechniques: modulo, size analysis, order analysis, inequalities