[math-fun] Associativity & finite state machines