Saturday, October 25, 2008

Painted Plane III solution

See the original puzzle

This puzzle requires a slightly different angle then the previous Painted Plane puzzles. We're going to use what's called the Pigeonhole Principle. The Pigeonhole Principle states that if we have more pigeons than pigeonholes, then there must exist a pigeonhole with more than one pigeon.

For example, let's say we have three points. Each one is colored either red or blue. Therefore, there must be at least two points which are the same color.

So here's the solution. Consider a grid of points, with three rows and nine columns.* In each column, there must exist two points which are the same color. Each column has 8 possible colorings, but there are 9 columns. Therefore, there must be two columns with the same coloring. Those two columns must contain a singly-colored rectangle.

*It's actually possible to prove it with only three rows and seven columns, but the proof is slightly harder to explain.


In the second problem, let's say we have N colors. We simply need to choose a larger grid of points, with N+1 rows and 2N+1+1 columns. Each column must contain two points of the same color. Each column has 2N+1 possible colorings. Therefore, there must exist two columns which are identically colored. Therefore, there must exist a singly-colored rectangle. Done.

2 comments:

Linda said...

Hi Miller!

I saw this and thought of you. Have you heard of it?

http://2dboy.com/games.php

miller said...

No, but I have seen many similar physics-based games. But rarely do they look so slick.

Trouble is, I'm usually terrible at physics-based games. They don't teach us that in analytic mechanics!