Necklace polynomial

From HandWiki
Short description: Counts the number of necklaces of n colored beads picked from α available colors

In combinatorial mathematics, the necklace polynomial, or Moreau's necklace-counting function, introduced by C. Moreau (1872), counts the number of distinct necklaces of n colored beads chosen out of α available colors, arranged in a cycle. Unlike the usual problem of graph coloring, the necklaces are assumed to be aperiodic (not consisting of repeated subsequences), and counted up to rotation (rotating the beads around the necklace counts as the same necklace), but without flipping over (reversing the order of the beads counts as a different necklace). This counting function also describes the dimensions in a free Lie algebra and the number of irreducible polynomials over a finite field.

Definition

The necklace polynomials are a family of polynomials [math]\displaystyle{ M(\alpha,n) }[/math] in the variable [math]\displaystyle{ \alpha }[/math] such that

[math]\displaystyle{ \alpha^n \ =\ \sum_{d\,|\,n} d \, M(\alpha, d). }[/math]

By Möbius inversion they are given by

[math]\displaystyle{ M(\alpha,n) \ =\ {1\over n}\sum_{d\,|\,n}\mu\!\left({n \over d}\right)\alpha^d, }[/math]

where [math]\displaystyle{ \mu }[/math] is the classic Möbius function.

A closely related family, called the general necklace polynomial or general necklace-counting function, is:

[math]\displaystyle{ N(\alpha,n)\ =\ \sum_{d\,|\,n} M(\alpha,d)\ =\ \frac{1}{n}\sum_{d\,|\,n}\varphi\!\left({n \over d}\right)\alpha^d, }[/math]

where [math]\displaystyle{ \varphi }[/math] is Euler's totient function.

Applications

The necklace polynomials [math]\displaystyle{ M(\alpha,n) }[/math] appear as:

  • The number of aperiodic necklaces (or equivalently Lyndon words) which can be made by arranging n colored beads having α available colors. Two such necklaces are considered equal if they are related by a rotation (but not a reflection). Aperiodic refers to necklaces without rotational symmetry, having n distinct rotations. The polynomials [math]\displaystyle{ N(\alpha,n) }[/math] give the number of necklaces including the periodic ones: this is easily computed using Pólya theory.
  • The dimension of the degree n piece of the free Lie algebra on α generators ("Witt's formula"[1]). Here [math]\displaystyle{ N(\alpha,n) }[/math] should be the dimension of the degree n piece of the corresponding free Jordan algebra.
  • The number of distinct words of length n in a Hall set. Note that the Hall set provides an explicit basis for a free Lie algebra; thus, this is the generalized setting for the above.
  • The number of monic irreducible polynomials of degree n over a finite field with α elements (when [math]\displaystyle{ \alpha=p^d }[/math] is a prime power). Here [math]\displaystyle{ N(\alpha,n) }[/math] is the number of polynomials which are primary (a power of an irreducible).
  • The exponent in the cyclotomic identity.

Although these various types of objects are all counted by the same polynomial, their precise relationships remain unclear. For example, there is no canonical bijection between the irreducible polynomials and the Lyndon words.[2] However, there is a non-canonical bijection that can be constructed as follows. For any degree n monic irreducible polynomial over a field F with α elements, its roots lie in a Galois extension field L with [math]\displaystyle{ \alpha^n }[/math] elements. One may choose an element [math]\displaystyle{ x\in L }[/math] such that [math]\displaystyle{ \{x,\sigma x, ...,\sigma^{n-1} x\} }[/math] is an F-basis for L (a normal basis), where σ is the Frobenius automorphism [math]\displaystyle{ \sigma y = y^\alpha }[/math]. Then the bijection can be defined by taking a necklace, viewed as an equivalence class of functions [math]\displaystyle{ f:\{1,...,n\}\rightarrow F }[/math], to the irreducible polynomial

[math]\displaystyle{ \phi(T)=(T-y)(T-\sigma y)\cdots (T-\sigma^{n-1}y) \in F[T] }[/math] for [math]\displaystyle{ y=f(1)x+f(2)\sigma x+\cdots+f(n)\sigma^{n-1} x }[/math].

Different cyclic rearrangements of f, i.e. different representatives of the same equivalence class, yield cyclic rearrangements of the factors of [math]\displaystyle{ \phi(T) }[/math], so this correspondence is well-defined.[3]

Relations between M and N

The polynomials for M and N are easily related in terms of Dirichlet convolution of arithmetic functions [math]\displaystyle{ f(n)*g(n) }[/math], regarding [math]\displaystyle{ \alpha }[/math] as a constant.

  • The formula for M gives [math]\displaystyle{ n\,M(n) \,=\, \mu(n)*\alpha^n }[/math],
  • The formula for N gives [math]\displaystyle{ n\,N(n) \,=\, \varphi(n)*\alpha^n \,=\, n*\mu(n)*\alpha^n }[/math].
  • Their relation gives [math]\displaystyle{ N(n)\,=\,1*M(n) }[/math] or equivalently [math]\displaystyle{ n\,N(n) \,=\, n*(n\,M(n)) }[/math], since n is completely multiplicative.

Any two of these imply the third, for example:

[math]\displaystyle{ n*\mu(n)*\alpha^n \,=\, n\,N(n) \,=\, n*(n\,M(n)) \quad\Longrightarrow\quad \mu(n)*\alpha^n = n\,M(n) }[/math]

by cancellation in the Dirichlet algebra.

Examples

[math]\displaystyle{ \begin{align} M(1,n) & = 0 \text{ if }n\gt 1 \\[6pt] M(\alpha,1) & = \alpha \\[6pt] M(\alpha,2) & = \tfrac12 (\alpha^2-\alpha) \\[6pt] M(\alpha,3) & = \tfrac13 (\alpha^3-\alpha) \\[6pt] M(\alpha,4) & = \tfrac14 (\alpha^4-\alpha^2) \\[6pt] M(\alpha,5) & = \tfrac15(\alpha^5-\alpha) \\[6pt] M(\alpha,6) & = \tfrac16(\alpha^6-\alpha^3-\alpha^2+\alpha) \\[6pt] M(\alpha,p) & = \tfrac1p (\alpha^{p}-\alpha) & \text{ if }p\text{ is prime} \\[6pt] M(\alpha,p^N) & = \tfrac1{p^N}(\alpha^{p^N}-\alpha^{p^{N-1}}) & \text{ if }p\text{ is prime} \end{align} }[/math]

For [math]\displaystyle{ \alpha=2 }[/math], starting with length zero, these form the integer sequence

1, 2, 1, 2, 3, 6, 9, 18, 30, 56, 99, 186, 335, ... (sequence A001037 in the OEIS)

Identities

Main page: Necklace ring

The polynomials obey various combinatorial identities, given by Metropolis & Rota:

[math]\displaystyle{ M(\alpha\beta, n) =\sum_{\operatorname{lcm}(i,j)=n} \gcd(i,j)M(\alpha,i)M(\beta,j), }[/math]

where "gcd" is greatest common divisor and "lcm" is least common multiple. More generally,

[math]\displaystyle{ M(\alpha\beta\cdots\gamma, n) =\sum_{\operatorname{lcm}(i,j,\ldots,k)=n} \gcd(i,j,\cdots,k)M(\alpha,i)M(\beta,j)\cdots M(\gamma,k), }[/math]

which also implies:

[math]\displaystyle{ M(\beta^m, n) =\sum_{\operatorname{lcm}(j,m)=nm} \frac{j}{n} M(\beta,j). }[/math]

Cyclotomic identity

Main page: Cyclotomic identity
[math]\displaystyle{ {1 \over 1-\alpha z}\ =\ \prod_{j=1}^\infty\left({1 \over 1-z^j}\right)^{\! M(\alpha,j)} }[/math]

References

  1. Lothaire, M. (1997). Combinatorics on words. Encyclopedia of Mathematics and Its Applications. 17. Perrin, D.; Reutenauer, C.; Berstel, J.; Pin, J. E.; Pirillo, G.; Foata, D.; Sakarovitch, J.; Simon, I.; Schützenberger, M. P.; Choffrut, C.; Cori, R.; Lyndon, Roger; Rota, Gian-Carlo. Foreword by Roger Lyndon (2nd ed.). Cambridge University Press. pp. 79,84. ISBN 978-0-521-59924-5. 
  2. Amy Glen, (2012) Combinatorics of Lyndon words, Melbourne talk
  3. Adalbert Kerber, (1991) Algebraic Combinatorics Via Finite Group Actions, [1]