Every such path is encoded as a binary string. The sign 0 means a left descender, whereas the sign 1 means a right one. An example is given below. In the next problems we suppose that each leaf has an assigned positive integer to itself. Delimiter stands for one or more spaces.
Number is a positive integer, which was assigned to the leaf.
Assume the only allowed operations in the expressions are addition, multiplication and integer division. Assume the only allowed operations in the expressions are the same as in the previous problem. The text is translated from Bulgarian by Emil Kelevedzhiev. Return to the Home Page of Bulgarian Mathematics and Informatics Competitions.