-expressions I
An -expression is defined as any one of the following:
- a natural number;
- the symbol ;
- the symbol ;
- the symbol ;
- a pair of -expressions , which is written as .
An -expression can be transformed according to the following rules:
- for any natural number ;
- for any -expressions ;
- for any -expressions .
For example, after applying all possible rules, the -expression is transformed to the number :
Similarly, the -expression is transformed to the number after applying all possible rules.
Find the result of the -expression after applying all possible rules. Give the last nine digits as your answer.
Note: it can be proved that the -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.
-表达式(一)
一条-表达式可以是以下任意一种:
- 一个自然数;
- 符号;
- 符号;
- 符号;
- 一对-表达式,并记作。
-表达式可以按照以下规则进行转换:
- 对任意自然数,;
- 对任意-表达式,;
- 对任意-表达式,。
例如,在应用所有可能的规则后,-表达式可以被转换为数:
类似地,-表达式在应用所有可能的规则后被转换为数。
求-表达式在应用所有可能的规则后的结果,并给出最后九位数字作为你的答案。
注意:可以证明,本题所涉及的-表达式只能被应用有限次转换,且最终结果不依赖于转换的顺序。
Gitalking ...