TOPICS
Search

Rectangle Tiling


RectangleTiling

Rectangle tiling problems ask how rectangular tiles partition a region. A related counting problem asks how many subrectangles an m×n grid contains. The number N(m,n) can be computed by counting the number of ways in which the upper right-hand corner can be selected for a given lower left-hand corner. For a lower left-hand corner with coordinates (i,j), there are (m-i)(n-j) possible upper right-hand corners, so

N(m,n)=sum_(i=0)^(m-1)sum_(j=0)^(n-1)(m-i)(n-j)
(1)
=1/4m(m+1)n(n+1).
(2)

Equivalently, N(m,n) is the number of ways of picking two lines out of sets of m+1 and n+1 lines, giving

N(m,n)=(m+1; 2)(n+1; 2)
(3)
=1/4m(m+1)n(n+1),
(4)

as before. Particular tilings are shown above for 2×2 and 2×3 rectangles.

In Problem 6 of the 2025 International Mathematical Olympiad, nonoverlapping rectangles with sides on grid lines cover an n×n board except for exactly one unit square in each row and column, with n=2025 (International Mathematical Olympiad 2025). For n>=2, the minimum number of tiles is [n+2sqrt(n)-3], where [x] is the ceiling function (Chen 2026). For n=2, 3, ..., the minima begin 2, 4, 5, 7, 8, 10, 11, ... (OEIS A183869), with OEIS index n-2.

For the lower bound, read the column indices of the holes in row order as a permutation. If its longest increasing and decreasing subsequences have lengths a and b, then ab>=n by the Erdős-Szekeres theorem. The two subsequences guide a marking of cells beside the holes. Counting marks with at most one per tile, and accounting for the boundary, gives at least n+a+b-3 tiles. Since a+b>=2sqrt(ab)>=2sqrt(n), this yields the lower bound n+2sqrt(n)-3 (Chen 2026, 3Blue1Brown 2026).

For n=k^2 with k>=2, one construction begins on the infinite grid. Set M=k^2+1 and, for every pair of integers (i,j) with j=ki  (modM), place a k×k tile in rows i+1 through i+k and columns j through j+k-1. The residues of kr-c, for row r and column c, in any tile run once through 1, 2, ..., k^2. Each nonzero residue determines a unique offset within a tile, so the tiles cover exactly the cells with kr-c≢0  (modM), without overlaps. Restrict to rows and columns 1 through k^2. Since k is relatively prime to M, each row and column then has exactly one hole. There are (k-1)^2 full tiles and k-1 clipped tiles along each side, for a total of k^2+2k-3. With k=45, this gives 2112 tiles and attains the lower bound (Chen 2026, 3Blue1Brown 2026).


See also

Perfect Rectangle, Rectangle, Triangle Tiling

Explore with Wolfram|Alpha

References

3Blue1Brown. "The Last IMO Problem AI Could Not Solve." YouTube. Sep. 18, 2026. https://www.youtube.com/watch?v=Nbwv5wHQoj0.Chen, E. IMO 2025 Solution Notes. Nov. 19, 2026. https://web.evanchen.cc/exams/IMO-2025-notes.pdf.International Mathematical Olympiad. "IMO 2025 Problems." Problem 6, 2025. https://www.imo-official.org/problems/2025/.Stewart, I. "Squaring the Square." Sci. Amer. 277, 94-96, July 1997.Sloane, N. J. A. Sequence A183869 in "The On-Line Encyclopedia of Integer Sequences."

Referenced on Wolfram|Alpha

Rectangle Tiling

Cite this as:

Weisstein, Eric W. "Rectangle Tiling." From MathWorld--A Wolfram Resource. https://mathworld.wolfram.com/RectangleTiling.html

Subject classifications