HOME

TheInfoList



OR:

In
combinatorics Combinatorics is an area of mathematics primarily concerned with counting, both as a means and as an end to obtaining results, and certain properties of finite structures. It is closely related to many other areas of mathematics and has many ...
, a ''k''-ary necklace of length ''n'' is an equivalence class of ''n''-character strings over an
alphabet An alphabet is a standard set of letter (alphabet), letters written to represent particular sounds in a spoken language. Specifically, letters largely correspond to phonemes as the smallest sound segments that can distinguish one word from a ...
of size ''k'', taking all rotations as equivalent. It represents a structure with ''n'' circularly connected beads which have ''k'' available colors. A ''k''-ary bracelet, also referred to as a turnover (or free) necklace, is a necklace such that strings may also be equivalent under reflection. That is, given two strings, if each is the reverse of the other, they belong to the same equivalence class. For this reason, a necklace might also be called a fixed necklace to distinguish it from a turnover necklace. Formally, one may represent a necklace as an
orbit In celestial mechanics, an orbit (also known as orbital revolution) is the curved trajectory of an object such as the trajectory of a planet around a star, or of a natural satellite around a planet, or of an artificial satellite around an ...
of the cyclic group acting on ''n''-character strings over an alphabet of size ''k'', and a bracelet as an orbit of the
dihedral group In mathematics, a dihedral group is the group (mathematics), group of symmetry, symmetries of a regular polygon, which includes rotational symmetry, rotations and reflection symmetry, reflections. Dihedral groups are among the simplest example ...
. One can count these orbits, and thus necklaces and bracelets, using Pólya's enumeration theorem.


Equivalence classes


Number of necklaces

There are :N_k(n)=\frac\sum_\varphi(d)k^ = \frac \sum_^n k^ different ''k''-ary necklaces of length ''n'', where \varphi is
Euler's totient function In number theory, Euler's totient function counts the positive integers up to a given integer that are relatively prime to . It is written using the Greek letter phi as \varphi(n) or \phi(n), and may also be called Euler's phi function. In ot ...
. When the beads are restricted to particular color multiset \mathcal = \, where n_i is the number of beads of color i \in \, there are :N(\mathcal) = \frac \sum_ \phi(d) different necklaces made of all the beads of \mathcal . Here , \mathcal, := \sum\limits_^k n_i and := \frac is the multinomial coefficient. These two formulas follow directly from Pólya's enumeration theorem applied to the action of the cyclic group C_n acting on the set of all functions f : \ \to\. If all ''k'' colors must be used, the count is :L_k(n)=\frac\sum_\varphi(d)S\left(\frac, k\right)\;, where S(n, k) are the Stirling number of the second kind. N_k(n) and L_k(n) are related via the Binomial coefficients: :N_k(n)=\sum_^k\binom L_j(n) and :L_k(n)=\sum_^k(-1)^\binomN_j(n)


Number of bracelets

The number of different ''k''-ary bracelets of length ''n'' is :B_k(n) = \begin \tfrac12 N_k(n) + \tfrac14 (k+1)k^ & \textn\text \\ 0px\tfrac12 N_k(n) + \tfrac12 k^ & \textn\text \end\quad, where ''N''''k''(''n'') is the number of ''k''-ary necklaces of length ''n''. This follows from Pólya's method applied to the action of the
dihedral group In mathematics, a dihedral group is the group (mathematics), group of symmetry, symmetries of a regular polygon, which includes rotational symmetry, rotations and reflection symmetry, reflections. Dihedral groups are among the simplest example ...
D_n.


Case of distinct beads

For a given set of ''n'' beads, all distinct, the number of distinct necklaces made from these beads, counting rotated necklaces as the same, is = (''n'' − 1)!. This is because the beads can be linearly ordered in ''n''! ways, and the ''n'' circular shifts of such an ordering all give the same necklace. Similarly, the number of distinct bracelets, counting rotated and reflected bracelets as the same, is , for ''n'' ≥ 3. If the beads are not all distinct, having repeated colors, then there are fewer necklaces (and bracelets). The above necklace-counting polynomials give the number necklaces made from all possible multisets of beads. Polya's pattern inventory polynomial refines the counting polynomial, using variable for each bead color, so that the coefficient of each monomial counts the number of necklaces on a given multiset of beads.


Aperiodic necklaces

An aperiodic necklace of length ''n'' is a rotation equivalence class having size ''n'', i.e., no two distinct rotations of a necklace from such class are equal. According to Moreau's necklace-counting function, there are :M_k(n)=\frac\sum_\mu(d)k^ different ''k''-ary aperiodic necklaces of length ''n'', where ''μ'' is the Möbius function. The two necklace-counting functions are related by: N_k(n) = \sum_ M_k(d), where the sum is over all divisors of ''n'', which is equivalent by Möbius inversion to M_k(n) = \sum_ N_k(d)\,\mu\bigl(\tfrac\bigr). Each aperiodic necklace contains a single Lyndon word so that Lyndon words form representatives of aperiodic necklaces.


See also

* Lyndon word * Inversion (discrete mathematics) * Necklace problem * Necklace splitting problem *
Permutation In mathematics, a permutation of a set can mean one of two different things: * an arrangement of its members in a sequence or linear order, or * the act or process of changing the linear order of an ordered set. An example of the first mean ...
* Proofs of Fermat's little theorem#Proof by counting necklaces * Forte number, a representation of binary bracelets of length 12 used in atonal music.


References


External links

* * {{cite journal , first=Frank , last=Ruskey , first2=Carla , last2=Savage , first3=Terry Min Yih , last3=Wang , title=Generating necklaces , journal=Journal of Algorithms , volume=13 , issue=3 , pages=414–430 , date=1992 , doi=10.1016/0196-6774(92)90047-G , url= Combinatorics on words Enumerative combinatorics