Qm
BrainteasersJane Street

If every tile has an integer side, so does the whole rectangle

A large rectangle is divided into finitely many smaller rectangles, with sides parallel to those of the large one. Each small rectangle has at least one side whose length is a whole number (the other side may be anything).

Prove that the large rectangle also has at least one side of whole-number length.

There are several proofs; the most elegant uses a colouring.

Show a hint

Colour the plane as a checkerboard with squares of side one half, with a corner of the big rectangle at a corner of the pattern. Show that any rectangle with an integer side, in any position, contains equal amounts of black and white. Then look at the whole rectangle.

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

Straight trominoes and the one uncovered squareTwo opposite points with the same temperatureTiling a hexagon with lozengesChameleons changing colorsA domino tiling with no fault line
All questions →