The houses of Nicholas

In Germany, the problem to the right is known as "Das Haus vom Nikolaus." The left diagram is a "house" that can be drawn with a single stroke of a pen (never drawing the same segment twice). A possible solution is on its right.

Which of the diagrams below can be drawn with a single stroke of a pen?

Duplex house Tower Tent None of the above

This section requires Javascript.
You are seeing this because something didn't load right. We suggest you, (a) try refreshing the page, (b) enabling javascript if it is disabled on your browser and, finally, (c) loading the non-javascript version of this page . We're sorry about the hassle.

6 solutions

We search for an trail in a graph, which visits every edge exactly once (Eulerian path). A node, that is neither the start nor end of this trail, must have an even number of adjacent edges. Because, if a node is visited a total of k k times, it must have exactly 2 k 2k adjacent edges, so that each edge is visited exactly once. To solve the problem we count for each node of the graphs all adjacent edges:

Each graph has several nodes with an odd number of edges. These nodes would have to be start and end points in an Eulerian path. However, both the "duplex house" and the "tower" have more than two odd nodes, so that an Eulerian path is not possible. For the "tent", however, an Eulerian path can be found, as it has exactly two nodes with odd number of edges.

Moderator note:

Patrick Corn mentions it in the comments, but it's worth bringing up here we have a wiki dedicated to Eulerian Paths where you can learn more about this kind of problem.

If I add a node at the center of one of the duplex's "crosses", would an Eulerian path become possible?

Ricardo Romero - 2 years, 11 months ago

Log in to reply

The duplex house has four nodes with an odd number of adjacent edges. An Eulerian path is possible, if the total number of "odd nodes" is either 0 or 2. Just placing an additional node on already existing edges does not reduce the number of "odd nodes". You must add also additional edges, so that "odd nodes" became "even nodes".

An Eulerian path for the duplex house is possible, if you add a new node and (at least) two edges in the right way.

Markus Michelmann - 2 years, 11 months ago

Here is a link to the Eulerian path wiki.

Patrick Corn - 2 years, 11 months ago

The tower is possible well at least I can do it

donutkid1357 Reed - 2 years, 11 months ago

Log in to reply

I agree with this as I have managed to do this my self

donutkid1357 Reed - 2 years, 11 months ago

Log in to reply

can you post the drawing ?

Rajdeep Sharma - 2 years, 11 months ago

Not very surprising that you agree with yourself, but I will be surprised if you show a diagram with the tower drawn with a single continuous line.

I suspect that you have missed an edge with your mind's eye.

Jonathan Quarrie - 2 years, 11 months ago

I found a solution to the duplex so I’m confused about this

Ivan Barry - 2 years, 11 months ago

Log in to reply

If, on the duplex, you label the nodes from left to right, bottom to top so the lower left base of the duplex is node 1 and the top of the right duplex is node 8, A viable solution is

3-2-1-5-3-6-2-4-7-5-8-6-5-4-1

Ivan Barry - 2 years, 11 months ago

Log in to reply

You're missing the connection between 2 and 5.

Jonathan Quarrie - 2 years, 11 months ago

Log in to reply

@Jonathan Quarrie Ahh thank you

Ivan Barry - 2 years, 11 months ago

I don't agree, I found a solution to the duplex home.

Andre Munroe - 2 years, 11 months ago

Log in to reply

Me too. The duplex house is definitely possible.

Jack Smith - 2 years, 11 months ago

Log in to reply

I would love to see your proof. Either a drawing or an explanation of the moves would be great!

Jonathan Quarrie - 2 years, 11 months ago

Solution to the duplex: Starting at the bottom right corner, circle the exterior back to the starting point, then up-right, left, down-right, up, and right.

Andre Munroe - 2 years, 11 months ago

Log in to reply

I'm struggling to follow your instructions. How can you go up-right once you've done a full circle of the exterior when you start at the bottom right corner?

Can you provide a drawing please; or provide a numbering system for the nodes, and then list the steps from node to node - similar to Ivan Berry's system within his comments.

Jonathan Quarrie - 2 years, 11 months ago

Log in to reply

I'm sorry, i just realized that I stated it wrong. Starting from the bottom LEFT, go up and circle the exterior back to the starting point. This leaves us with only the inner strokes left. Then diagonally up and to the right, then straight left, then diagonally down and to the right, then straight up then straight right. This will work as long as they don't count the inner x's as a part of the "house" - dunno how to post a pic, sorry, maybe cause i'm not a premium member.

Andre Munroe - 2 years, 8 months ago

Log in to reply

@Andre Munroe You can post a picture that you've uploaded to the internet somewhere (imgur for example) without needing to be a premier user. Use the following structure:
! [ ] ( h t t p : / / i m a g e u r l ) ![](http://imageurl)
That's, exclamation mark, square brackets, parentheses with the url inside.

Regardless, I'll try to follow your new instructions tonight (when I'm not at work).

Jonathan Quarrie - 2 years, 8 months ago

@Andre Munroe This is what I get following your new instructions.

You cannot draw line 15 \color{#D61F06}\text{line 15} .

Jonathan Quarrie - 2 years, 8 months ago

Log in to reply

@Jonathan Quarrie Oh i was saying assuming the inner lines don't count. Thought they were just construction lines in order to draw the actual "house". But i guess they are needed

Andre Munroe - 2 years, 8 months ago

Log in to reply

@Andre Munroe Yeah, if you don't draw all of the lines, you haven't drawn the diagram.

Jonathan Quarrie - 2 years, 8 months ago

I have also found a solution for duplex house

Amine Kasmi - 2 years, 10 months ago

Log in to reply

All these solutions claimed for the duplex house, but there is yet to be any proof of an actual solution.

Can you provide a drawing or explain your moves, Amine?

Jonathan Quarrie - 2 years, 10 months ago

I can prove that all of them can be drawn in just one stroke.

abraham padua - 2 years, 9 months ago

Log in to reply

Don't just say you can prove it.

Show your proof.

Jonathan Quarrie - 2 years, 9 months ago
Zico Quintina
May 2, 2018

The tent is the only one of the graphs that can be traced in the manner described because the other two graphs have more than two nodes at which an ODD number of edges meet.

Informally, the reasoning is fairly simple. Consider any node that is neither the beginning nor end of the path you trace. Every time the path enters such a node, it must also exit it. Since the path must travel over every edge once and only once, this implies that every node (other than possibly the beginning and end nodes of the path) must connect an EVEN number of edges. Therefore if there are more than two nodes connecting an ODD number of edges, no path can go over every edge once and only once.

As for the beginning and end nodes, there are two possibilities. Either the path begins and ends at the same node, in which case it, too, must connect an even number of edges; or the path begins and ends at different nodes, in which case those two nodes will necessarily connect an odd number of edges.

Thus, the only graphs that can be traced under the given conditions are ones that have exactly zero or two nodes connecting an odd number of edges.

But I am able to draw the double duplex house with a single stroke by continuing the last line of single duplex house! How do I post an image?

Pranay Bansal - 2 years, 11 months ago

Log in to reply

I think you can publish a solution only if you have the right answer

Angie Giselle Morocho Alburqueque - 2 years, 11 months ago

Log in to reply

And how do I publish a solution? I dont see any option.

Pranay Bansal - 2 years, 11 months ago

Log in to reply

@Pranay Bansal The option to publish appears only if you have been successful with the answer.

Angie Giselle Morocho Alburqueque - 2 years, 11 months ago

Log in to reply

@Angie Giselle Morocho Alburqueque Oh. Thanks!

Pranay Bansal - 2 years, 11 months ago

Log in to reply

@Pranay Bansal Thats lame

Greg Chapman - 2 years, 11 months ago

Log in to reply

@Greg Chapman what's lame?

Pranay Bansal - 2 years, 11 months ago

Seriously, can you do a solution next time!!!???

Stephen Peter Miranda - 2 years, 11 months ago
Rico Linke
Jun 26, 2018

All three given examples are graphs. The "Das Haus vom Nikolaus" one is called "Euler's graph". Those ones are able to draw with a single stroke of a pen. A graph is an Euler's Graph in case every knot is connected with an even number of lines or there are two knots which are connected with an odd number of lines. This condition has only one of this figures - the Tent.

knot 1: 2 lines knot 2: 4 lines knot 3: 4 lines knot 4: 2 lines knot 5: 5 lines knot 6: 5 lines knot 7: 2 lines

Eliju Etienne
Jun 28, 2018

trace each

Robin Wang
Jun 26, 2018

There are eight changes in directions in the demonstration.

The tower. You can add unlimited floors to the tower the same way you do with the house, simply mirroring the drawing line.

Ariel May - 2 years, 11 months ago

0 pending reports

×

Problem Loading...

Note Loading...

Set Loading...