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 4 of 5: One component per color outside S
Detailed analysis
Repeating the slides of the previous step lets any cell outside be joined by a chain of two-move paths to any other cell outside with the same parity of , since each two-move path changes by an even amount, or . Hence all cells outside sharing 's color, even, lie in one connected component containing .