0%

Problem 843


Problem 843


Periodic Circles

This problem involves an iterative procedure that begins with a circle of n3 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 S(N) be the sum of all possible periods for 3nN. For example, S(6)=6, because the possible periods for 3n6 are 1,2,3. Specifically, n=3 and n=4 can each have period 1 only, while n=5 can have period 1 or 3, and n=6 can have period 1 or 2.

You are also given S(30)=20381.

Find S(100).


周期性的环形数列

从一个包含n3个整数的环形数列开始,不断重复以下过程:在每一步中,同时将每一个数替换为与其相邻的两个数之差的绝对值。

无论初始数列的取值,这一过程最终都会进入周期性的循环。

S(N)为所有3nN的环形数列可能进入的循环周期之和。例如,S(6)=6,因为对于所有3n6的环形数列,其可能进入的循环周期只有123。具体来说,n=3n=4时只会进入周期为1的循环,n=5时可能进入周期为13的循环,而n=6时可能进入周期为12的循环。

已知S(30)=20381

S(100)


Gitalking ...