Richmond, L. B., and J. Shallit. “Counting Abelian Squares”. The Electronic Journal of Combinatorics, Vol. 16, no. 1, June 2009, p. R72, doi:10.37236/161.