返回题库

AIME 2025 I · 第 5 题

AIME 2025 I — Problem 5

专题
Contest Math
难度
L4
来源
AIME

题目详情

Problem

There are 8!=403208!= 40320 eight-digit positive integers that use each of the digits 1,2,3,4,5,6,7,81, 2, 3, 4, 5, 6, 7, 8 exactly once. Let NN be the number of these integers that are divisible by 2222. Find the difference between NN and 20252025.

Video solution by grogg007

https://youtu.be/PNBxBvvjbcU?t=636

解析

Solution 1

Notice that if the 8-digit number is divisible by 2222, it must have an even units digit. Therefore, we can break it up into cases and let the last digit be either 2,4,6,2, 4, 6, or 88. Due to symmetry, upon finding the total count of one of these last digit cases (we look at last digit 22 here), we may multiply the resulting value by 44.

Now, we just need to find the number of positions of the remaining numbers such that the units digit is 22 and the number is divisible by 1111. Denote the odd numbered positions to be a1,a3,a5,a7a_1, a_3, a_5, a_7 and the even numbered positions to be a2,a4,a6a_2, a_4, a_6 (recall a8=2a_8=2). By the divisibility rule of 1111, we must have:

(a1+a3+a5+a7)(a2+a4+a6+2)(a_1 + a_3 + a_5 + a_7) - (a_2 + a_4 + a_6 + 2) which is congruent to 0(mod11)0\hspace{2mm}(\text{mod}\hspace{1mm}11). Therefore, after simplifying, we must have:

a1a2+a3a4+a5a6+a72(mod11)a_1 - a_2 + a_3 - a_4 + a_5 - a_6 + a_7\equiv2\hspace{2mm}(\text{mod}\hspace{1mm}11) Now consider a1+a2++a7=1+2++82=341(mod11)a_1+ a_2 +\ldots + a_7=1+2+\ldots+8-2=34\equiv1\hspace{2mm}(\text{mod}\hspace{1mm}11). Therefore,

(a1+a2++a7)2(a2+a4+a6)2(mod11)(a_1 + a_2 + \ldots+ a_7) - 2(a_2 + a_4 + a_6)\equiv2\hspace{2mm}(\text{mod}\hspace{1mm}11) which means that

a2+a4+a65(mod11)a_2 + a_4 + a_6\equiv5\hspace{2mm}(\text{mod}\hspace{1mm}11) Notice that the minimum of a2+a4+a6a_2+a_4+a_6 is 1+3+4=81 + 3 + 4 = 8 and the maximum is 6+7+8=216 + 7 + 8 = 21. The only possible number congruent to 5(mod11)5\hspace{2mm}(\text{mod}\hspace{1mm}11) in this range is 1616. All that remains is to count all the possible sums of 1616 using the values 1,3,4,5,6,7,81, 3, 4, 5, 6, 7, 8. There are a total of four possibilities:

(1,7,8),(3,5,8),(3,6,7),(4,5,7)(1, 7, 8), (3, 5, 8), (3, 6, 7), (4, 5, 7) The arrangement of the odd-positioned numbers (a1,a3,a5,a7a_1,a_3,a_5,a_7) does not matter, so there are 4!=244!=24 arrangements of these numbers. Recall that the 44 triplets above occupy a2,a4,a6a_2,a_4,a_6; the number of arrangements is 3!=63!=6. Thus, we have 2464=57624\cdot6\cdot4=576 possible numbers such that the units digit is 22. Since we claimed symmetry over the rest of the units digits, we must multiply by 44, resulting in 5764=2304576\cdot4=2304 eight-digit positive integers. Thus, the positive difference between NN and 20252025 is 23042025=2792304 - 2025 = \boxed{279}.

~ilikemath247365

~LaTeX by eevee9406

Proof of symmetry on last even digit

To see the symmetry in the cases on the last digit a8a_8, you can cycle through the cases bijectively by adding 2 to each digit mod10\mod 10.

Solution 2

1. To be multiple of 11:11: Total of 1,2,3,4,5,6,7,81,2,3,4,5,6,7,8 is 36,36, dividing into two groups of 44 numbers, the difference of sum of two group xx and yy need to be 00 or multiple of 11,11, i.e. x+y=36,x+y=36, xy=0,11,22x-y=0,11,22\dots only x=y=18x=y=18 is possible. Number 88 can only be with (8,1,4,5),(8,1,2,7),(8,1,3,6),(8,2,3,5).(8,1,4,5),(8,1,2,7),(8,1,3,6),(8,2,3,5). One group of 44 numbers make 4!4! different arrangement, two groups make 4!4!,4!\cdot{4!}, the 22 group makes 2!2! arrangement. The two group of numbers are alternating by digits. Total number of multiple of 1111 is 42!4!4!.4\cdot 2!\cdot 4!\cdot 4!. 2. To be multiple of 2:2: We noticed in each number group, there are two odd two even. So the final answer is above divided by 2,2, 42!4!4!/2=2304.4*2!*4!*4!/2=2304. 23042025=279.2304-2025=\boxed{279.}

~Mathzu.club ~Latex by mathkiddus

Solution 3

waxbyczn\begin{array}{|c|c|c|c|c|c|c|c|} \hline w & a & x & b & y & c & z & n \\ \hline \end{array} Let waxbycznwaxbyczn be our 8 digit number. For a number to be a multiple of 2222 it must be an even multiple of 11,11, so nn must be even and (w+x+y+z)(a+b+c+n)=11x|(w + x + y + z) - (a + b + c + n)| = 11x for 1x0.1 \geq x \geq 0. Let n=8.n = 8. We have three main subcases:

  • SC1: x=0,x = 0, a+b+c+8=w+x+y+za + b + c + 8 = w + x + y + z

Note that none of the variables can be 88 since nn is 88. We know that (a+b+c)+(w+x+y+z)=28(a + b + c) + (w + x + y + z) = 28 and (a+b+c)+8=(w+x+y+z).(a + b + c) + 8 = (w + x + y + z). Solving this system, we find a+b+c=10a + b + c = 10 and w+x+y+z=18.w + x + y + z = 18. After some small bashing we find there are 44 combinations of numbers that will work: the variables a,b,ca, b, c can be distinct elements of the sets {2,3,5},{1,4,5},{1,3,6}\{2, 3, 5\}, \{1, 4, 5\}, \{1, 3, 6\} or {1,2,7}\{1, 2, 7\}, and w,x,y,zw, x, y, z can be distinct elements of each corresponding set. (So for example, if we chose a,b,ca, b, c from {2,3,5}\{2, 3, 5\} we would choose w,x,y,zw, x, y, z from {1,4,6,7},\{1, 4, 6, 7\}, the "corresponding" set). There are 44 different set pairs, 3!3! ways to permute a,b,c,a, b, c, and 4!4! ways to permute w,x,y,z,w, x, y, z, giving us 4!3!44! \cdot 3! \cdot 4 ways for this subcase.

  • SC2: x=1,x = 1, a+b+c+19=w+x+y+za + b + c + 19 = w + x + y + z

1919 is odd, but a+b+c+w+x+y+za + b + c + w + x + y + z is even, so if we set up our system of equations for (a+b+c)(a + b + c) and (w+x+y+z)(w + x + y + z) like we did in sub case 1, we would end up with a fraction for the sums.

  • SC3: x=1,x = 1, a+b+c3=w+x+y+za + b + c - 3 = w + x + y + z

Same issue as sub case 2, we will end up with a fraction because 33 is odd.

For every even nn, there will always be 4!3!44! \cdot 3! \cdot 4 ways for SC1 (pretty easy to confirm this, just do SC1 for n=6,4,2n = 6,4,2) and 00 ways for SC2 and SC3 since they will always give fractions for the sums when we try to set up our system. Since nn can be 44 different values, the answer is 4!3!442025=279.4! \cdot 3! \cdot 4 \cdot 4 - 2025 = \boxed{279}.

~grogg007

Solution 4

Let the number be abcdefghabcdefgh, based on the rule for divisibility of 11, (a+c+e+g)(b+d+f+h)(a + c + e + g) - (b+d+f+h) must be a multiple of 11. Since the sum of all the 8 digits is 36, and the sum of four digits is at least 10, so we can only have a+c+e+g=b+d+f+h=18a+c+e+g = b+d+f+h = 18. There are 8 ways to sum to 18 using four digits from 1,2,3,4,5,6,7,81,2,3,4,5,6,7,8. The digits on even and odd digits can be permuted, so the number of multiples of 11 is 4!×4!×8=46084! \times 4!\times 8 = 4608, and half of these numbers have even digits on the units digit, so the number of multiple of 22 is 4608/2=23044608/2 = 2304, the answer to this problem is 23042025=2792304 - 2025 = \boxed{279}.

~[Dan Li]

Video Solution by SpreadTheMathLove

https://www.youtube.com/watch?v=P6siafb6rsI

(also the person in the Youtube video wrote the final answer wrong, it was supposed to be 279 and he accidentally wrote it as 729)

~Mathycoder

Video Solution - Divisbility by 22 by HungryCalculator

https://www.youtube.com/watch?v=cMEjYTkLeto&t

~HungryCalculator