a simple program to help solve a puzzle in the book, "Gödel, Escher, Bach: An Eternal Golden Braid"