MathDB
Digit Replacements

Source: 2024 AIME II #7

February 8, 2024
AIME II2024

Problem Statement

Let NN be the greatest four-digit integer with the property that whenever one of its digits is changed to 11, the resulting number is divisible by 77. Let QQ and RR be the quotient and remainder, respectively, when NN is divided by 10001000. Find Q+RQ+R.