shortest path riddle

A 12 by 25 by 36 inch box is lying on the floor on one of its 25 by 36 inch faces. An ant, located at one of the bottom corners of the box, must crawl along the outside of the box to reach the opposite bottom corner. It can walk on any of the box faces except for the bottom face, which is in flush contact with the floor. What is the length of the shortest such path?

SherlockHolmes Expert Asked on 10th September 2018 in Math Puzzles.
Add Comment

  • 1 Answer(s)

    One obvious route is for the ant to crawl along the line of contact between the box and the floor.
    This is clearly 25 + 36 = 61 cm in length.

    Can the ant find a shorter path by crawling over the top of the box?

    The key insight is to flatten the box.  Having done this, it’s clear that the shortest path must be one of the straight line paths from one corner to its opposite.  There are four such paths.  They are the diagonals of:

      • a 36 by 12+25+12 cm rectangle
      • a 25 by 12+36+12 cm rectangle
      • two 12+25 by 12+36 cm rectangles


    Flattened cereal box. All straight line routes over the box are shown.
    Using Pythagoras’ Theorem, the lengths of these diagonals are, respectively, the square roots of 3697, 4225, and 3673.  Note that 612 = 3721, and so the path along the line of contact between the box and the floor is longer than all but one of these diagonals.

    The shortest path over the box is therefore root 3673 cm, or a little over 60.6 cm.

    SaintlyZero Guru Answered on 20th September 2018.
    Add Comment
  • Your Answer

    By posting your answer, you agree to the privacy policy and terms of service.
  • More puzzles to try-

  • Tags