Solving I-equations (noch nicht übersetzt)
Problem 674
We define the I operator as the function I(x,y)=(1+x+y)2+y−x
and I-expressions as arithmetic expressions built only from variables names and applications of I. A variable name may consist of one or more letters. For example, the three expressions x, I(x,y), and I(I(x,ab),x) are all I-expressions.
For two I-expressions e1 and e2 such that the equation e1=e2 has a solution in non-negative integers, we define the least simultaneous value of e1 and e2 to be the minimum value taken by e1 and e2 on such a solution. If the equation e1=e2 has no solution in non-negative integers, we define the least simultaneous value of e1 and e2 to be 0. For example, consider the following three I-expressions: A=I(x,I(z,t))B=I(I(y,z),y)C=I(I(x,z),y)
The least simultaneous value of A and B is 23, attained for x=3,y=1,z=t=0. On the other hand, A=C has no solutions in non-negative integers, so the least simultaneous value of A and C is 0. The total sum of least simultaneous pairs made of I-expressions from {A,B,C} is 26.
Find the sum of least simultaneous values of all I-expressions pairs made of distinct expressions from file I-expressions.txt (pairs (e1,e2) and (e2,e1) are considered to be identical). Give the last nine digits of the result as the answer.