A method of combining two numbers or algebraic expressions is associative if the result of the combination of three objects does not depend on the way in which the objects are grouped.

For example, addition of numbers is associative and the corresponding associative law is:

for all numbers

Multiplication is also associative: for all numbers but subtraction and division are not, because, for example,