• Free
  • Grade 7–9
  • Challenge · boxes with edges up to 15, 20 or 30

The spider and the fly worksheets

A spider in one corner of a room, a fly in the far opposite corner, and the spider can only travel along the walls, floor and ceiling. The shortest route is not the one that looks obvious — and finding it turns a bent, three-dimensional path into a single straight line.

  • Answer key included
  • Reopen this exact sheet
  • Letter & A4 ready
Ready to printThe spider and the fly
The spider and the fly worksheet — Challenge · boxes with edges up to 15, 20 or 30, free printable with answer key

The answer key prints on a separate page.

What's on this sheet

The trick is Dudeney's, from 1903: a straight path that crosses two faces of a box becomes an actual straight line the moment you unfold those two faces flat onto the table. So the shortest surface route is just the shortest straight line across a flattened rectangle — and since there are three ways to choose which pair of faces to unfold, there are three flat distances to compare and the smallest wins. For a box sorted a ≤ b ≤ c the winner always pairs the two shorter edges: the rectangle is (a + b) by c, and Pythagoras finishes it.

Why this sheet works

Two wrong answers are worth reaching. The first is to cut straight through the box — the space diagonal really is shorter, but the bug is on the surface and cannot take it, and seeing why that route is disallowed is half the lesson. The second is to unfold the wrong pair of faces; the runner-up is often close enough to look right, so the sheet is built so the choice is real work rather than obvious.