2017 AIME I Problem 2
Problem 2 of 15EasierNumber Theory
When each of and is divided by the positive integer the remainder is always the positive integer When each of and is divided by the positive integer the remainder is always the positive integer Find
Your answer
Integer from 0 to 999
Show solution
Solution
Numbers leaving equal remainders upon division by differ by multiples of so divides both and Since and must exceed the positive remainder we get and
Similarly divides both and and so and which indeed differs from
The requested sum is
Tagged: greatest common divisor · modular arithmetic · divisibility