返回题库

AIME 2025 I · 第 10 题

AIME 2025 I — Problem 10

专题
Contest Math
难度
L4
来源
AIME

题目详情

Problem

The 2727 cells of a 3×93 \times 9 grid are filled in using the numbers 11 through 99 so that each row contains 99 different numbers, and each of the three 3×33 \times 3 blocks heavily outlined in the example below contains 99 different numbers, as in the first three rows of a Sudoku puzzle.

AIME diagram

The number of different ways to fill such a grid can be written as paqbrcsdp^a \cdot q^b \cdot r^c \cdot s^d where pp, qq, rr, and ss are distinct prime numbers and aa, bb, cc, dd are positive integers. Find pa+qb+rc+sdp \cdot a + q \cdot b + r \cdot c + s \cdot d.

Video solution 4 by grogg007

https://youtu.be/NxZRXfHAkUo

解析

Solution 1

We will fill out the grid row by row. Note that there are 9!=2734579!=2^7\cdot 3^4\cdot 5\cdot 7 ways to fill out the first row. For the second row, we will consider a little casework. WLOG let the first row be 123456789123 | 456 | 789 (bars indicate between the 3×33\times 3 squares).

Case 1: Every number from the first square goes to the second square. Then there is 11 way along with 636^3 orderings giving us 636^3 cases.

Case 2: Two of the first numbers go in the second square and the last number goes in the third. This results in 3333\cdot3\cdot3 ways to put the numbers along with 636^3 orderings. Thus there are 276327\cdot 6^3 cases.

Note that we didn't consider 22 cases but these are symmetric so the number of ways to fill the second row is 566356\cdot 6^3.

There is 11 way to place the last numbers in with 636^3 orderings. Thus there are 273457566363=21631051722^7\cdot 3^4\cdot 5\cdot 7 \cdot 56\cdot 6^3 \cdot 6^3 = 2^{16}\cdot 3^{10}\cdot 5^1\cdot 7^2 ways to fill out our mini Sudoku puzzle. Thus the answer is 216+310+51+72=081.2\cdot 16+3\cdot 10 + 5\cdot 1+7\cdot 2 = \boxed{081}.

~ zhenghua

Solution 2

We will call the sudoku blocks 1-3 from left to right, and rows 1-3 from up to down. Lets start from the entire first block - we have 9!9! options of choosing it as you just arrange the numbers.

Starting from the second block, we need to do some casework. We need to discuss the different possibilities that the first row of the second block contains.

Case 1: The first row of the second block has the exact 3 numbers from the second row of first block.

We have P33P^3_3 choices as you just arrange the numbers for the first row.

Then, considering the second row of the second block, you must take the exact 3 numbers from the third row of first block, and we could arrange then in different order. This will gives another P33P^3_3 choices.

The third row of the second block must contain the 3 numbers of the first row in first block. We will then have another P33P^3_3 of arranging the numbers.

Summing up case 1, we have P33P33P33=63=2333P^3_3 \cdot P^3_3 \cdot P^3_3 = 6^3 = 2^3 \cdot 3^3.

Case 2: The first row of second block contains 2 numbers from the second row of first block and 1 number from the third row of first block.

To satisfy my case 2 statement, we will need (31)(32)P33\binom{3}{1}\cdot\binom{3}{2}\cdot P^3_3.

To look at the second row of the second block, we must first choose the remaining 2 numbers that haven't got picked from the third row of first block, or else the sudoku won't work. This means that we can only pick 1 remaining number from the numbers in first row of first block - because the 6th number is the number in the second row and sudoku doesn't allow repeated numbers in a row. Therefore, the second row has the choice of (22)(31)P33\binom{2}{2}\binom{3}{1}P^3_3.

The third row of the second block gets the remaining 3 numbers that is left from the second block, which is P33P^3_3.

Summing up case 2, we have (31)(32)P33(22)(31)P33P33=332333=2336\binom{3}{1}\binom{3}{2}P^3_3\binom{2}{2}\binom{3}{1}P^3_3P^3_3= 3^3\cdot2^3\cdot3^3 = 2^3\cdot3^6.

Notice that case 3 (3 numbers repeating from the third row of first block) and case 4 (2 numbers from block 1 row 3 and 1 number from block 1 row 2) are symmetric to case 1 and 2, respectively. Therefore the second block results with (1+33+1+33)2333=562333=72633(1 + 3^3 + 1 + 3^3) \cdot 2^3 \cdot 3^3 = 56 \cdot 2^3 \cdot 3^3 = 7 \cdot 2^6 \cdot 3^3

Third block: easy

Notice that the 6 numbers of each row has been filled already, the choices of the rest 3 numbers has been done. You only need to arrange them in different orders, which gives P33P33P33=2333P^3_3P^3_3P^3_3= 2^3 * 3^3.

In total, our answer is:

9!7263323339! \cdot 7 \cdot 2^6 \cdot 3^3 \cdot 2^3 \cdot 3^3 =23225237233272936=2 \cdot 3 \cdot 2^2 \cdot 5 \cdot 2 \cdot 3 \cdot 7 \cdot 2^3 \cdot 3^2 \cdot 7 \cdot 2^9 \cdot 3^6 =216310572=2^{16} \cdot 3^{10} \cdot 5 \cdot 7^2

Our required answer is therefore 216+310+51+72=32+30+5+14=0812 \cdot 16 + 3 \cdot 10 + 5 \cdot 1 + 7 \cdot 2 = 32 + 30 + 5 + 14 = \boxed{081}

~Mitsuihisashi14

Minor latex edits by T3CHN0B14D3

Solution 3 (Can be very quick but explained well)

First, assume the first row is ordered 1,2,3,4,5,6,7,8,91, 2, 3, 4, 5, 6, 7, 8, 9.

This contributes 9!9! cases.

Next, assume the first box has the remaining numbers, 4,5,6,7,8,94, 5, 6, 7, 8, 9 ordered in some way. This contributes 6!=7206! = 720 cases for the first box.

Third, consider each of the remaining 11 x 33 boxes as separate, and they each contribute 3!3! cases.

However, we are undercounting.

The second box may have to be multiplied by 3 if the first box did not define the numbers that go in each 11 x 33 box. The third box will always have its rows defined. If the first box is placed such that 4,5,64, 5, 6 are in the same 11 x 33 box, and 7,8,97, 8, 9 are in the same 11 x 33 box, then the numbers in the second box will be defined and we do not need to multiply by 3. This happens for 23!3!=722 \cdot 3! \cdot 3! = 72 cases, or 72/720=1/1072 / 720 = 1 / 10 of the time. Therefore, 9/109 / 10 of the time, we need to multiply by another 3. Adding this up, to account for undercounting, we must multiply the total by 1/10+3(9/10)=28/10=14/51 / 10 + 3(9 / 10) = 28 / 10 = 14 / 5.

Our final total is 9!6!(3!)414/5=(27345171)(243251)(2434)27/5=21631051729! \cdot 6! \cdot (3!)^4 \cdot 14 / 5 = (2^7 \cdot 3^4 \cdot 5^1 \cdot 7^1) (2^4 \cdot 3^2 \cdot 5^1) (2^4 \cdot 3^4) \cdot 2 \cdot 7 / 5 = 2^{16} \cdot 3^{10} \cdot 5^1 \cdot 7^2.

The desired solution is 216+310+51+72=0812\cdot16 + 3\cdot10 + 5\cdot1 + 7\cdot2 = \boxed{081}

~ILoveMath31415926535

Minor latex edits by Wen_Liang

Solution 4

Assume the first row of the grid is 123456789.123|456|789. Note that the numbers in each 33x11 block can be ordered in 3!3! ways amongst themselves and they will still stay in the same row and 33x33 block. There are 66 unfilled 33x11 blocks, so we'll multiply by (3!)6(3!)^6 at the end. We’ll also have to multiply by 9!9! because we fixed the first row of the grid and there are 9!9! ways to permute the numbers in it.

Let's do casework on where 789789 can be in the second row of the grid.

Case 1: All three numbers 789789 are in the second row of the same 33x33 block

789789 can be the second row of one of two 33x33 blocks (it can't be the second row of the third 33x33 block since the top row of that one already has 789789 in it). WLOG say 789789 is the second row of the first 33x33 block. Then 123123 must be the second row of the second 33x33 block and 456456 must be the second row of the third 33x33 block. Since the second row is completely filled out we are done. So this case gives us 2 ways.

Case 2: Two of the numbers of 789789 are in the second row of one 33x33 block, the other left out number is in the second row of the other 33x33 block

We can choose the "left out" number in (31)=3\binom{3}{1} = 3 ways, and it can go in the second row of one of two blocks (remember, it can't be in the third 33x33 block since the top row of that one already has 789789 in it). So we have 32=63\cdot 2 = 6 ways. WLOG say the left out number is 9,9, and we put 99 in the second row of the first 33x33 block, so 77 and 88 are in the second row of the second 33x33 block. Now, consider the numbers 456.456. We can choose two of these numbers to join 99 in the second row of the first 33x33 block in (32)=3\binom{3}{2} = 3 ways. WLOG say we chose 44 and 55. Then 66 must be in the second row of the third 33x33 block. Now we can choose one number out of 1,2,31,2,3 to join 77 and 88 in the second row of the second block in (31)=3\binom{3}{1} = 3 ways. WLOG say we chose 1.1. Then 22 and 33 must be in the second row of the third 33x33 block with 6.6. Now the second row is completely filled out, so we are done. We have 633=546 \cdot 3 \cdot 3 = 54 ways for this case.

The total number of ways is (54+2)(3!)69!=2163105172,(54 + 2) \cdot (3!)^6 \cdot 9! = 2^{16} \cdot 3^{10} \cdot 5^1 \cdot 7^2, so the answer is 32+30+5+14=81.32 + 30 + 5 + 14 = \boxed{81}.

~grogg007

Video Solution - Sudoku Puzzle by HungryCalculator

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

~HungryCalculator