The simplest way I’ve seen it explained is that there are hundreds of ways for a rope to be tied into a knot, but only one way for it to not.
In other words, of all of the different ways your headphones can loop around themselves as they are jostled around in your pocket, it’s simply that the odds of them being knotted are pretty good.
Latest Answers