Number theoryDifficulty 7.5Prove itFinal Round of National Olympiad · Estonia
Ats and Pets both thought of two positive integers that do not exceed some positive integer n. If they both added the numbers they thought of, then both sums gave the same remainder when divided by n. But if both of them multiplied the numbers they thought of, then both products also gave equal remainders when divided by n. Is it necessarily true that the numbers they thought of were the same, if a) n=99? b) n=101?
This one wants a proof. Work it on paper, then read the official solution and mark yourself. Be honest about it: the record is only any use to you if it is.
a) If Ats thought of numbers 1 and 21 and Pets of numbers 10 and 12, then both get the sum 22 and the products will be 21 and 120, respectively, both of which give the remainder 21 when divided by 99.
b) Let the numbers Ats chose be a and b, the ones Pets chose c and d. According to the conditions stated in the problem, the numbers (a+b)−(c+d) and ab−cd are both divisible by 101. Let (a+b)−(c+d)=101k; then a=101k−b+c+d, from where ab−cd=(101k−b+c+d)b−cd=101kb−b2+bc+bd−cd=101kb−(c−b)(d−b). Hence also the product (c−b)(d−b) is divisible by 101. As 101 is a prime number, it has to divide either the factor c−b or the factor d−b. W.l.o.g., let c−b be divisible by 101. As all the numbers are on the interval from 1 to 101, it means that c=b. But then (a+b)−(c+d)=a−d, which due to divisibility by 101 means that a=d. Therefore Ats and Pets must have chosen the same numbers.
Source: MathNet,
licensed CC-BY-4.0.
Statement reproduced verbatim; metadata (topic, difficulty, ordering) added by this project.