Working multiplication and addition chains with nesting,
e.g. A*B*(C + (D*E))