MathLabs

Problem 2

Consider a 100×100100\times100 table, and identify the cell in row aa and column bb, 1≤a,b≤1001\le a,b\le100, with the ordered pair (a,b)(a,b). Let kk be an integer such that 51≤k≤9951\le k\le99. A kk-knight is a piece that moves one cell vertically or horizontally and kk cells in the other direction; that is, it moves from (a,b)(a,b) to (c,d)(c,d) such that (∣a−c∣,∣b−d∣)(|a-c|,|b-d|) is either (1,k)(1,k) or (k,1)(k,1). The kk-knight starts at cell (1,1)(1,1) and performs several moves. A sequence of moves is a sequence of cells (x0,y0)=(1,1),(x1,y1),…,(xn,yn)(x_0,y_0)=(1,1),(x_1,y_1),\ldots,(x_n,y_n) such that, for all i=1,2,…,ni=1,2,\ldots,n, 1≤xi,yi≤1001\le x_i,y_i\le100 and the kk-knight can move from (xi−1,yi−1)(x_{i-1},y_{i-1}) to (xi,yi)(x_i,y_i). In this case each cell (xi,yi)(x_i,y_i) is said to be reachable. For each kk, find L(k)L(k), the number of reachable cells.
Step 4 of 5: One component per color outside S
x+y≡1 ⁣ ⁣(mod2)  ⟹  (x,y) joined to (1,1) outside Sx+y\equiv1\!\!\pmod2\implies(x,y)\text{ joined to }(1,1)\text{ outside }S
Detailed analysis

Repeating the slides of the previous step lets any cell outside SS be joined by a chain of two-move paths to any other cell outside SS with the same parity of x+yx+y, since each two-move path changes x+yx+y by an even amount, ±2\pm2 or ±2k\pm2k. Hence all cells outside SS sharing (1,1)(1,1)'s color, x+yx+y even, lie in one connected component containing (1,1)(1,1).