Cut the knot: learn to enjoy mathematics
A math books store at a unique math study site. Shopping at the store helps maintain the site. Thank you.
Math & English enrichment at SchoolPlus-Online
HoodaMath: games and movies
Sites for teachers
Sites for parents
Terms of use
Awards
Interactive Activities

CTK Exchange
CTK Wiki Math
CTK Insights - a blog
Math Help

III Millennium Olympiad

Games & Puzzles
What Is What
Arithmetic/Algebra
Geometry
Probability
Outline Mathematics
Make an Identity
Book Reviews
Stories for Young
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
Privacy Policy

Guest book
News sites

Recommend this site

Games to relax

Sites for teachers
Sites for parents

Education & Parenting

Manifesto: what CTK is about 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-2009 Alexander Bogomolny

33062584Page copy protected against web site content infringement by Copyscape


Search:
Keywords:

Google
Web CTK