TOPICS
Search

Abelian Square


An abelian square is a word uv in which u and v are nonempty finite words and each letter occurs equally often in u and v. Equivalently, v is a permutation of the letters of u. For example, abba is an abelian square, although its two halves are different. An ordinary square uu 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).


See also

Alphabet, Continuous Abelian Square, Squarefree Word, Word

Explore with Wolfram|Alpha

References

Keränen, V. "A Powerful Abelian Square-Free Substitution over 4 Letters." Theoret. Comput. Sci. 410, 3893-3900, 2009. https://doi.org/10.1016/j.tcs.2009.05.027.Salo, V.; Vukusic, I.; and Wilson, C. "Avoiding Abelian Squares with Three Colours in the Continuous Setting." 20 Oct 2026. https://arxiv.org/abs/2610.28376.Shallit, J. "An Additive-Square-Free Word over an Alphabet of Size 6." 18 Nov 2026. https://arxiv.org/abs/2611.24441.

Cite this as:

Weisstein, Eric W. "Abelian Square." From MathWorld--A Wolfram Resource. https://mathworld.wolfram.com/AbelianSquare.html

Subject classifications