MathLabs

Problem 6

Consider a 2025×20252025\times2025 grid of unit squares. Matilda wishes to place on the grid some rectangular tiles, possibly of different sizes, such that each side of every tile lies on a grid line and every unit square is covered by at most one tile. Determine the minimum number of tiles Matilda needs to place so that each row and each column of the grid has exactly one unit square that is not covered by any tile.
Step 2 of 6: Construction for n = k²
(k−1)2 square tiles of size k×k + 4(k−1) boundary tiles = k2+2k−3 tiles(k-1)^2\ \text{square tiles of size }k\times k\ +\ 4(k-1)\ \text{boundary tiles}\ =\ k^2+2k-3\ \text{tiles}
Detailed analysis

Here is an explicit construction, not just a picture. Number rows and columns from 11 to nn, put n=k2n=k^2, and leave black the cell Br=(r,  k((r−1) mod k)+k−⌊(r−1)/k⌋)B_r=(r,\;k((r-1)\bmod k)+k-\lfloor(r-1)/k\rfloor) for each 1≤r≤n1\le r\le n. For every 0≤p,q≤k−20\le p,q\le k-2, place one k×kk\times k square tile Tp,qT_{p,q} whose row interval is [2+kp+q, 1+k+kp+q][2+kp+q,\,1+k+kp+q] and whose column interval is [k−p+kq, 2k−1−p+kq][k-p+kq,\,2k-1-p+kq]. The remaining boundary rectangles are these: for 1≤q≤k−11\le q\le k-1, rows [1,q][1,q] and columns [kq+1,k(q+1)][kq+1,k(q+1)]; for 0≤p≤k−20\le p\le k-2, rows [kp+1,k(p+1)][kp+1,k(p+1)] and columns [1,k−1−p][1,k-1-p]; for 1≤p≤k−11\le p\le k-1, rows [kp+1,k(p+1)][kp+1,k(p+1)] and columns [k2−p+1,k2][k^2-p+1,k^2]; for 0≤q≤k−30\le q\le k-3, rows [k2−k+2+q,k2−1][k^2-k+2+q,k^2-1] and columns [kq+1,k(q+1)][kq+1,k(q+1)]; and one last rectangle in row k2k^2 and columns [1,k2−k][1,k^2-k]. Each displayed interval is nonempty in its stated range. The black-cell formula has one cell in every row and column. A direct interval check shows that the k×kk\times k tiles and these boundary rectangles are pairwise disjoint, avoid every BrB_r, and cover every other cell: the four families fill respectively the top, left, right, and bottom gaps around the (k−1)×(k−1)(k-1)\times(k-1) array of square tiles. There are (k−1)2(k-1)^2 square tiles and (k−1)+(k−1)+(k−1)+(k−2+1)=4(k−1)(k-1)+(k-1)+(k-1)+(k-2+1)=4(k-1) boundary tiles, hence (k−1)2+4(k−1)=k2+2k−3(k-1)^2+4(k-1)=k^2+2k-3 tiles.