I was playing around with the code for my game the other day in an effort to create some unique effects. One thing I created was what I called an "ignorant assignment" in which I applied arithmetic with complete disregard for the traditional order of operations so that the order of operations is sequential (e.g. applied in the visually presented order). Here are two simple examples and their expected outcomes:
$$1 + 3 \cdot 5 \div 2 + 1 = 11$$ $$-1 + 3 \cdot 5 \div 2 + 1 = 6$$
Using only the numbers $1$ through $9$ (to include their negative counterparts) and the foundational operations of addition ($+$), subtraction ($-$), multiplication ($\cdot$), and division ($\div$), what is the optimal [1] "ignorant assignment" so that each step of the evaluation process will output each of the numbers $0$ through $15$ no more than once? [2]
There are, of course, some rules that must be followed:
- Two of the same digit may not follow each other (e.g. $1 + 1$ is not allowed).
- Concatenation is not allowed (e.g. you cannot combine $1$ and $2$ to create $12$).
- The numbers $1$ through $9$ may be used no more than thrice each.
1: For the purposes of this puzzle, optimal means using the least instances of the same digit (e.g. use each digit as few times as possible); along with having the lowest sum.
2: The order of the output doesn't matter.