MathDB
I see an infinite chessboard and I want it painted black...

Source: 44th International Tournament of Towns, Junior A-Level P4, Fall 2022

February 16, 2023
combinatoricsboardTournament of Towns

Problem Statement

Let n>1n>1 be an integer. A rook stands in one of the cells of an infinite chessboard that is initially all white. Each move of the rook is exactly nn{} cells in a single direction, either vertically or horizontally, and causes the nn{} cells passed over by the rook to be painted black. After several such moves, without visiting any cell twice, the rook returns to its starting cell, with the resulting black cells forming a closed path. Prove that the number of white cells inside the black path gives a remainder of 11{} when divided by nn{}.