Flipping Colors

Join Our Community of Science Lovers!


On supporting science journalism

If you're enjoying this article, consider supporting our award-winning journalism by subscribing. By purchasing a subscription you are helping to ensure the future of impactful stories about the discoveries and ideas shaping our world today.


The well-known knight's tour problem is the challenge of placing a chess-piece knight at a starting position on a chessboard and having it visit every square on the board exactly once. (You will recall that in chess, a knight performs L-shaped moves that go two squares in one direction and then one at right angles to it. Recall also that it doesn¿t matter if there are pieces on any of those intermediate squares. The knight effectively jumps over them.) You can look up the knight's tour problem as an aid to the much harder puzzle I'm going to ask you to do. In fact, you may decide my problem is not even possible.

This puzzle also concerns a knight, but unlike in chess, we are going to suppose that the knight walks (or trots, if you wish) two squares vertically and then one horizontally (or, if you prefer, two horizontally and one vertically). No jumping for these horses. This walk flips the colors of all the squares along that L-shaped path (not including the starting square, but including the final square). The problem is to flip the color of all the squares on the board assuming that when you place the knight on a square to start, you flip the color of that square first.

Can it be done? If so, how fast? If not, why not?

It’s Time to Stand Up for Science

If you enjoyed this article, I’d like to ask for your support. Scientific American has served as an advocate for science and industry for 180 years, and right now may be the most critical moment in that two-century history.

I’ve been a Scientific American subscriber since I was 12 years old, and it helped shape the way I look at the world. SciAm always educates and delights me, and inspires a sense of awe for our vast, beautiful universe. I hope it does that for you, too.

If you subscribe to Scientific American, you help ensure that our coverage is centered on meaningful research and discovery; that we have the resources to report on the decisions that threaten labs across the U.S.; and that we support both budding and working scientists at a time when the value of science itself too often goes unrecognized.

In return, you get essential news, captivating podcasts, brilliant infographics, can't-miss newsletters, must-watch videos, challenging games, and the science world's best writing and reporting. You can even gift someone a subscription.

There has never been a more important time for us to stand up and show why science matters. I hope you’ll support us in that mission.

Thank you,

David M. Ewalt, Editor in Chief, Scientific American

Subscribe