# Power associativity

In abstract algebra, power associativity is a property of a binary operation which is a weak form of associativity.

An algebra (or more generally a magma) is said to be power-associative if the subalgebra generated by any element is associative. Concretely, this means that if an element x is multiplied by itself several times, it doesn't matter in which order the multiplications are carried out, so for instance x(x(xx)) = (x(xx))x = (xx)(xx).

Every associative algebra is power-associative, but so are all other alternative algebras (like the octonions, which are non-associative) and even some non-alternative algebras like the sedenions and Okubo algebras. Any algebra whose elements are idempotent is also power-associative.

Exponentiation to the power of any positive integer can be defined consistently whenever multiplication is power-associative. For example, there is no need to distinguish whether x3 should be defined as (xx)x or as x(xx), since these are equal. Exponentiation to the power of zero can also be defined if the operation has an identity element, so the existence of identity elements is useful in power-associative contexts.

Over a field of characteristic 0, an algebra is power-associative if and only if it satisfies ${\displaystyle [x,x,x]=0}$ and ${\displaystyle [x^{2},x,x]=0}$, where ${\displaystyle [x,y,z]:=(xy)z-x(yz)}$ is the associator (Albert 1948). Over a field of prime characteristic ${\displaystyle p>0}$ there is no finite set of identities that characterizes power-associativity, but there are infinite independent sets, as described by Gainov (1970):

• For ${\displaystyle p=2}$: ${\displaystyle [x,x^{2},x]=0}$ and ${\displaystyle [x^{n-2},x,x]=0}$ for ${\displaystyle n=3,2^{k}}$ (${\displaystyle k=2,3...)}$
• For ${\displaystyle p=3}$: ${\displaystyle [x^{n-2},x,x]=0}$ for ${\displaystyle n=4,5,3^{k}}$ (${\displaystyle k=1,2...)}$
• For ${\displaystyle p=5}$: ${\displaystyle [x^{n-2},x,x]=0}$ for ${\displaystyle n=3,4,6,5^{k}}$ (${\displaystyle k=1,2...)}$
• For ${\displaystyle p>5}$: ${\displaystyle [x^{n-2},x,x]=0}$ for ${\displaystyle n=3,4,p^{k}}$ (${\displaystyle k=1,2...)}$

A substitution law holds for real power-associative algebras with unit, which basically asserts that multiplication of polynomials works as expected. For f a real polynomial in x, and for any a in such an algebra define f(a) to be the element of the algebra resulting from the obvious substitution of a into f. Then for any two such polynomials f and g, we have that (fg)(a) = f(a)g(a).