980. The Quaternion Group I

Starting from an empty string, we want to build a string with letters "x", "y", "z". At each step, one of the following operations is performed:

A string is called neutral if it is possible to produce the string from the empty string after an even number of steps.

We define a sequence (an)n0: a0=88888888 and an=(8888an1)mod888888883 for n>0.

Let bn=anmod3. For each i0, a string c(i) of length 50 is defined by translating the finite sequence b50i,b50i+1,,b50i+49 via the rule: 0 "x", 1 "y", 2 "z".

Let F(N) be the number of ordered pairs (i,j) with 0i,j<N such that the concatenated string c(i)c(j) is neutral.
For example, F(10)=13 and F(100)=1224.

Find F(106).

980. 四元群 1

从一个空串开始,我们希望构造一个仅含字母 'x'、'y'、'z' 的字符串。构造的每一步中,你只能进行如下操作之一:

若能够从空串开始,经 偶数 次操作后得到某个字符串,则称这个字符串是 中性的

我们根据如下递推定义数列 (an)n0a0=88888888,且对诸 n>0 都有 an=(8888an1)mod888888883

bn=anmod3,对诸 i0,我们按如下规则将有限数列 b50i,b50i+1,,b50i+49 映射为一个长度为 50 的字符串 c(i)0 "x"、1 "y"、2 "z"。

F(N) 为满足以下条件的有序对 (i,j) 的个数:0i,j<Nc(i)c(j) 的拼接是中性的。例如 F(10)=13F(100)=1224

F(106)


这个链接 回到源站。

这个链接 回到详细版题目目录。