Cut the knot: learn to enjoy mathematics
A math books store at a unique math study site. Learn to enjoy mathematics.
Google
Web CTK
Best sites for teachers
Sites for teachers
Sites for parents
Terms of use
Awards

Interactive Activities
CTK Exchange
CTK Insights - a blog

Games & Puzzles
What Is What
Arithmetic/Algebra
Geometry
Probability
Outline Mathematics
Make an Identity
Book Reviews
Eye Opener
Analog Gadgets
Inventor's Paradox
Did you know?...
Proofs
Math as Language
Things Impossible
Visual Illusions
My Logo
Math Poll
Cut The Knot!
MSET99 Talk
Other Math sites
Front Page
Movie shortcuts
Personal info
Reciprocal links
Privacy Policy

Guest book
News sites

Recommend this site

Best sites for teachers
Sites for teachers
Sites for parents

Education & Parenting

Manifesto: what CTK is about Search CTK Buying a book is a commitment to learning Table of content Things you can find on CTK Chronology of updates Email to Cut The Knot Recommend this page

Changing Colors

Richard Beigel

Here's a general solution to your first question. It is possible to obtain exactly one white square in an m×n grid iff m = 1 or n = 1.

Proof

The parity argument on your web page shows the following: in every 2×2 subgrid you always have an even number of white squares (operations on other rows and columns don't effect the subgrid). If you get exactly one white square in an m×n grid where m > 1 and n > 1, then consider a 2×2 subgrid containing it.

Here's a general solution to your conjecture. In an nxn grid it is impossible to obtain exactaly k white squares where 0 < k < n.

Lemma

Two adjacent rows are either identically or inversely colored.

Proof

This is true initially, and it is preserved by inverting a row or a column.

Proof of conjecture

If every row is entirely black then there are 0 white squares. So there is some row that contains a white square. If it is entirely white, then there are n white squares. Otherwise it contains m white squares where 1 ≤ m ≤ n - 1. The rows adjacent to it contain m or n-m white squares. Since 1 ≤ n - m ≤ n - 1, every row contains at least one white square.

In fact if the board contains a white square then it contains a white path from one edge to its opposite edge.

One other interesting observation. A coloring is reachable iff every 2×2 subrectangle contains an even number of white squares. The forward direction is proved by your parity argument. The converse follows from the fact that adjacent rows are either identical or complementary.

Copyright © 1996-2008 Alexander Bogomolny

28697530Page copy protected against web site content infringement by Copyscape


Search:
Keywords:


Latest on CTK Exchange
Math
Posted by Laura
2 messages
06:56 AM, Apr-15-08

Divisibility rules - Jargon buste ...
Posted by Carolyn
2 messages
08:35 AM, Apr-04-08

drawing puzzle
Posted by martin gran
31 messages
06:53 PM, May-09-08

Distance to the horizon
Posted by Monty
3 messages
04:38 PM, May-08-08

Mistake on the page (an aside, Be ...
Posted by Max
4 messages
10:28 AM, Feb-28-08

Deriving functions based on diffe ...
Posted by ke_45
1 messages
12:47 PM, May-10-08

A typo in
Posted by alexwajn
1 messages
11:36 PM, Apr-19-08