# I can't solve this puzzle that's been on my own website for at least 5 years

**URL:** <https://boards.straightdope.com/t/i-cant-solve-this-puzzle-thats-been-on-my-own-website-for-at-least-5-years/593603>\
**Category:** The Game Room\
**Created:** [August 22, 2011, 1:55am UTC](https://boards.straightdope.com/t/i-cant-solve-this-puzzle-thats-been-on-my-own-website-for-at-least-5-years/593603 "2011-08-22T01:55:16Z")\
**Posts on this page:** 20\
**Page:** 1

<div class="post-metadata">

**Author:** ![OpalCat](https://avatars.discourse-cdn.com/v4/letter/o/8edcca/32.png) [@OpalCat](https://boards.straightdope.com/u/OpalCat)\
**Post date:** [August 22, 2011, 1:55am UTC](https://boards.straightdope.com/t/i-cant-solve-this-puzzle-thats-been-on-my-own-website-for-at-least-5-years/593603/1 "2011-08-22T01:55:16Z")

</div>

I have several free games on my website, that I find entertaining. One of them has been pissing me off lately, though, because I can’t solve it. I don’t even remember if I ever have solved it in the past, I just know that I can’t seem to be able to now.

It’s a simple premise, but I can’t get it. Can you, and then tell me how you got there?

[http://opalcat.com/Fun/puzzle-game-all-lights](http://opalcat.com/Fun/puzzle-game-all-lights)

---

<div class="post-metadata">

**Author:** ![beagledave](https://avatars.discourse-cdn.com/v4/letter/b/6de8d8/32.png) [@beagledave](https://boards.straightdope.com/u/beagledave)\
**Post date:** [August 22, 2011, 2:08am UTC](https://boards.straightdope.com/t/i-cant-solve-this-puzzle-thats-been-on-my-own-website-for-at-least-5-years/593603/2 "2011-08-22T02:08:56Z")

</div>

Looks like [here](http://en.wikipedia.org/wiki/Lights_Out_(game)) would be a good place to start.

And [solutions](http://www.math.osu.edu/~fowler/blog/posts/solutions-to-lights-out/).

---

<div class="post-metadata">

**Author:** ![ultrafilter](https://avatars.discourse-cdn.com/v4/letter/u/3d9bf3/32.png) [@ultrafilter](https://boards.straightdope.com/u/ultrafilter)\
**Post date:** [August 22, 2011, 2:12am UTC](https://boards.straightdope.com/t/i-cant-solve-this-puzzle-thats-been-on-my-own-website-for-at-least-5-years/593603/3 "2011-08-22T02:12:58Z")

</div>

Solved algorithmically:

Assuming the columns are marked A, B, C, D, E and the rows are marked 1, 2, 3, 4, 5, the solution is as follows:  
B1, C1, E1, B2, C2, D2, C3, D3, E3, A4, B4, D4, E4, A5, B5

---

<div class="post-metadata">

**Author:** ![Two\_Many\_Cats](https://avatars.discourse-cdn.com/v4/letter/t/8dc957/32.png) [@Two\_Many\_Cats](https://boards.straightdope.com/u/Two_Many_Cats)\
**Post date:** [August 22, 2011, 3:35am UTC](https://boards.straightdope.com/t/i-cant-solve-this-puzzle-thats-been-on-my-own-website-for-at-least-5-years/593603/4 "2011-08-22T03:35:45Z")

</div>

Well, that light one is sure a head scratcher.

Five years you say? I have one that a substitute teacher assigned us in third grade. She never told us the answer, and I’ve never been able to solve it.

It’s a little visual, so I’ll describe it as well as I can. Picture a sheet of paper. There are three little houses drawn in a row. Beneath the houses, a couple of spaces down, are drawn three little squares representing a power plant, a natural gas plant, and a water pumping station. That’s one little square (plant) drawn beneath each house.

The object is to use a pen to connect up the three houses with all three plants drawing three pipelines from each plant, one to each house. The pipelines cannot cross each other.

I’ve spent hours in waiting rooms years ago trying to figure this one out and never have. Has anyone else seen this problem? Does anyone know the solution?

---

<div class="post-metadata">

**Author:** ![Mahaloth](https://sea3.discourse-cdn.com/straightdope/user_avatar/boards.straightdope.com/mahaloth/32/1079_2.png) [@Mahaloth](https://boards.straightdope.com/u/Mahaloth)\
**Post date:** [August 22, 2011, 3:38am UTC](https://boards.straightdope.com/t/i-cant-solve-this-puzzle-thats-been-on-my-own-website-for-at-least-5-years/593603/5 "2011-08-22T03:38:50Z")

</div>

Ultrafilter’s solution worked just fine.

---

<div class="post-metadata">

**Author:** ![Indistinguishable](https://avatars.discourse-cdn.com/v4/letter/i/90ced4/32.png) [@Indistinguishable](https://boards.straightdope.com/u/Indistinguishable)\
**Post date:** [August 22, 2011, 3:40am UTC](https://boards.straightdope.com/t/i-cant-solve-this-puzzle-thats-been-on-my-own-website-for-at-least-5-years/593603/6 "2011-08-22T03:40:07Z")

</div>

> [@Two\_Many\_Cats](#):
>
> I’ve spent hours in waiting rooms years ago trying to figure this one out and never have. Has anyone else seen this problem? Does anyone know the solution?

Yeah, the gotcha is that it’s impossible to solve; in mathematical jargon, the graph K[sub]3, 3[/sub] is [non-planar](http://en.wikipedia.org/wiki/Planar_graph).

---

<div class="post-metadata">

**Author:** ![OpalCat](https://avatars.discourse-cdn.com/v4/letter/o/8edcca/32.png) [@OpalCat](https://boards.straightdope.com/u/OpalCat)\
**Post date:** [August 22, 2011, 4:14am UTC](https://boards.straightdope.com/t/i-cant-solve-this-puzzle-thats-been-on-my-own-website-for-at-least-5-years/593603/7 "2011-08-22T04:14:07Z")

</div>

> [@Two\_Many\_Cats](#):
>
> Well, that light one is sure a head scratcher.
> 
> Five years you say? I have one that a substitute teacher assigned us in third grade. She never told us the answer, and I’ve never been able to solve it.

It’s been on my site for five years. I haven’t been trying to solve it for five years. I generally forget it’s there for years at a time until I stumble across it and give it a go for a few minutes before remembering “oh yeah, this was hard” and giving up.

---

<div class="post-metadata">

**Author:** ![OpalCat](https://avatars.discourse-cdn.com/v4/letter/o/8edcca/32.png) [@OpalCat](https://boards.straightdope.com/u/OpalCat)\
**Post date:** [August 22, 2011, 4:17am UTC](https://boards.straightdope.com/t/i-cant-solve-this-puzzle-thats-been-on-my-own-website-for-at-least-5-years/593603/8 "2011-08-22T04:17:00Z")

</div>

> [@ultrafilter](#):
>
> Solved algorithmically:
> 
> Assuming the columns are marked A, B, C, D, E and the rows are marked 1, 2, 3, 4, 5, the solution is as follows:  
> B1, C1, E1, B2, C2, D2, C3, D3, E3, A4, B4, D4, E4, A5, B5

Hooray! Not sure if I would ever have had the patience to figure that out or not. Thank youuuuuuu.

---

<div class="post-metadata">

**Author:** ![beowulff](https://sea3.discourse-cdn.com/straightdope/user_avatar/boards.straightdope.com/beowulff/32/542_2.png) [@beowulff](https://boards.straightdope.com/u/beowulff)\
**Post date:** [August 22, 2011, 4:24am UTC](https://boards.straightdope.com/t/i-cant-solve-this-puzzle-thats-been-on-my-own-website-for-at-least-5-years/593603/9 "2011-08-22T04:24:53Z")

</div>

> [@ultrafilter](#):
>
> Solved algorithmically:
> 
> Assuming the columns are marked A, B, C, D, E and the rows are marked 1, 2, 3, 4, 5, the solution is as follows:  
> B1, C1, E1, B2, C2, D2, C3, D3, E3, A4, B4, D4, E4, A5, B5

Interestingly, it doesn’t matter what order you click the squares.

---

<div class="post-metadata">

**Author:** ![Indistinguishable](https://avatars.discourse-cdn.com/v4/letter/i/90ced4/32.png) [@Indistinguishable](https://boards.straightdope.com/u/Indistinguishable)\
**Post date:** [August 22, 2011, 4:29am UTC](https://boards.straightdope.com/t/i-cant-solve-this-puzzle-thats-been-on-my-own-website-for-at-least-5-years/593603/10 "2011-08-22T04:29:57Z")

</div>

> [@beowulff](#):
>
> Interestingly, it doesn’t matter what order you click the squares.

Right: each click on a particular button just says “Flip the lights of these particular squares”; re-ordering the clicks doesn’t change the total number of times any square gets flipped.

(And, of course, we have the added nicety that clicking any square twice is as good as not clicking it at all, since double flipping cancels out.)

---

<div class="post-metadata">

**Author:** ![Indistinguishable](https://avatars.discourse-cdn.com/v4/letter/i/90ced4/32.png) [@Indistinguishable](https://boards.straightdope.com/u/Indistinguishable)\
**Post date:** [August 22, 2011, 4:57am UTC](https://boards.straightdope.com/t/i-cant-solve-this-puzzle-thats-been-on-my-own-website-for-at-least-5-years/593603/11 "2011-08-22T04:57:59Z")

</div>

> [@Indistinguishable](#):
>
> Yeah, the gotcha is that it’s impossible to solve; in mathematical jargon, the graph K[sub]3, 3[/sub] is [non-planar](http://en.wikipedia.org/wiki/Planar_graph).

I was lazy before, but let me explain more accessibly why the pipe puzzle is impossible to solve:

As you go from house to plant to another house to another plant to the last house to the last plant and then back to the first house, you draw a loop out of six pipes. If the loop doesn’t intersect itself, it acts as a border separating the Earth into two regions: the “inside” and “outside” of the loop.

That leaves three pipes to place; avoiding intersections means each time you place one of these pipes, you place it entirely within an existing region (splitting that region into two). Thus, after laying all the pipes, we’d be up to 5 regions on the Earth, separated by the pipe-borders.

But!

Each region’s border contains an even number of pipes (since pipes alternate between houses and plants). And the number can’t be just two (in that case, the second pipe would just be going between the same buildings as the first pipe).

So each region’s border has at least 4 pipes.

Since we have 5 regions, and each pipe borders 2 regions, that means we must have at least 5 \* 4 / 2 = 10 pipes [to pull this off without intersections].

But we don’t. We only have 9 pipes. And so it’s impossible to pull this off without intersections.

---

<div class="post-metadata">

**Author:** ![BigT](https://sea3.discourse-cdn.com/straightdope/user_avatar/boards.straightdope.com/bigt/32/12044_2.png) [@BigT](https://boards.straightdope.com/u/BigT)\
**Post date:** [August 22, 2011, 5:04am UTC](https://boards.straightdope.com/t/i-cant-solve-this-puzzle-thats-been-on-my-own-website-for-at-least-5-years/593603/12 "2011-08-22T05:04:19Z")

</div>

It’s not impossible, though, because the houses are not points. It never says you can’t go [under another house](http://puzzles.nigelcoldwell.co.uk/twentysix.htm).

---

<div class="post-metadata">

**Author:** ![Chronos](https://sea3.discourse-cdn.com/straightdope/user_avatar/boards.straightdope.com/chronos/32/134_2.png) [@Chronos](https://boards.straightdope.com/u/Chronos)\
**Post date:** [August 22, 2011, 5:11am UTC](https://boards.straightdope.com/t/i-cant-solve-this-puzzle-thats-been-on-my-own-website-for-at-least-5-years/593603/13 "2011-08-22T05:11:58Z")

</div>

I’m very surprised that **ultrafilter** ’s solution is not symmetric-- Usually the solutions to this sort of puzzle are. I’d expect that for each room, there’d be a set of switchings which would toggle exactly that room, and that a total solution could be obtained just by XORing all of those sets together, which would (or at least could) lead to a symmetric solution.

---

<div class="post-metadata">

**Author:** ![Indistinguishable](https://avatars.discourse-cdn.com/v4/letter/i/90ced4/32.png) [@Indistinguishable](https://boards.straightdope.com/u/Indistinguishable)\
**Post date:** [August 22, 2011, 6:02am UTC](https://boards.straightdope.com/t/i-cant-solve-this-puzzle-thats-been-on-my-own-website-for-at-least-5-years/593603/14 "2011-08-22T06:02:19Z")

</div>

Nope: a symmetric solution can’t individually toggle the center (if symmetry includes reflection across the orthogonal and diagonal axes). There’s six kinds of buttons, up to such symmetry, but their actions only span a five-dimensional space. Specifically, their span is the actions which preserve parity along C1, C2, C3. This of course means it’s impossible to symmetrically solve the puzzle.

---

<div class="post-metadata">

**Author:** ![Indistinguishable](https://avatars.discourse-cdn.com/v4/letter/i/90ced4/32.png) [@Indistinguishable](https://boards.straightdope.com/u/Indistinguishable)\
**Post date:** [August 22, 2011, 6:15am UTC](https://boards.straightdope.com/t/i-cant-solve-this-puzzle-thats-been-on-my-own-website-for-at-least-5-years/593603/15 "2011-08-22T06:15:23Z")

</div>

> [@Indistinguishable](#):
>
> Specifically, their span is the actions which preserve parity along C1, C2, C3.

Er, the symmetric such actions, of course.

Actually, the same invariant is also preserved even if one only demands symmetry under orthogonal reflection and not diagonal reflection. So one cannot find a solution with even that weaker form of symmetry.

---

<div class="post-metadata">

**Author:** ![Indistinguishable](https://avatars.discourse-cdn.com/v4/letter/i/90ced4/32.png) [@Indistinguishable](https://boards.straightdope.com/u/Indistinguishable)\
**Post date:** [August 22, 2011, 6:30am UTC](https://boards.straightdope.com/t/i-cant-solve-this-puzzle-thats-been-on-my-own-website-for-at-least-5-years/593603/16 "2011-08-22T06:30:24Z")

</div>

_ignore this post_

---

<div class="post-metadata">

**Author:** ![Smeghead](https://avatars.discourse-cdn.com/v4/letter/s/f1d935/32.png) [@Smeghead](https://boards.straightdope.com/u/Smeghead)\
**Post date:** [August 22, 2011, 10:54am UTC](https://boards.straightdope.com/t/i-cant-solve-this-puzzle-thats-been-on-my-own-website-for-at-least-5-years/593603/17 "2011-08-22T10:54:33Z")

</div>

> [@Indistinguishable](#):
>
> _ignore this post_

Consider it ignored.

---

<div class="post-metadata">

**Author:** ![twickster](https://avatars.discourse-cdn.com/v4/letter/t/ec9cab/32.png) [@twickster](https://boards.straightdope.com/u/twickster)\
**Post date:** [August 22, 2011, 12:14pm UTC](https://boards.straightdope.com/t/i-cant-solve-this-puzzle-thats-been-on-my-own-website-for-at-least-5-years/593603/18 "2011-08-22T12:14:52Z")

</div>

Moved MPSIMS --\> the Game Room.

---

<div class="post-metadata">

**Author:** ![davidm](https://sea3.discourse-cdn.com/straightdope/user_avatar/boards.straightdope.com/davidm/32/225_2.png) [@davidm](https://boards.straightdope.com/u/davidm)\
**Post date:** [August 22, 2011, 2:18pm UTC](https://boards.straightdope.com/t/i-cant-solve-this-puzzle-thats-been-on-my-own-website-for-at-least-5-years/593603/19 "2011-08-22T14:18:55Z")

</div>

> [@BigT](#):
>
> It’s not impossible, though, because the houses are not points. It never says you can’t go [under another house](http://puzzles.nigelcoldwell.co.uk/twentysix.htm).

Isn’t that violating the spirit of the puzzle?  
When I learned this I was told that you can’t do that.

---

<div class="post-metadata">

**Author:** ![Hoopy\_Frood](https://sea3.discourse-cdn.com/straightdope/user_avatar/boards.straightdope.com/hoopy_frood/32/8452_2.png) [@Hoopy\_Frood](https://boards.straightdope.com/u/Hoopy_Frood)\
**Post date:** [August 22, 2011, 4:31pm UTC](https://boards.straightdope.com/t/i-cant-solve-this-puzzle-thats-been-on-my-own-website-for-at-least-5-years/593603/20 "2011-08-22T16:31:42Z")

</div>

> [@davidm](#):
>
> Isn’t that violating the spirit of the puzzle?  
> When I learned this I was told that you can’t do that.

How can you violate the spirit of a puzzle that isn’t solveable?

An unsolveable puzzle is in of itself a violation of the spirit of puzzles to begin with…since, ya know the point is to solve them.

Unless the real point is to determine it’s unsolveable, but most people who haven’t studied graph theory aren’t going to realize it. Heck, I have studied some graph theory (though, I never use it, and hated it when I had to study it) and I wouldn’t have figured that puzzle unsolveable if you treat each plant/house as a vertex just by looking/hearing about it.

[Next page](https://boards.straightdope.com/t/i-cant-solve-this-puzzle-thats-been-on-my-own-website-for-at-least-5-years/593603.md?page=2)
