Circular and Necklace Permutations

Total Page:16

File Type:pdf, Size:1020Kb

Circular and Necklace Permutations Circular and Necklace Permutations Hiroshi KAJIMOTO and Mai OSABE Department of Mathematical Science, Faculty of Education Nagasaki University, Nagasaki 852-8521, Japan e-mail: [email protected] (Received October 31, 2006) Abstract We enumerate circular and necklace permutations which have beads of several colors, and count the related combinatorial numbers. 0 Introduction Circular and necklace permutations are standard subjects of high school com- binatorics. On the other hand they serve a good introduction to more ad- vanced subject of combinatorics, that is the P´olya theory of counting under group action. In fact these enumerations were historically a precursor of the theory [2, 4, p.558]. In this article we give the enumeration of circular and necklace permuations according to the given number of beads for each colors, and of the related combinatorial numbers. A circular permutation is defined to be an equivalence class of sequences under the cyclic group Cn, i.e., two sequences a1a2 : : : an and b1b2 : : : bn are equivalent if one is a cyclic shift of the other. A necklace (or necklace permu- tation) is defined to be an equivalence class of sequences under the dihedral group Dn, i.e., two sequences a1a2 : : : an and b1b2 : : : bn are equivalent if one is a cyclic shift of the other or if circular permutaions of them are mutually reflective with respect to some diameter. We make full use of the counting theory and look back the classical ex- amples, and show how to use P´olya's cycle index efficiently. We use combi- natorial notation, especially relative to partitions, as in [4]. 1 1 Cycle indices of cyclic and dihedral groups We begin with a brief accout of the counting theory under group action. A good introduction to the theory is [3, chapter 6], that is a lecture note without detailed proof. To those who want the proof see [1, chapter 5] or [4, section 7.24]. Let G be a subgroup of the full permutation group SX of a finite set X. Let n = jXj be the number of elements of X. Each element g 2 G is a permutation of X, so g is a product of several disjoint cycles of elements of X: g = (a1a2 : : : ak) ::: (c1c2 : : : cm). The cycle type of g determines a monomial b1(g) b2(g) bn(g) p1 p2 : : : pn , that is, g has b1(g) cycles of length 1, b2(g) cycles of length 2, . in the cycle decomposition, so (1b1(g)2b2(g) :::) ` n. Cycle index PG is a polynomial defined by 1 X P = pb1(g)pb2(g) : : : pbn(g): G j j 1 2 n G g2G Let R = fr; b; : : : ; wg be a set of colors. Then P´olya's main theorem is that all the inequivalent colorings f : X ! R under G are expressible by a i i i generating function PG substituted by pi = r + b + ··· + w . For circular and necklace permutations let X = f1; 2; : : : ng and let the n cyclic group Cn = haja = ei act on X in an obvious way: a = (1; 2; : : : ; n). The coloring f : X ! R is a sequence of length n and then Cn act on X the set R of sequences as a cyclic shift by a(r1r2 : : : rn) = r2r3 : : : rnr1. An equivalence class of the sequences under Cn is exactly a circular permutation. n 2 −1 The dihedral group Dn = ha; "ja = " = e; "a" = a i acts on X by putting " being a reflection with respect to some symmetry axis. For instance put ( − − b n c d n e (n)(1; n 1)(2; n 2) ::: ( 2 ; 2 ) when n odd " = − n n (1; n)(2; n 1) ::: ( 2 ; 2 + 1) when n even: An equivalence class of sequences under Dn is a necklace permutation. Lemma 1 Cycle indices of circular and necklace permutations are given by X 1 n=d PCn = '(d)pd ; n djn 8 (P ) < 1 n=d bn=2c djn '(d)pd + np1p2 when n odd P = 2n (P ) Dn : 1 n=d n n=2 2 (n=2)−1 2n djn '(d)pd + 2 (p2 + p1p2 ) when n even; where '(n) := #fd 2 Zjgcd(n; d) = 1; 1 ≤ d ≤ ng is the Euler function. 2 F For proof, notice that Cn = djn Cn(d) where Cn(d) is a subset of all the n=d ` elements of order d and that all elements in Cn(d) have the cycle typeF (d ) n and jCn(d)j = '(d). Notice also a coset decomposition: Dn = Cn "Cn and that all the elements of "Cn are reflections. When n is odd all the reflections bn=2c of "Cn have the cycle type (1)(2 ) ` n. When n is even we have two kinds n=2 of symmetry axes, half the reflections of "Cn have the cycle type (2 ) and another half the reflections have (12)(2n=2−1). The total number of circular and necklace permutations of length n with beads of k kinds of colors are given by substituting all pi = k in cycle indices. Corollary 2 The total number C(n; k) of circular permutations of length n with k colors of beads and N(n; k) of necklace permutations are ( ) 1 X 1 X n C(n; k) = '(d)kn=d = ' kd; n djn n djn d 0 ( 1 1 X nkdn=2e when n odd N(n; k) = @ '(d)kn=d + A : n (kn=2 + k(n=2)+1) when n even 2n djn 2 We here take the simplest: Example (n = 3). Cycle indices: 1 1 P = (p3 + 2p );P = (p3 + 2p + 3p p ): C3 3 1 3 D3 6 1 3 1 2 Total numbers: C(3; k) = (k3 + 2k)=3;N(3; k) = (k3 + 2k + 3k2)=6, k 1 2 3 4 5 C(3; k) 1 4 11 24 45 . N(3; k) 1 4 10 20 35 k = 3: We have beads of three colors, red r, blue b and white w. Substituting i i i the figure inventory pi = r + b + w in the cycle index, we get 1 n o P = (r + b + w)3 + 2(r3 + b3 + w3) C3 3 = r3 + b3 + w3 + r2b + r2w + b2r + b2w + w2r + w2b + 2rbw by the multinomial expansion. 3 r b w r3 + b3 + w3 r r b b w w b w r r r b r2b + r2w + b2r + b2w + w2r + w2b r r b w r b b b w w w w r r 2rbw w b b w The first 9 circles are self-reflective, the last 2 circles are pair-reflective each other, with respect to indicated symmetry axes. We can collect terms as X X X r3 = r3+b3+w3; r2b = r2b+r2w+b2r+b2w+w2r+w2b; rbw = rbw: P In these sums, for instance r2b indicates that terms with two beads of one 2 color and one bead of the second color are summedP up, r b is the typical term of the possible( ) color choices. The sum rbw has just one term when k ≥ k = 3, but has 3 terms when k 3 and has no terms hence = 0 when k < 3. Then we have Xk Xk Xk 3 2 PC3 = r + r b + 2 rbw: This expression is independent of the indicated number k of colors. In this example we easily have for necklaces, Xk Xk Xk 3 2 PD3 = r + r b + rbw 4 P λ by computation or by inspection. We will seek their coefficient [ r ]PG, which is the number of essentially inequivalent color patterns under group action. 2 Circular permutations To get all the circular permutations of length n with beads of k kinds of d d ··· d color, we have to expand PCn by substituting pd = r1 + r2 + + rk, the power sum symmetric polyomials. In this case the expansion is fairly easy. Remember the multinomial expansion and write that in the following way: ! ! X n X n Xk (x + x + ··· + x )n = xα = xµ: 1 2 k α µ jαj=n,α2Nk µ`n;l(µ)≤k P Here l(µ) is the length of a partition µ and k xµ is a monomial symmetric polynomial mµ of k variables [4, section7.3] defined by Xk X µ α x = mµ = x α where the last sum runs over all distinct permutations α = (α1; α2;:::) of the Pentries of the partition µ = (µ1; µ2;:::). A monomial symmetric polynomial k xµ collects all the colorings whose choices of the numbers of different k colors of beads are according to the partition µ ` n. We have by the substitution 0 ! 1 X X X Xk 1 n=d 1 @ n=d dµA PCn = '(d)pd = '(d) r n djn n djn µ`n=d µ where dµ = (dµ1; dµ2;:::) ` djµj. Putting λ = dµ ` n, we get the generating function of circular permutations of length n with k colors of beads: Theorem 3 8 ! 9 X < 1 X n=d = Xk P = '(d) rλ: Cn :n λ/d ; λ`n djgcdfλ1,λ2;:::g where λ/d = (λ1=d; λ2=d; : : :) ` n=d. 5 P P ( ) k λ n=d The coefficient [ r ]PCn = djgcdfλ1,λ2;:::g λ/d '(d)=n is the number of es- sentially different circular permutations according to the number of each color indicated by the partition λ ` n. For instance the number of circular permu- tations ofP length n = 6 with two( ) red beads,( ) two blue beads and two white 2 2 2 f 6 3 g beads is [ r b w ]PC6 = '(1) 23 +'(2) 13 =6 = 16.
Recommended publications
  • Polynomial Statistics, Necklace Polynomials, and the Arithmetic Dynamical Mordell-Lang Conjecture By
    Polynomial Statistics, Necklace Polynomials, and the Arithmetic Dynamical Mordell-Lang Conjecture by Trevor Hyde A dissertation submitted in partial fulfillment of the requirements for the degree of Doctor of Philosophy (Mathematics) in The University of Michigan 2019 Doctoral Committee: Professor Jeffrey Lagarias, Co-Chair Professor Michael Zieve, Co-Chair Professor Kartik Prasanna Professor John Schotland Professor John Stembridge Trevor Hyde [email protected] ORCID 0000-0002-9380-1928 © Trevor Hyde 2019 Dedication This thesis is dedicated to Aarthi and my parents Steve and Kathy. Thank you for all the years of unwavering love and support. ii Acknowledgments The author is grateful for the guidance and encouragement of his advisers Jeff Lagarias and Mike Zieve. I am also happy to thank Weiyan Chen, Benson Farb, Nir Gadish, Jonathan Gerhard, Ofir Gorodetsky, Rafe Jones, Bob Lutz, Andy Odesky, Karen Smith, Sheila Sundaram and Phil Tosteson for their help with and interest in my work over the past six years. The author was supported by NSF grant DMS-1162181 in the summer of 2017, the Rackham One-Term Dissertation Fellowship in the winter of 2017, the NSF grant DMS- 1701576 in the summer of 2018, and the Rackham Predoctoral Fellowship for the 2018-19 academic year. iii List of Figures 4.1 2-colorings of S3............................... 96 4.2 All primitive 2-colorings of S3........................ 96 iv List of Tables 2.1 Expected values of quadratic excess. 20 3.1 Low degree terms of M3;n¹qº......................... 35 3.2 First moments of linear factor statistic. 39 v Table of Contents Dedication . ii Acknowledgements .
    [Show full text]
  • Fast Algorithms to Generate Necklaces, Unlabeled Necklaces, and Irreducible Polynomials Over GF(2)
    Journal of Algorithms 37, 267᎐282Ž. 2000 doi:10.1006rjagm.2000.1108, available online at http:rrwww.idealibrary.com on Fast Algorithms to Generate Necklaces, Unlabeled Necklaces, and Irreducible Polynomials over GFŽ. 2 1 Kevin Cattell HP Research Labs, Santa Rosa, California E-mail: kevin᎐ [email protected] Frank Ruskey, Joe Sawada, and Micaela Serra Department of Computer Science, Uni¨ersity of Victoria, Victoria, British Columbia, Canada E-mail: [email protected]; [email protected], [email protected] and C. Robert Miers Department of Mathematics and Statistics, Uni¨ersity of Victoria, Victoria, British Columbia, Canada E-mail: [email protected] Received August 22, 1998 Many applications call for exhaustive lists of strings subject to various con- straints, such as inequivalence under group actions. A k-ary necklace is an equivalence class of k-ary strings under rotationŽ. the cyclic group . A k-ary unlabeled necklace is an equivalence class of k-ary strings under rotation and permutation of alphabet symbols. We present new, fast, simple, recursive algo- rithms for generatingŽ. i.e., listing all necklaces and binary unlabeled necklaces. These algorithms have optimal running times in the sense that their running times are proportional to the number of necklaces produced. The algorithm for generat- ing necklaces can be used as the basis for efficiently generating many other equivalence classes of strings under rotation and has been applied to generating bracelets, fixed density necklaces, and chord diagrams. As another application, we describe the implementation of a fast algorithm for listing all degree n irreducible and primitive polynomials over GFŽ.
    [Show full text]
  • APPLICATIONS of M¨OBIUS INVERSION on PARTIALLY ORDERED SETS Contents 1. Introduction 1 2. Basic Definitions for Partially Order
    APPLICATIONS OF MOBIUS¨ INVERSION ON PARTIALLY ORDERED SETS DAVID WU Abstract. In this paper, we discuss how the theory of partially ordered sets plays an important role in combinatorics. First, we outline definitions for partially ordered sets. Next, we introduce incidence algebra and M´obiusin- version. Then, we present three applications of partially ordered set theory: the Inclusion-Exclusion Principle, Euler's Totient function (or phi function), and P´olya's Enumeration Theorem. For P´olya's Enumeration Theorem, we assume prior knowledge of basic group theory. Contents 1. Introduction 1 2. Basic Definitions for Partially Ordered Sets (Posets) 2 3. Incidence Algebra 3 4. Applications of M¨obiusinversion 5 4.1. Inclusion-Exclusion Principle 6 4.2. Classical M¨obiusFunction 7 5. P´olya's Enumeration Theorem 9 5.1. A Galois connection between permutations and partitions 10 5.2. Generating Functions 11 5.3. Proof of P´olya's Enumeration Theorem 13 5.4. Examples with Necklaces 16 Acknowledgments 18 References 18 1. Introduction Many problems in combinatorics deal with counting a particular combinatorial object. A common strategy is to construct an algebraic object to do this counting (ex. generating functions). In this paper, the combinatorial object of interest is the partially ordered set, and the algebraic object we use is incidence algebra. In particular, we are most interested in the Kronker delta, zeta, and M¨obiusfunction in incidence algebra. These functions give rise to a technique called the M¨obius inversion formula, a counting tool with far-reaching applications. In section 2, we begin by introducing preliminary definitions for partially ordered sets.
    [Show full text]
  • Basic Counting
    CHAPTER 1 Basic Counting Introduction Before beginning, we must confront some matters of notation. Two words that we shall often use are set and list. Both words refer to collections of objects. There is no standard notation for lists. Some of those in use are apple banana pear peach a list of four items ... apple, banana, pear, peach commas added for clarity ... and (apple, banana, pear, peach) parentheses added. The notation for sets is standard: the items are separated by commas and surround by curly brackets as in {apple, banana, pear, peach}. The curly bracket notation for sets is so well established that you can normally assume it means a set—but beware, Mathematica R uses curly brackets for lists. What is the difference between a set and a list? Quite a bit, and nothing. “Set” means a collection of distinct objects in which the order doesn’t matter. Thus {apple, peach, pear} and {peach, apple, pear} are the same sets, and the set {apple, peach, apple} is the same as the set {apple, peach}. In other words, repeated elements are treated as if they occurred only once. Thus two sets are the same if and only if each element that is in one set is in both. In a list, order is important and repeated objects are usually allowed. Thus (apple, peach) (peach, apple) and (apple, peach, apple) are three different lists. Two lists are the same if and only if they have exactly the same items in exactly the same positions. Thus, sets and lists are different. On the other hand, people talk about things like “unordered lists,” “sets with repetition,” and so on.
    [Show full text]
  • Number of Necklaces Number of Bracelets Necklace Example
    From Wikipedia, the free encyclopedia In combinatorics, a k-ary necklace of length n is an equivalence class of n-character strings over an alphabet of size k, taking all rotations as equivalent. It represents a structure with n circularly connected beads of up to k different 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 then 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. Technically, one may classify a necklace as an orbit of the action of the cyclic group on n-character strings, and a bracelet as an orbit of the dihedral group's action. This enables application of Pólya enumeration theorem for enumeration of necklaces and bracelets. 1 Equivalence classes Possible patterns of bracelets of length n 1.1 Number of necklaces corresponding to the k-th integer partition 1.2 Number of bracelets 2 Examples (set partitions up to rotation and reflection) 2.1 Necklace example 2.2 Bracelet example 3 Aperiodic necklaces 4 Products of necklaces 5 See also 6 References 7 External links The 3 bracelets with 3 red and 3 green beads. The one in the middle is chiral, so there are 4 necklaces. Compare box(6,9) in the triangle. Number of necklaces There are different k-ary necklaces of length n, where φ is Euler's [1] totient function.
    [Show full text]
  • Witt Vectors and the Algebra of Necklaces*
    View metadata, citation and similar papers at core.ac.uk brought to you by CORE provided by Elsevier - Publisher Connector ADVANCES IN MATHEMATICS s&95-125 (1983) Witt Vectors and the Algebra of Necklaces* N. METROPOLIS Los Alamos National Laboratory, Los Alamos, New Mexico 87545 AND GIAN-CARLO ROTA+ Massachusetts Institute of Technology, Cambridge, Massachusetts 02139, and Los Alamos National Laboratory, Los Alamos, New Mexico 87545 Contents. 1. Introduction. 2. Words and primitive words. 3. Main results. 4. The Necklace ring. 5. Necklaces and placements. 6. Unital rational functions. 7. Carryless Witt vectors. 8. The Witt ring. 1. INTRODUCTION Given a set of a colors, a necklace is the result of placing n colored beads around a circle. A necklace which is asymmetric under rotation is said to be primitive. The number M(a, n) of primitive necklaces is computed by a formula that goes back to Col. Moreau of the French Army, to wit, where ,U is the classical Mobius function; M(a, n) is called a necklace polynomial. We shall be concerned with some remarkable identities satisfied by the polynomials M(a, n), which apparently have not been previously noticed. Specifically, we prove that M(a/?, n) can be expressed as a quadratic polynomial in M(a, i) and M&j), and generalized to more variables; that M(a’, n) can be expressed linearly and integrally in terms of M(a, i). The proofs given below of these identities are entirely combinatorial (Theorems l-6). * This work was performed under the auspices of the U.S. Department of Energy.
    [Show full text]