You are playing a game. A rectangle covers two adjacent squares (oriented either horizontally or vertically) of a grid of squares, but you are not told which two squares are covered. Your goal is to find at least one square that is covered by the rectangle. A "turn" consists of you guessing a square, after which you are told whether that square is covered by the hidden rectangle. What is the minimum number of turns you need to ensure that at least one of your guessed squares is covered by the rectangle?
- A)
- B)
- C)
- D)
- E)
Answer
C
Key insight
Every possible rectangle covers one of the four middle-of-edge squares, so 4 guesses always work. Three guesses can touch at most 10 of the 12 rectangle positions.
Solution
In the worst case you are told "no" every time until you hit. So you need a set of squares that touches every possible position of the hidden rectangle. This is a "least number" question, so there are two halves: show turns always work, then show turns can fail.
Name the squares: corners, edge squares (the middle of each side), and center.
Part 1: four turns are enough.
- There are positions for the rectangle: in each of the rows it can sit in places ( horizontal), and in each of the columns it can sit in places ( vertical).
- Look at which squares sit next to each other. A corner only touches edge squares. The center only touches edge squares. So any two squares side by side include an edge square.
- That means every one of the positions covers at least one edge square. Guess the edge squares, and one of them must be covered.
Part 2: three turns are not enough.
4. Count how many of the positions cover each kind of square:
- a corner: positions (one horizontal, one vertical),
- an edge square: positions,
- the center: positions.
5. Any three guesses together touch at most positions. That is fewer than .
6. So there is always some position that none of your three guesses touches. If the rectangle is there, you get three "no" answers and have not found it.
Four works and three does not, so the answer is .
The answer is .
Why this works
"Guarantee a hit" means your guesses must touch every possibility. To find a good set, look for squares that every possibility has to use. To prove you cannot do better, count how many possibilities each guess can touch and show a smaller set cannot touch them all.
The trap
Guessing that 3 turns are enough (for example the center plus two corners) without finding a rectangle position that misses all three.
Concise solution
In the worst case every answer is "no" until we hit, so we need a set of squares that meets every possible placement of the rectangle.
There are placements: horizontal and vertical. Each placement pairs two adjacent squares, and adjacent squares are always a corner and an edge-middle square, or an edge-middle square and the center. So every placement contains one of the four edge-middle squares. Guessing those four squares guarantees a hit: turns suffice.
Three turns cannot suffice. Count how many placements contain a given square: a corner lies in , an edge-middle square in , the center in . Any three squares therefore meet at most placements, fewer than . Some placement avoids all three guesses, and the hidden rectangle could be exactly that one, so three "no" answers are always possible.
The answer is .
Review in the AoPS books
- Introduction to Counting & Probability, Chapter 5: More With Combinations (§5.2)
- Intermediate Counting & Probability, Chapter 13: Events With States (§13.4)
Techniques
Bound the quantity above/below or estimate to pin it down · Consider the largest/smallest element or boundary case