Wheat and chessboard problem