2023 SSMO Team Round Problems/Problem 9
Problem
Let ,
, and
be the total number of possible moves for a bishop, knight, or rook from any position of a
by
grid.
Find
.
(A bishop moves along diagonals, a rook moves along rows, and a knight moves in the form
of a "L" shape)
Solution
We first compute . Note that from any of the 81 squares, the rook can move to another 16 squares. Thus,
We now present an alternative method that generalizes well to bishops and knights. Define an -move as a move that shifts
squares to the right and
squares up.
There are exactly possible ways to perform such a move, since the piece must start in a position where it can legally make that move within the bounds of the board.
The total number of possible moves is the sum over all legal -moves.
The rook can perform moves of the type and
for integers
, with
.
So,
matching our earlier computation.
The bishop can perform moves of the type and
for
, so
The knight can perform moves of the type and
. For each such pair, the number of legal positions is:
The final answer is:
~SMO_Team