Problem 2
Consider a table, and identify the cell in row and column , , with the ordered pair . Let be an integer such that . A -knight is a piece that moves one cell vertically or horizontally and cells in the other direction; that is, it moves from to such that is either or . The -knight starts at cell and performs several moves. A sequence of moves is a sequence of cells such that, for all , and the -knight can move from to . In this case each cell is said to be reachable. For each , find , the number of reachable cells.
Step 5 of 5: Parity invariant decides the answer
Detailed analysis
A single -knight move changes by or , both of the same parity as . If is odd, is even, so is invariant and only the cells outside sharing 's color are reachable. If is even, is odd, so a single move already reaches a cell of the opposite color, and the previous step applied to that color shows every remaining cell outside is reachable too; hence all cells outside are reachable.