Chess problems with a mathematical flavor