International Mathematical Olympiad 1977 Problem 5
Let and be positive integers. When is divided by , the quotient is and the remainder is . Find all pairs such that .
Let and be positive integers. When is divided by , the quotient is and the remainder is . Find all pairs such that .