In algebra, -ary associativity is a generalization of the associative law to -ary operations.
A ternary operation is ternary associative if one has always
(abc)de=a(bcd)e=ab(cde);
Similarly, an -ary operation is -ary associative if bracketing any adjacent elements in a sequence of operands do not change the result.[1]