Periodic Circles
This problem involves an iterative procedure that begins with a circle of integers. At each step every number is simultaneously replaced with the absolute difference of its two neighbours.
For any initial values, the procedure eventually becomes periodic.
Let be the sum of all possible periods for . For example, , because the possible periods for are . Specifically, and can each have period only, while can have period or , and can have period or .
You are also given .
Find .
周期性的环形数列
从一个包含个整数的环形数列开始,不断重复以下过程:在每一步中,同时将每一个数替换为与其相邻的两个数之差的绝对值。
无论初始数列的取值,这一过程最终都会进入周期性的循环。
记为所有的环形数列可能进入的循环周期之和。例如,,因为对于所有的环形数列,其可能进入的循环周期只有、、。具体来说,和时只会进入周期为的循环,时可能进入周期为或的循环,而时可能进入周期为或的循环。
已知。
求。
Gitalking ...