this post was submitted on 09 May 2026
687 points (99.1% liked)

People Twitter

9944 readers
1422 users here now

People tweeting stuff. We allow tweets from anyone.

RULES:

  1. Mark NSFW content.
  2. No doxxing people.
  3. Must be a pic of the tweet or similar. No direct links to the tweet.
  4. No bullying or international politcs
  5. Be excellent to each other.
  6. Provide an archived link to the tweet (or similar) being shown if it's a major figure or a politician. Archive.is the best way.

founded 2 years ago
MODERATORS
 
you are viewing a single comment's thread
view the rest of the comments
[–] Ethanol@pawb.social 15 points 11 hours ago (2 children)

This is actually quite fun and simple! Even if the problem and my following explanation look complicated :P

Let's look at the three dimensional case. One can parametrize a 3 dimensional cube as the Cartesian product of intervals [0, 1] x [0, 1] x [0, 1]. This means a cube is a set of points (a, b, c) where a, b and c are real numbers between 0 and 1. The 2 dimensional sides of the cube are then given by fixing one coordinate. That is, the 6 sides are

{0}    x [0, 1] x [0, 1], 
{1}    x [0, 1] x [0, 1], 
[0, 1] x {0}    x [0, 1], 
[0, 1] x {1}    x [0, 1], 
[0, 1] x [0, 1] x {0} and 
[0, 1] x [0, 1] x {1}. 

Now we just start in the middle of a side at (0, 0.5, 0.5). To get to the next side we walk towards an edge (0, 0, 0.5) and then to the middle of the next side (0.5, 0, 0.5). We iterate this process until we run out of sides with a fixed 0, then walk towards a side with a fixed 1 and continue there. That is:

   (0  , 0.5, 0.5)
-> (0  , 0  , 0.5) 
-> (0.5, 0  , 0.5) 
-> (0.5, 0  , 0  ) 
-> (0.5, 0.5, 0  ) 
-> (1  , 0.5, 0  ) 
-> (1  , 0.5, 0.5) 
-> (1  , 1  , 0.5) 
-> (0.5, 1  , 0.5) 
-> (0.5, 1  , 1  ) 
-> (0.5, 0.5, 1  ) 

This path basically spirals around the cube, going through every side only once. Here's a visualization (sorry, I'm no artist :P) visualization of this path on a 3 dimensional cube

The same procedure works on a 4 dimensional cube or any other higher dimension. For the 4 dimensional cube it goes like this:

   (0  , 0.5, 0.5, 0.5)
-> (0  , 0  , 0.5, 0.5) 
-> (0.5, 0  , 0.5, 0.5) 
-> (0.5, 0  , 0  , 0.5) 
-> ...
-> (0.5, 0.5, 0.5, 0  )
-> (1  , 0.5, 0.5, 0  )
-> (1  , 0.5, 0.5, 0.5)
-> (1  , 1  , 0.5, 0.5)
-> ...
-> (0.5, 0.5, 0.5, 1  )

This works for arbitrary dimension except for the 1 dimensional cube (which is just a line) because the "sides" there are the two end points of the line and not connected at all. Additionally note, that it is never specified how edges count in this problem, whether they somehow count towards a face or whether you're allowed to go back and fourth on edges. You could technically only walk along edges and step into the sides every now and then.

[–] BarneyPiccolo@lemmy.cafe 28 points 10 hours ago

You owe me $14.50 for reading that.

[–] Olhonestjim@lemmy.world 4 points 8 hours ago

I don't usually do this, but I'm gonna go out on a limb and say this didn't happen.