Solving -equations
We define the operator as the function
and -expressions as arithmetic expressions built only from variables names and applications of . A variable name may consist of one or more letters. For example, the three expressions , , and are all -expressions.
For two -expressions and such that the equation has a solution in non-negative integers, we define the least simultaneous value of and to be the minimum value taken by and on such a solution. If the equation has no solution in non-negative integers, we define the least simultaneous value of and to be . For example, consider the following three -expressions:
The least simultaneous value of and is , attained for . On the other hand, has no solutions in non-negative integers, so the least simultaneous value of and is . The total sum of least simultaneous pairs made of -expressions from is .
Find the sum of least simultaneous values of all -expressions pairs made of distinct expressions from file I-expressions.txt (pairs and are considered to be identical). Give the last nine digits of the result as the answer.
求解-方程
定义算子为函数
而-表达式为仅由变量和应用算子于变量所构成的算术表达式。变量名可以包含一个或多个字母。例如,如下三个表达式、和都是-表达式。
若对于两个-表达式和,方程有非负整数解,则记和的最小共值为所有上述方程的非负整数解下和所能取得的最小值。如果该方程没有非负整数解,则记和的最小共值为。例如,考虑下面这三个-表达式:
和的最小共值为,在时取得;而没有非负整数解,因此和的最小共值为。中任意两对表达式的最小共值之和为。
在文本文件I-expressions.txt所包含的所有-表达式中,求任意两对表达式的最小共值之和(注意和是相同的一对表达式),并给出其最后九位数字作为你的答案。
Gitalking ...