Problem

Source: Mexico National Olympiad Mock Exam 2018 Problem 4

Tags: number theory, sum of digits, Divisibility



For each positive integer $n$ let $s(n)$ denote the sum of the decimal digits of $n$. Find all pairs of positive integers $(a, b)$ with $a > b$ which simultaneously satisfy the following two conditions $$a \mid b + s(a)$$$$b \mid a + s(b)$$ Proposed by Victor Domínguez