Seventeen Squares

How small a box can hold 17 squares of side 1, without overlapping? Sixteen fill a 4 × 4 box exactly. Add one more and the neat rows have to give way.

The source code is at github.com/KirillOsenkov/LiveGeometry. It is written in .NET and Avalonia.

Loading Live Geometry…