Backtracker for a vexing combinatorial problem