Sol Golomb’s Rectangle Puzzle (by Peter Norvig)
nbviewer.ipython.org