An abelian square is a word in which
and
are nonempty finite words and each
letter occurs equally often in
and
. Equivalently,
is a permutation of the letters
of
. For example,
is an abelian square, although its two halves are different.
An ordinary square
is always an abelian square.
There is an infinite word over a four-letter alphabet containing no abelian square. Three letters do not suffice, since every three-letter word of length at least eight contains one (Salo et al. 2026). The analogous continuous abelian square problem has a different answer.
Over an integer alphabet, every Abelian square is an additive power of exponent 2, since equal letter multiplicities give equal block sums. The converse fails, as shown by the additive square 1423 (Shallit 2026).