AIME 2025 I · 第 10 题
AIME 2025 I — Problem 10
题目详情
Problem
The cells of a grid are filled in using the numbers through so that each row contains different numbers, and each of the three blocks heavily outlined in the example below contains different numbers, as in the first three rows of a Sudoku puzzle.

The number of different ways to fill such a grid can be written as where , , , and are distinct prime numbers and , , , are positive integers. Find .
Video solution 4 by grogg007
https://youtu.be/NxZRXfHAkUo
解析
Solution 1
We will fill out the grid row by row. Note that there are ways to fill out the first row. For the second row, we will consider a little casework. WLOG let the first row be (bars indicate between the squares).
Case 1: Every number from the first square goes to the second square. Then there is way along with orderings giving us cases.
Case 2: Two of the first numbers go in the second square and the last number goes in the third. This results in ways to put the numbers along with orderings. Thus there are cases.
Note that we didn't consider cases but these are symmetric so the number of ways to fill the second row is .
There is way to place the last numbers in with orderings. Thus there are ways to fill out our mini Sudoku puzzle. Thus the answer is
~ 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 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 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 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 of arranging the numbers.
Summing up case 1, we have .
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 .
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 .
The third row of the second block gets the remaining 3 numbers that is left from the second block, which is .
Summing up case 2, we have .
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
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 .
In total, our answer is:
Our required answer is therefore
~Mitsuihisashi14
Minor latex edits by T3CHN0B14D3
Solution 3 (Can be very quick but explained well)
First, assume the first row is ordered .
This contributes cases.
Next, assume the first box has the remaining numbers, ordered in some way. This contributes cases for the first box.
Third, consider each of the remaining x boxes as separate, and they each contribute 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 x box. The third box will always have its rows defined. If the first box is placed such that are in the same x box, and are in the same x box, then the numbers in the second box will be defined and we do not need to multiply by 3. This happens for cases, or of the time. Therefore, of the time, we need to multiply by another 3. Adding this up, to account for undercounting, we must multiply the total by .
Our final total is .
The desired solution is
~ILoveMath31415926535
Minor latex edits by Wen_Liang
Solution 4
Assume the first row of the grid is Note that the numbers in each x block can be ordered in ways amongst themselves and they will still stay in the same row and x block. There are unfilled x blocks, so we'll multiply by at the end. We’ll also have to multiply by because we fixed the first row of the grid and there are ways to permute the numbers in it.
Let's do casework on where can be in the second row of the grid.
Case 1: All three numbers are in the second row of the same x block
can be the second row of one of two x blocks (it can't be the second row of the third x block since the top row of that one already has in it). WLOG say is the second row of the first x block. Then must be the second row of the second x block and must be the second row of the third x 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 are in the second row of one x block, the other left out number is in the second row of the other x block
We can choose the "left out" number in ways, and it can go in the second row of one of two blocks (remember, it can't be in the third x block since the top row of that one already has in it). So we have ways. WLOG say the left out number is and we put in the second row of the first x block, so and are in the second row of the second x block. Now, consider the numbers We can choose two of these numbers to join in the second row of the first x block in ways. WLOG say we chose and . Then must be in the second row of the third x block. Now we can choose one number out of to join and in the second row of the second block in ways. WLOG say we chose Then and must be in the second row of the third x block with Now the second row is completely filled out, so we are done. We have ways for this case.
The total number of ways is so the answer is
~grogg007
Video Solution - Sudoku Puzzle by HungryCalculator
https://www.youtube.com/watch?v=i5CjVwbDvP4
~HungryCalculator