4. Find all pairs of natural numbers such that is divisible by , is divisible by , and is divisible by .
Problem 807
Official solution
Solution. Let be the greatest common divisor of the numbers and . Suppose and . Then, by the condition, is divisible by , from which (since and are coprime) it is clear that is divisible by . Similarly, is divisible by , and thus (we again use the coprimality of the numbers and ). Then and . Substituting these equalities into the last condition, we get that is divisible by . Subtract the second number from the first and simplify by . Then we get that is divisible by . Now replace with -1 in the first term of the expression and we get that is divisible by . Now discard the minus sign in the dividend (it does not affect divisibility) and consider several cases. First, if , then clearly and this case works. If , then we have the inequalities , which contradicts divisibility. Then the only remaining case is . From the inequality , we get that . Modulo , the number is congruent to , which, in turn, is less than . If we write and look at this equation modulo , and also remember that , then we can understand that . From this, we deduce that . Thus is divisible by , from which (again, due to coprimality) it is clear that . Then and we get the series of solutions and for all natural .
## Senior League