77

A friend of mine told me that it's possible to hang a picture on the wall from a string using two nails in such a way that removing either of the two nails will make both the string and picture fall down. My friend also told me that I need to be acquainted with the concept of fundamental groups to understand the solution. The problem is that I'm not. Is there really no solution to this straightforward problem that doesn't require acquaintance with fundamental groups?

Anonymous - a group
  • 1,343
  • 2
  • 13
  • 25
  • Retagged from "topological groups" to "fundamental-groups". – Neal May 08 '14 at 11:33
  • 31
    I didn't realize until I started reading that there was a string or rope involved. All my pictures are hung by putting a nail or two into the wall, and then hanging the picture frame directly on the nail. In this case, with multiple nails, removing a nail always makes the picture fall, because with multiple nails, removing any nail causes the picture to be off balance, causing it to swing to one side, causing the picture to slide off the nail and crash to the floor. – Michael May 08 '14 at 16:42
  • 32
    @Michael. you sound like a real whiz around the house. Have you tried using one nail and hammering it through the picture into the wall - then it never falls off ? – Tom Collinge May 09 '14 at 08:30
  • 3
    *either* of the two nails. – TRiG May 09 '14 at 10:39
  • 1
    @TomCollinge That would make a hole in the picture, and leave the nail visible from the front. – Brilliand May 09 '14 at 20:11
  • 7
    @Brilliand perhaps Tom was joking? ;) – Cor_Blimey May 09 '14 at 20:56
  • How about you connect the two nails with a bar or something? – evil999man May 10 '14 at 06:23
  • @Awesome, how about soldering the nails together? – jmc May 10 '14 at 08:56
  • @jmc Yes... that was the word I was looking for. – evil999man May 10 '14 at 08:58
  • 2
    @Awesome this remind me of the joke where two nails walk into a bar... – András Hummer May 10 '14 at 13:21
  • A mod can move this to an answer for me - You would simply put the nails right next to each other. If you remove one nail, now the hole is too big for the other nail and it will slip out. – blankip May 10 '14 at 16:23
  • This problem is relevant for climbers. – Alessandro Jacopson Aug 14 '18 at 21:31

7 Answers7

98

You can see a solution in Figure 1 of Picture-Hanging Puzzles, by Demaine et al. It doesn't require anything advanced to understand that specific solution. It's the generalization to more and more nails that seems to need some fancy math.

Here is the two-nail solution from Demaine et al. (don't mouse over it if you want to think about it first):

Two-nail picture hanging solution (from the linked "Picture Hanging Puzzles" article)

An excerpt of an explanation found in section 3.2:

We define $2n$ symbols: $x_1, x_1^{-1}, \dots, x_n, x_n^{-1}$.
Each $x_i$ represents wrapping the rope around [passing over top of?] the $i$th nail clockwise, and each $x_i^{-1}$ represents wrapping the rope around the $i$th nail counterclockwise. Now a weaving of the rope can be represented by a sequence of these symbols. For example, the solution to the two-nail picture-hanging puzzle shown [in the figure above] can be written $x_1x_2x_1^{-1}x_2^{-1}$.
...
In this representation, removing the $i$th nail corresponds to dropping all occurrences of $x_i$ and $x_i^{-1}$ in the sequence. Now we can see why [the figure] disentangles when we remove either nail. For example, removing the first nail leaves just $x_2x_2^{-1}$, i.e., turning clockwise around the second nail and then immediately undoing that by turning counterclockwise around the same nail. In general, $x_i$ and $x_i^{-1}$ cancel, so all occurrences of $x_ix_i^{-1}$ and $x_i^{-1}x_i$ can be dropped. (The free group specifies that these cancellations are all the cancellations that can be made.) Thus the original weaving $x_1x_2x_1^{-1}x_2^{-1}$ is nontrivially linked with the nails because nothing simplifies; but if we remove either nail, everything cancels and we are left with the empty sequence, which represents the trivial weaving that is not linked with the nails (i.e., the picture falls).

Gankro
  • 103
  • 2
Barry Cipra
  • 78,116
  • 7
  • 74
  • 151
  • 10
    @Groo, thank you for adding the figure. – Barry Cipra May 08 '14 at 14:15
  • 3
    Added a description of the solution from the paper. I recommend including figure 5 as a supplement to this, though I am uncertain of the precise extraction/licensing process for including it (though I'm sure Demaine et al. likely would not care). – Gankro May 08 '14 at 17:56
  • 1
    Fancy strings you got there. – Etheryte May 08 '14 at 19:07
  • 18
    you've nailed it! – PatrickT May 09 '14 at 07:11
  • That sequence of operations is called a [commutator](https://en.wikipedia.org/wiki/Commutator#Group_theory). There's [a nice Youtube video](https://www.youtube.com/watch?v=n-v6pmZzxL0) that gives a good explanation of the more general solution. – BlueRaja - Danny Pflughoeft Feb 26 '20 at 13:21
73

Put one nail in the wall, and another one in the picture frame. Wrap the string around them. If you remove any of the nails, the picture will fall down :)

vtomic85
  • 805
  • 5
  • 4
23

How about puting two nails on the wall so that the picture is resting on top of the nails and there is no nail in the middle? Won't that do it?

Georgy
  • 1,407
  • 12
  • 23
9

The solution can be understood without directly referring to the fundamental group (but knowing about fundamental groups makes it much easier to generalize to more nails).

Just consider wrapping the string once around one nail, once around the other and then the same again, but wrapping it around in the other direction (but still with the nails in the same order).

Tobias Kildetoft
  • 20,063
  • 1
  • 59
  • 88
8

Assuming the picture is a square, rotate it 45 degrees so it now has the shape of a "diamond" (rhombus). Now place a nail just under and a bit to the right of the left corner, and another nail just under and a bit to the left of the right corner.

Mikhail Katz
  • 35,814
  • 3
  • 58
  • 116
  • 1
    For any rectangle there exists some angle and offsetting of nails that will work for this. I think nails halfway through each side, and the angle such that you can draw a vertical line through the top left corner and the bottom right corner should be close. – Cruncher May 08 '14 at 17:34
8

Nail the picture on the center of left and right sides. The 'nail hold' of the frame have an opening perpendicular to the side, whose width equals the diameter of the nail. When one of nails are removed, the frame rotates till the nail reaches the opening. Once it have reached the opening, the nail will slipde through it and the picture will fall down.

Thejus
  • 81
  • 1
0

Imagine having two nails in 3d, positioned perpendicular to the face of the wall (i.e., nails are horizontal), but with the two nails in perpendicular directions to each other and one nail above the other nail. It should be much easier to come up with a solution for how to wrap the string in this visualization so that the string falls when you remove either nail.. Then, once you have this solution, all you have to do is rotate one nail so that they both face the wall. This gives exactly the picture presented by Barry Cipra.

user2566092
  • 25,667
  • 28
  • 61