910. L-expressions II

An L-expression is defined as any one of the following:

An L-expression can be transformed according to the following rules:

For example, after applying all possible rules, the L-expression S(Z)(A)(0) is transformed to the number 1:

S(Z)(A)(0)A(Z(A)(0))A(0)1.

Similarly, the L-expression S(S)(S(S))(S(Z))(A)(0) is transformed to the number 6 after applying all possible rules.

Define the following L-expressions:

For natural numbers a,b,c,d,e, let F(a,b,c,d,e) denote the result of the L-expression Da(Db)(Dc)(Cd)(A)(e) after applying all possible rules.

Find the last nine digits of F(12,345678,9012345,678,90).

Note: it can be proved that the L-expression in question can only be transformed a finite number of times, and the final result does not depend on the order of the transformations.

910. L-表达式 2

我们按如下规则递归定义 L-表达式

我们可以按如下规则对 L-表达式进行转化:

例如,不断使用上述规则可以将 L-表达式 S(Z)(A)(0) 转化为数字 1

S(Z)(A)(0)A(Z(A)(0))A(0)1.

同样的,不断使用上述规则可以将 L-表达式 S(S)(S(S))(S(Z))(A)(0) 转化为数字 6

定义如下 L-表达式:

对自然数 a,b,c,d,e,令 F(a,b,c,d,e) 为:不断使用上述规则转化,L-表达式 Da(Db)(Dc)(Cd)(A)(e) 对应的数字。

F(12,345678,9012345,678,90) 的末 9 位。

注释: 可以证明,本题中涉及的 L-表达式只能被转化有限次,且转化的最终结果和转化的顺序无关。


这个链接 回到源站。

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