mathschallenge.net logo

Spider Fly Distance

Problem

A spider, S, is in one corner of a cuboid room, with dimensions $a$ by $b$ by $c$, and a fly, F, is in the opposite corner.

Find the shortest distance from S to F.

Solution

There are three straight line routes from S to F.

Let the distances from S to F1, F2, and F3, be $d$1, $d$2, and $d$3 respectively.

Using the Pythagorean Theorem we get:

$d$12 = ($a$+$b$)2 + $c$2 = $a$2 + $b$2 + $c$2 + 2$ab$
$d$22 = ($a$+$c$)2 + $b$2 = $a$2 + $b$2 + $c$2 + 2$ac$
$d$32 = ($b$+$c$)2 + $a$2 = $a$2 + $b$2 + $c$2 + 2$bc$

Without loss of generality, let us assume that $a$ greater than or equal $b$ greater than or equal $c$.

As $b$ greater than or equal $c$, $ab$ greater than or equal $ac$, and it follows that $d$1 greater than or equal $d$2.
Similarly, as $a$ greater than or equal $c$, $ab$ greater than or equal $bc$, and $d$1 greater than or equal $d$3.
And finally, as $a$ greater than or equal $b$, $ac$ greater than or equal $bc$, giving $d$2 greater than or equal $d$3.

Hence, $d$1 greater than or equal $d$2 greater than or equal $d$3 and, of the three routes, the shortest distance would be from S to F3; that is, the journey from S to the longest edge.

What is the smallest cuboid for which the shortest route is integer?
What about the smallest cuboid for which all three routes are integer?

Problem ID: 201 (10 Jan 2005)     Difficulty: 3 Star

Only Show Problem