Qm

A rectangle of one colour is unavoidable

Every point with whole-number coordinates in the plane is coloured either red or blue, in any pattern whatsoever, as chaotic as you like.

Prove that there is always a rectangle, with sides parallel to the axes, whose four corner points all have the same colour. How small a region of the grid is guaranteed to contain one?

Show a hint

Look at just three consecutive rows and several consecutive columns. Each column, restricted to those three rows, shows a pattern of three colours. How many different patterns are there, and what does any single pattern contain?

Your answer

Solving needs a free account

Answers, streaks and solutions unlock when you are signed in. Reading the question and the hint stays free.

Discussion

Sign in to join the discussion · reading is open to everyone

💡 Discussion rules

  1. No full solutions here. Hints and approaches only.
  2. Complexity, edge cases and intuition are the point.
  3. Interview experiences are welcome. Respect your NDAs.

Loading discussion…

Learn the concepts

The theory behind this question.

Related questions

Six people, and a triangle you can't avoidEight batteries, four good, one flashlightA run of days that nets a multiple of nEvery year has a Friday the 13thFifty-one ants and a small square card
All questions →