2024 AIME II Problem 7
Problem 7 of 15IntermediateNumber TheoryProblem-Solving Techniques
Let be the greatest four-digit integer with the property that whenever one of its digits is changed to the resulting number is divisible by Let and be the quotient and remainder, respectively, when is divided by Find
Your answer
Integer from 0 to 999
Show solution
Solution
Write with digits Changing the thousands digit to produces so and similarly for the other digits. Since and
Let Using and the inverses the digits satisfy But also substituting gives so and
Then and taking the largest digit in each class gives (the class has no larger digit), Indeed are all multiples of Finally and
Tagged: modular arithmetic · digits · optimization