Copyright © University of Cambridge. All rights reserved.
'Pink and White' printed from http://nrich.maths.org/
The black line shows the locus of P as the white square slides around the pink square. The locus is a square of side 16cm, and hence P moves through a distance of 64cm.
This problem is taken from the UKMT Mathematical Challenges.