Algebra playground · nothing is recorded
Two machines. The order is the mystery.
The machines
×3 then +2
Every input, both orders
| in | ×3 then +2 | +2 then ×3 |
|---|---|---|
| 1 | 5 | 9 |
| 2 | 8 | 12 |
| 3 | 11 | 15 |
| 4 | 14 | 18 |
| 5 | 17 | 21 |
| 6 | 20 | 24 |
The two orders never meet here: doing +2 first means the ×3 multiplies your added 2 as well.