[math-fun] Mrs. Perkin's Quilt variation