Marching Cadets and a Trotting Dog
My Best Mathematical and Logic Puzzles
A square formation of cadets, 50 feet on a side, marches forward at a steady pace. The company’s small terrier mascot starts at the center of the rear rank (point A), runs in a straight line to the center of the front rank (point B), then runs straight back to the center of the rear rank. At the moment he arrives back at the rear rank, the formation has advanced exactly 50 feet. The dog moves at constant speed and turning takes no time. How far does he run?
[Figure: a square formation with arrows pointing up showing the direction of march. A dashed vertical line through the center runs from point A at the middle of the bottom (rear) edge to point B at the middle of the top (front) edge; small up and down arrows on it show the dog’s trip out and back.]
A much harder variant is due to Sam Loyd: instead of running through the formation, the dog runs at constant speed around the outside of the square, staying as close to it as possible (treat his path as following the perimeter of the square). Again the formation has marched 50 feet when he returns to A. How long is his path?