2025 AIME I · Question 5
Problem outline
Let count arrangements of the eight different digits through that form a multiple of . How far is from ?
Show answer and methods 2 methods
Answer
279
Method 1 Pair multiples of eleven by changing every digit
Let be the sum at the four odd positions. The total digit sum is , so the alternating sum is . Since , this is an even number in . Its only possible multiple of is , hence .
When a sum- four-digit set contains , the remaining three digits must total . The possibilities are . Taking the four complements supplies all sets without . Thus arrangements are divisible by .
Replacing every digit by preserves the digit set and changes the sign of the alternating sum. The last digit changes parity, and doing the replacement twice returns to the original arrangement. Exactly one arrangement per pair is even, so and .
Method 2 Place the units digit inside a balanced four-digit set
Divisibility by forces each group of four alternating positions to sum to : the alternating difference is even and has magnitude at most . A group summing to needs two odd and two even digits. Four odd digits would total and four even digits would total .
Choose the two odd digits for the even-numbered positions. Their sum can be with multiplicities . To make , the two even digits must respectively sum to with multiplicities . This gives eligible four-digit sets.
The units position belongs to the even-numbered positions. For each set, choose one of its two even digits to go last, permute the remaining three digits in these positions, and permute the four digits in the odd positions. Hence , giving difference .
Source and attribution
The outline and worked methods on this page were prepared for DR.WANG Mathematics.
Original question (external)