2024 AIME II · Question 7
Problem outline
Find the largest four-digit number for which replacing any single digit by gives a multiple of seven. Write with and find .
Show answer and methods 1 methods
Answer
699
Method 1 Recover the residue shared by the four digit changes
Topics usedModular arithmeticPlace value
Let be the digit at and let . All four replacements work iff for every . Since , we get , hence .
The powers for are congruent to . The corresponding digits are congruent to . Taking the greatest decimal digit in each class produces . These congruences also imply , validating all replacements. Thus .
Source and attribution
The outline and worked methods on this page were prepared for DR.WANG Mathematics.
Original question (external)