Maths Olympiad Prep

Library / /506 of 520

Combinatorics Difficulty 7.6 National olympiad, round 2 Prove it

For a positive integer nn, an nn-staircase is a figure consisting of unit squares, with one square in the first row, two squares in the second row, and so on, up to nn squares in the nth n^{\text {th }} row, such that all the left-most squares in each row are aligned vertically. For example, the 5 -staircase is shown below.

!

Let f(n)f(n) denote the minimum number of square tiles required to tile the nn staircase, where the side lengths of the square tiles can be any positive integer. For example, f(2)=3f(2)=3 and f(4)=7f(4)=7.
!

(a) Find all nn such that f(n)=nf(n)=n.

(b) Find all nn such that f(n)=n+1f(n)=n+1.

Solution

(a) A diagonal square in an nn-staircase is a unit square that lies on the diagonal going from the top-left to the bottom-right. A minimal tiling of an nn-staircase is a tiling consisting of f(n)f(n) square tiles.

Observe that f(n)nf(n) \geq n for all nn. There are nn diagonal squares in an nn-staircase, and a square tile can cover at most one diagonal square, so any tiling requires at least nn square tiles. In other words, f(n)nf(n) \geq n. Hence, if f(n)=nf(n)=n, then each square tile covers exactly one diagonal square.

Let nn be a positive integer such that f(n)=nf(n)=n, and consider a minimal tiling of an nn-staircase. The only square tile that can cover the unit square in the first row is the unit square itself.

!

## Sun Life Financial

!
that can cover this unit square and a diagonal square is a 4×44 \times 4 square tile.

!

Continuing this construction, we see that the side lengths of the square tiles we encounter will be 1,2,41,2,4, and so on, up to 2k2^{k} for some nonnegative integer kk. Therefore, nn, the height of the nn-staircase, is equal to 1+2+4++2k=2k+111+2+4+\cdots+2^{k}=2^{k+1}-1. Alternatively, n=2k1n=2^{k}-1 for some positive integer kk. Let p(k)=2k1p(k)=2^{k}-1.

Conversely, we can tile a p(k)p(k)-staircase with p(k)p(k) square tiles recursively as follows: We have that p(1)=1p(1)=1, and we can tile a 1 -staircase with 1 square tile. Assume that we can tile a p(k)p(k)-staircase with p(k)p(k) square tiles for some positive integer kk.

Consider a p(k+1)p(k+1)-staircase. Place a 2k×2k2^{k} \times 2^{k} square tile in the bottom left corner. Note that this square tile covers a diagonal square. Then p(k+1)2k=p(k+1)-2^{k}= 2k+112k=2k1=p(k)2^{k+1}-1-2^{k}=2^{k}-1=p(k), so we are left with two p(k)p(k)-staircases.

!

Furthermore, these two p(k)p(k)-staircases can be tiled with 2p(k)2 p(k) square tiles, which means we use 2p(k)+1=p(k+1)2 p(k)+1=p(k+1) square tiles.

Therefore, f(n)=nf(n)=n if and only if n=2k1=p(k)n=2^{k}-1=p(k) for some positive integer kk. In other words, the binary representation of nn consists of all 1 s1 \mathrm{~s}, with no 0 s0 \mathrm{~s}.

(b) Let nn be a positive integer such that f(n)=n+1f(n)=n+1, and consider a minimal tiling of an nn-staircase. Since there are nn diagonal squares, every square tile except one covers a diagonal square. We claim that the square tile that covers the bottom-left unit square must be the square tile that does not cover a diagonal square.

If nn is even, then this fact is obvious, because the square tile that covers the bottom-left unit square cannot cover any diagonal square, so assume that nn is odd. Let n=2m+1n=2 m+1. We may assume that n>1n>1, so m1m \geq 1. Suppose that the square tile covering the bottom-left unit square also covers a diagonal square. Then the side length of this square tile must be m+1m+1. After this (m+1)×(m+1)(m+1) \times(m+1) square tile has been placed, we are left with two mm-staircases.

!

Hence, f(n)=2f(m)+1f(n)=2 f(m)+1. But 2f(m)+12 f(m)+1 is odd, and n+1=2m+2n+1=2 m+2 is even, so f(n)f(n) cannot be equal to n+1n+1, contradiction. Therefore, the square tile that covers the bottom-left unit square is the square tile that does not cover a diagonal square.

Let tt be the side length of the square tile covering the bottom-left unit square. Then every other square tile must cover a diagonal square, so by the same construction as in part (a), n=1+2+4++2k1+t=2k+t1n=1+2+4+\cdots+2^{k-1}+t=2^{k}+t-1 for some positive integer kk. Furthermore, the top p(k)=2k1p(k)=2^{k}-1 rows of the nn-staircase must be tiled the same way as the minimal tiling of a p(k)p(k)-staircase. Therefore, the horizontal line between rows p(k)p(k) and p(k)+1p(k)+1 does not pass through any square tiles. Let us call such a line a fault line. Similarly, the vertical line between columns tt and t+1t+1 is also a fault line. These two fault lines partition two p(k)p(k)-staircases.

!

If these two p(k)p(k)-staircases do not overlap, then t=p(k)t=p(k), so n=2p(k)n=2 p(k). For example, the minimal tiling for n=2p(2)=6n=2 p(2)=6 is shown below.

!

Hence, assume that the two p(k)p(k)-staircases do overlap. The intersection of the two p(k)p(k)-staircases is a [p(k)t][p(k)-t]-staircase. Since this [p(k)t][p(k)-t]-staircase is tiled the same way as the top p(k)tp(k)-t rows of a minimal tiling of a p(k)p(k)-staircase, p(k)t=p(l)p(k)-t=p(l) for some positive integer ll.

where kk is a positive integer. Also, our argument shows how if nn is of this form, then an nn-staircase can be tiled with n+1n+1 square tiles.

Finally, we observe that nn is of this form if and only if the binary representation of nn contains exactly one 0:

2k+12l1=111kl1 s0111l1 s 2^{k+1}-2^{l}-1=\underbrace{11 \ldots 1}_{k-l 1 \mathrm{~s}} 0 \underbrace{11 \ldots 1}_{l 1 \mathrm{~s}} \text {. }

Want a route through all this instead of an archive? The track puts 2,000 problems in a working order, from AMC 10 level to the IMO shortlist.

Source: NuminaMath-1.5, licensed Apache-2.0. Statement and solution reproduced as published; topic and difficulty added by this site.