返回题库

AIME 2026 I · 第 15 题

AIME 2026 I — Problem 15

专题
Contest Math
难度
L4
来源
AIME

题目详情

Problem

Let a,b,a, b, and nn be positive integers with both aa and bb greater than or equal to 22 and less than or equal to 2n.2n.{} Define an a×ba \times b cell loop in a 2n×2n2n \times 2n grid of cells to be the 2a+2b42a + 2b - 4 cells that surround an (a2)×(b2)(a - 2) \times (b - 2) (possibly empty) rectangle of cells in the grid. For example, the following diagram shows a way to partition a 6×66 \times 6 grid of cells into 44 cell loops.

AIME diagram

Find the number of ways to partition a 10×1010\times10 grid of cells into 55 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 22.

In any partition of the 10×1010\times10 grid into 55 loops, the loop containing the corner cell (1,1)(1,1) 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 10×210\times2, 10×410\times4, 10×610\times6, 10×810\times8, or 10×1010\times10. Odd widths are impossible, and smaller shapes fail; these facts will also be proved later.

If the corner loop is 10×1010\times10, then removing it leaves an 8×88\times8 square, which has already been shown by direct casework to admit exactly 2727 partitions into 44 loops.

If the corner loop is 10×810\times8, then removing it leaves a 10×210\times2 strip and an 8×68\times6 rectangle. The strip is forced to be one loop, and the 8×68\times6 rectangle has already been shown to admit exactly 55 partitions into 33 loops. This gives 55 partitions in this case.

If the corner loop is 10×610\times6, then removing it leaves a 10×410\times4 strip and an 8×48\times4 rectangle. Each of these must use exactly 22 loops. A 10×410\times4 rectangle can be partitioned into 22 loops in 22 ways, and an 8×48\times4 rectangle can be partitioned into 22 loops in 22 ways, giving 22=42\cdot2=4 partitions.

If the corner loop is 10×410\times4, then removing it leaves a 10×610\times6 rectangle and an 8×28\times2 strip. The strip is forced to be one loop, and the 10×610\times6 rectangle admits exactly 55 partitions into 33 loops, giving 55 partitions.

If the corner loop is 10×210\times2, then removing it leaves a 10×810\times8 rectangle, which has already been shown to admit exactly 1414 partitions into 44 loops.

By symmetry, the horizontal cases 2×102\times10, 4×104\times10, 6×106\times10, and 8×108\times10 contribute the same numbers as 10×210\times2, 10×410\times4, 10×610\times6, and 10×810\times8 respectively, while the 10×1010\times10 case is self-symmetric and counted once.

Adding all cases gives 27+2(14+5+4+5)=83.27+2(14+5+4+5)=\boxed{83}.

Thus, there are exactly 8383 ways to partition the 10×1010\times10 grid into 55 loops.

Proof, for those who care

Lemma 1. In any partition of the 10×1010\times10 grid into five rectangular cell loops, the loop containing the cell (1,1)(1,1) must contain either the entire top row or the entire left column.

Proof. Let LL be the loop containing (1,1)(1,1). Since every loop is the border of an axis-aligned rectangle of cells, LL is the border of some r×cr\times c rectangle whose top-left corner is (1,1)(1,1). Thus LL occupies the cells (1,j)(1,j) for 1jc1\le j\le c and (i,1)(i,1) for 1ir1\le i\le r.

Suppose for contradiction that LL contains neither the entire top row nor the entire left column, so r9r\le9 and c9c\le9. Then the boundary cells (1,c+1),(1,c+2),,(1,10)(1,c+1),(1,c+2),\dots,(1,10) are uncovered, as are the boundary cells (r+1,1),(r+2,1),,(10,1)(r+1,1),(r+2,1),\dots,(10,1).

Any loop containing one of the uncovered cells on the top row must have its rectangular border’s top edge on row 11 and cannot intersect LL, so such cells force the existence of a loop disjoint from LL and lying entirely to the right of LL. Similarly, the uncovered cells on the left column force the existence of a loop disjoint from LL and lying entirely below LL. These two loops are distinct, since a single rectangle border cannot cover both separated boundary portions without crossing LL.

If r3r\ge3 and c3c\ge3, then LL encloses an interior rectangle of size (r2)×(c2)(r-2)\times(c-2), 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 LL. There also remain uncovered cells outside LL 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 r=2r=2 or c=2c=2, then LL already contains the entire top row or entire left column. Hence the assumed situation is impossible, and LL must contain the entire top row or the entire left column.

Lemma 2. In a partition of the 10×1010\times10 grid into five rectangular cell loops, the loop containing (1,1)(1,1) cannot be the border of a 10×k10\times k or k×10k\times10 rectangle with kk odd.

Proof. By symmetry, it suffices to rule out a 10×k10\times k corner loop with kk odd and k9k\le9. Let LL be such a loop. Removing the border of LL leaves two regions: a right strip of size 10×(10k)10\times(10-k) and an interior rectangle of size 8×(k2)8\times(k-2). Since kk is odd, both 10k10-k and k2k-2 are odd.

We claim that no rectangle of even height at least 44 and odd width can be partitioned into rectangular cell loops. Assuming this claim, either the right strip, which has height 1010 and odd width at least 11, or the interior rectangle, which has height 88 and odd width when k5k\ge5 (and width 11 when k=3k=3), is not loop-partitionable. This contradicts the assumption that the original grid was partitioned into loops. Thus kk cannot be odd.

To prove the claim, suppose an m×wm\times w rectangle with m4m\ge4 even and ww odd can be partitioned into loops. Consider the loop containing its top-left corner. If this loop spans the full width ww, then it has height at least 33 and encloses an interior rectangle of width w2w-2, which is still odd, and height at least 11. If the height is 33, the interior has height 11 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 mm with some width tt, then removing it leaves an m×(wt)m\times(w-t) rectangle with wtw-t odd. Since t2t\ge2, this reduces the odd width by at least 22 while preserving even height at least 44. Repeating this process eventually produces an m×1m\times1 or m×3m\times3 rectangle, neither of which can be partitioned into loops, since every loop has width at least 22 and any attempt creates an interior strip of width 11.

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 aba\geq b or "horizontal" (with bab\geq a), 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 4242. The answer is therefore 4221=08342\cdot2-1=083

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 11 cell loop and a 2×22 \times 2 grid, 22 cell loops and a 4×44 \times 4 grid, 33 cell loops and a 6×66 \times 6 grid, and 44 cell loops and a 8×88 \times 8 grid, one obtains the answers 11, 33, 99, and 2727. But the answer to the actual AIME problem is not 8181.