Problem 824
Chess Sliders
A Slider is a chess piece that can move one square left or right.
This problem uses a cylindrical chess board where the left hand edge of the board is connected to the right hand edge. This means that a Slider that is on the left hand edge of the chess board can move to the right hand edge of the same row and vice versa.
Let
For example,
Find
滑块
有一种新的国际象棋棋子滑块,每次可以向左或向右移动一格。
考虑一个圆柱形棋盘,其左侧边界和右侧边界相连。也就是说,一个位于棋盘最左侧的滑块可以移动一步到达同一行的最右侧,反之亦然。
记
例如,
求
Gitalking ...