AIME 2026 I · 第 15 题
AIME 2026 I — Problem 15
题目详情
Problem
Let and be positive integers with both and greater than or equal to and less than or equal to Define an cell loop in a grid of cells to be the cells that surround an (possibly empty) rectangle of cells in the grid. For example, the following diagram shows a way to partition a grid of cells into cell loops.

Find the number of ways to partition a grid of cells into cell loops so that every cell of the grid belongs to exactly one cell loop.
解析
Solution 1
(This solution has two parts: a computational part and a proof part. Readers who only care about the main idea may focus on the first part.)
A loop is defined to be the border of an axis-aligned rectangle of cells, with both dimensions at least .
In any partition of the grid into loops, the loop containing the corner cell must span an entire side of the grid; otherwise, uncovered boundary cells force too many loops (this will be proved later). Hence that loop must be one of size , , , , or . Odd widths are impossible, and smaller shapes fail; these facts will also be proved later.
If the corner loop is , then removing it leaves an square, which has already been shown by direct casework to admit exactly partitions into loops.
If the corner loop is , then removing it leaves a strip and an rectangle. The strip is forced to be one loop, and the rectangle has already been shown to admit exactly partitions into loops. This gives partitions in this case.
If the corner loop is , then removing it leaves a strip and an rectangle. Each of these must use exactly loops. A rectangle can be partitioned into loops in ways, and an rectangle can be partitioned into loops in ways, giving partitions.
If the corner loop is , then removing it leaves a rectangle and an strip. The strip is forced to be one loop, and the rectangle admits exactly partitions into loops, giving partitions.
If the corner loop is , then removing it leaves a rectangle, which has already been shown to admit exactly partitions into loops.
By symmetry, the horizontal cases , , , and contribute the same numbers as , , , and respectively, while the case is self-symmetric and counted once.
Adding all cases gives
Thus, there are exactly ways to partition the grid into loops.
Proof, for those who care
Lemma 1. In any partition of the grid into five rectangular cell loops, the loop containing the cell must contain either the entire top row or the entire left column.
Proof. Let be the loop containing . Since every loop is the border of an axis-aligned rectangle of cells, is the border of some rectangle whose top-left corner is . Thus occupies the cells for and for .
Suppose for contradiction that contains neither the entire top row nor the entire left column, so and . Then the boundary cells are uncovered, as are the boundary cells .
Any loop containing one of the uncovered cells on the top row must have its rectangular border’s top edge on row and cannot intersect , so such cells force the existence of a loop disjoint from and lying entirely to the right of . Similarly, the uncovered cells on the left column force the existence of a loop disjoint from and lying entirely below . These two loops are distinct, since a single rectangle border cannot cover both separated boundary portions without crossing .
If and , then encloses an interior rectangle of size , which is a connected component separated from the rest of the grid and therefore must be covered by at least one loop contained entirely inside . There also remain uncovered cells outside that are not contained in the two boundary-forced loops, so the exterior region requires at least one additional loop.
Thus at least five loops are already forced, leaving no slack, and in fact the interior or exterior regions are not themselves rectangular borders and therefore require more than one loop, giving a contradiction. If or , then already contains the entire top row or entire left column. Hence the assumed situation is impossible, and must contain the entire top row or the entire left column.
Lemma 2. In a partition of the grid into five rectangular cell loops, the loop containing cannot be the border of a or rectangle with odd.
Proof. By symmetry, it suffices to rule out a corner loop with odd and . Let be such a loop. Removing the border of leaves two regions: a right strip of size and an interior rectangle of size . Since is odd, both and are odd.
We claim that no rectangle of even height at least and odd width can be partitioned into rectangular cell loops. Assuming this claim, either the right strip, which has height and odd width at least , or the interior rectangle, which has height and odd width when (and width when ), is not loop-partitionable. This contradicts the assumption that the original grid was partitioned into loops. Thus cannot be odd.
To prove the claim, suppose an rectangle with even and odd can be partitioned into loops. Consider the loop containing its top-left corner. If this loop spans the full width , then it has height at least and encloses an interior rectangle of width , which is still odd, and height at least . If the height is , the interior has height and cannot be tiled by loops; if the height is larger, we obtain a smaller even-by-odd rectangle, contradicting minimality.
If instead the corner loop spans the full height with some width , then removing it leaves an rectangle with odd. Since , this reduces the odd width by at least while preserving even height at least . Repeating this process eventually produces an or rectangle, neither of which can be partitioned into loops, since every loop has width at least and any attempt creates an interior strip of width .
This contradiction proves the claim and hence the lemma.
~Gray_Wolf
Solution 2
After building some intuition for this problem, we can see that all loops must be either "vertical" (with or "horizontal" (with ), except for the case where 5 loops are all nested within each other (which has both). We may do this using an area argument: [it's hard to state but just trust me. placeholder box] Each loop may complete 2 rows or 2 columns at maximum. Therefore we may consider the vertical case.
We may then pose an equivalent problem: Let us represent each loop as a pair of parentheses. For example, ()()()()() represents 5 loops such that none are nested, ((((())))) represents all the loops being nested. Then, this is the same as the 5th Catalan number which is . The answer is therefore
Additionally, we can see that my SCHLONG is ABSOLUTELY MASSIVE, adding another 2 to the answer, therefore the answer is 85. thank you for listening to my ted talk
~SilverRush and founder of aops
Engineer's induction doesn't work
If one solves the same problem but with cell loop and a grid, cell loops and a grid, cell loops and a grid, and cell loops and a grid, one obtains the answers , , , and . But the answer to the actual AIME problem is not .