Rolling Square
A square of side length is rolling around the inside of a larger square of side length , always touching the larger square but without sliding.
Initially the two squares share a common corner. At each step, the small square rotates clockwise about a corner that touches the large square, until another of its corners touches the large square. Here is an illustration of the first three steps for .
For some values of , the small square may return to its initial position after several steps. For example, when , this happens in steps; and for it happens in steps.
Let be the number of different values of for which the small square first returns to its initial position within at most steps. For example, , with the corresponding values:
the first three in steps and the last one in steps. Note that it does not matter whether the small square returns to its original orientation.
Also .
Find .
翻滚的正方形
一个边长为的小正方形在边长为的大正方形内部以始终接触大正方形且不滑动的方式翻滚。
一开始,这两个正方形在一个角上重合。此后每一步,小正方形围绕其接触大正方形的一个角顺时针旋转,直到它的另一个角接触到大正方形。如下图所示是时前三步的示意图。
对于的某些取值,小正方形可能在若干步后回到其初始位置。例如,当时,需要步;而对于,则需要步。
令为使小正方形在最多步内首次回到其初始位置的的不同取值的数目。例如,,对应的 值为:
其中,前三个需要步,最后一个需要步。注意这里并不要求小正方形回到其初始方向。
此外,。
求。
Gitalking ...