coloring with a dihedral group $D_n$ with n prime











up vote
4
down vote

favorite












I need to find out how many different colorings you can make with 2 colors in a dihedral group $D_n$ with $n$ prime and $m$ black and $p-m$ white beads. So first I compute the cycle index:
The cycle index of a dihedral group with $n$ prime (odd) is equal to:
$$Z(D_n) = frac{1}{2}(frac{1}{n}a_1^n + frac{(n-1)}{n}a_n + a_1a_2^frac{n-1}{2})$$
Now I fill in:
$$a_1 = (b+w), a_2 = (b^2 + w^2), a_n = (b^n + w^n)$$
After that, I find the number before the $b^mw^{p-m}$ and that is the amount of different colorings with $m$ black and $p-m$ white beads. But is there a general formule to find that number?










share|cite|improve this question




























    up vote
    4
    down vote

    favorite












    I need to find out how many different colorings you can make with 2 colors in a dihedral group $D_n$ with $n$ prime and $m$ black and $p-m$ white beads. So first I compute the cycle index:
    The cycle index of a dihedral group with $n$ prime (odd) is equal to:
    $$Z(D_n) = frac{1}{2}(frac{1}{n}a_1^n + frac{(n-1)}{n}a_n + a_1a_2^frac{n-1}{2})$$
    Now I fill in:
    $$a_1 = (b+w), a_2 = (b^2 + w^2), a_n = (b^n + w^n)$$
    After that, I find the number before the $b^mw^{p-m}$ and that is the amount of different colorings with $m$ black and $p-m$ white beads. But is there a general formule to find that number?










    share|cite|improve this question


























      up vote
      4
      down vote

      favorite









      up vote
      4
      down vote

      favorite











      I need to find out how many different colorings you can make with 2 colors in a dihedral group $D_n$ with $n$ prime and $m$ black and $p-m$ white beads. So first I compute the cycle index:
      The cycle index of a dihedral group with $n$ prime (odd) is equal to:
      $$Z(D_n) = frac{1}{2}(frac{1}{n}a_1^n + frac{(n-1)}{n}a_n + a_1a_2^frac{n-1}{2})$$
      Now I fill in:
      $$a_1 = (b+w), a_2 = (b^2 + w^2), a_n = (b^n + w^n)$$
      After that, I find the number before the $b^mw^{p-m}$ and that is the amount of different colorings with $m$ black and $p-m$ white beads. But is there a general formule to find that number?










      share|cite|improve this question















      I need to find out how many different colorings you can make with 2 colors in a dihedral group $D_n$ with $n$ prime and $m$ black and $p-m$ white beads. So first I compute the cycle index:
      The cycle index of a dihedral group with $n$ prime (odd) is equal to:
      $$Z(D_n) = frac{1}{2}(frac{1}{n}a_1^n + frac{(n-1)}{n}a_n + a_1a_2^frac{n-1}{2})$$
      Now I fill in:
      $$a_1 = (b+w), a_2 = (b^2 + w^2), a_n = (b^n + w^n)$$
      After that, I find the number before the $b^mw^{p-m}$ and that is the amount of different colorings with $m$ black and $p-m$ white beads. But is there a general formule to find that number?







      combinatorics group-theory graph-theory






      share|cite|improve this question















      share|cite|improve this question













      share|cite|improve this question




      share|cite|improve this question








      edited Nov 14 at 13:00

























      asked Nov 14 at 12:55









      Hans

      567




      567






















          1 Answer
          1






          active

          oldest

          votes

















          up vote
          2
          down vote



          accepted











          Cycle index.



          $$Z(D_p) = frac{1}{2p}
          left(a_1^{p} + (p-1) a_p + p a_1 a_2^{(p-1)/2}right)$$



          We are interested in



          $$[B^m W^{p-m}] Z(D_p; B+W).$$



          This has three components.




          First component.



          $$[B^m W^{p-m}] frac{1}{2p} (B+W)^p
          = frac{1}{2p} {pchoose m}.$$




          Second component.



          $$[B^m W^{p-m}] frac{p-1}{2p} (B^p+W^p).$$



          This is using an Iverson bracket:



          $$frac{p-1}{2p} [[m=0 lor m=p]].$$




          Third component.



          $$[B^m W^{p-m}] frac{1}{2} (B+W) (B^2+W^2)^{(p-1)/2}.$$



          Now with $p$ prime we cannot have both $m$ and $p-m$ even, or both odd,
          so one is odd and the other one even. Supposing that $m$ is odd we get



          $$[B^{m-1} W^{p-m}] frac{1}{2} (B^2+W^2)^{(p-1)/2}
          \ = [B^{(m-1)/2} W^{(p-m)/2}] frac{1}{2} (B+W)^{(p-1)/2}
          = frac{1}{2} {(p-1)/2 choose (m-1)/2}.$$



          Alternatively, if $p-m$ is odd we get



          $$[B^{m} W^{p-m-1}] frac{1}{2} (B^2+W^2)^{(p-1)/2}
          \ = [B^{m/2} W^{(p-m-1)/2}] frac{1}{2} (B+W)^{(p-1)/2}
          = frac{1}{2} {(p-1)/2 choose m/2}.$$




          Closed form.



          $$bbox[5px,border:2px solid #00A000]{
          frac{1}{2p} {pchoose m}
          + frac{p-1}{2p} [[m=0 lor m=p]]
          + frac{1}{2} {(p-1)/2 choose (m-[[m ;text{odd}]])/2}.}$$




          Sanity check.



          With a monochrome coloring we should get one as the answer, and
          we find for $m=0$ ($B^0 W^p = W^p$)



          $$frac{1}{2p} {pchoose 0} + frac{p-1}{2p}
          + frac{1}{2} {(p-1)/2 choose 0}
          = frac{p}{2p} + frac{1}{2} = 1.$$



          Similarly we get for $m=p$ ($B^p W^0 = B^p$)



          $$frac{1}{2p} {pchoose p} + frac{p-1}{2p}
          + frac{1}{2} {(p-1)/2 choose (p-1)/2}
          = frac{p}{2p} + frac{1}{2} = 1.$$



          The sanity check goes through. Another sanity check is $m=1$ or
          $m=p-1$ which should give one coloring as well. We find



          $$frac{1}{2p} {pchoose 1}
          + frac{1}{2} {(p-1)/2choose 0} = 1$$



          and



          $$frac{1}{2p} {pchoose p-1}
          + frac{1}{2} {(p-1)/2choose (p-1)/2} = 1.$$






          share|cite|improve this answer























          • Great, thank you. But why do you fill in by the third component $m-1$ and $p-m-1$? Why the $-1$?
            – Hans
            Nov 14 at 16:20












          • The term in front $(B+W)$ which corresponds to $a_1$ absorbs a power of $B$ or $W$.
            – Marko Riedel
            Nov 14 at 16:22











          Your Answer





          StackExchange.ifUsing("editor", function () {
          return StackExchange.using("mathjaxEditing", function () {
          StackExchange.MarkdownEditor.creationCallbacks.add(function (editor, postfix) {
          StackExchange.mathjaxEditing.prepareWmdForMathJax(editor, postfix, [["$", "$"], ["\\(","\\)"]]);
          });
          });
          }, "mathjax-editing");

          StackExchange.ready(function() {
          var channelOptions = {
          tags: "".split(" "),
          id: "69"
          };
          initTagRenderer("".split(" "), "".split(" "), channelOptions);

          StackExchange.using("externalEditor", function() {
          // Have to fire editor after snippets, if snippets enabled
          if (StackExchange.settings.snippets.snippetsEnabled) {
          StackExchange.using("snippets", function() {
          createEditor();
          });
          }
          else {
          createEditor();
          }
          });

          function createEditor() {
          StackExchange.prepareEditor({
          heartbeatType: 'answer',
          convertImagesToLinks: true,
          noModals: true,
          showLowRepImageUploadWarning: true,
          reputationToPostImages: 10,
          bindNavPrevention: true,
          postfix: "",
          imageUploader: {
          brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
          contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
          allowUrls: true
          },
          noCode: true, onDemand: true,
          discardSelector: ".discard-answer"
          ,immediatelyShowMarkdownHelp:true
          });


          }
          });














           

          draft saved


          draft discarded


















          StackExchange.ready(
          function () {
          StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fmath.stackexchange.com%2fquestions%2f2998245%2fcoloring-with-a-dihedral-group-d-n-with-n-prime%23new-answer', 'question_page');
          }
          );

          Post as a guest















          Required, but never shown

























          1 Answer
          1






          active

          oldest

          votes








          1 Answer
          1






          active

          oldest

          votes









          active

          oldest

          votes






          active

          oldest

          votes








          up vote
          2
          down vote



          accepted











          Cycle index.



          $$Z(D_p) = frac{1}{2p}
          left(a_1^{p} + (p-1) a_p + p a_1 a_2^{(p-1)/2}right)$$



          We are interested in



          $$[B^m W^{p-m}] Z(D_p; B+W).$$



          This has three components.




          First component.



          $$[B^m W^{p-m}] frac{1}{2p} (B+W)^p
          = frac{1}{2p} {pchoose m}.$$




          Second component.



          $$[B^m W^{p-m}] frac{p-1}{2p} (B^p+W^p).$$



          This is using an Iverson bracket:



          $$frac{p-1}{2p} [[m=0 lor m=p]].$$




          Third component.



          $$[B^m W^{p-m}] frac{1}{2} (B+W) (B^2+W^2)^{(p-1)/2}.$$



          Now with $p$ prime we cannot have both $m$ and $p-m$ even, or both odd,
          so one is odd and the other one even. Supposing that $m$ is odd we get



          $$[B^{m-1} W^{p-m}] frac{1}{2} (B^2+W^2)^{(p-1)/2}
          \ = [B^{(m-1)/2} W^{(p-m)/2}] frac{1}{2} (B+W)^{(p-1)/2}
          = frac{1}{2} {(p-1)/2 choose (m-1)/2}.$$



          Alternatively, if $p-m$ is odd we get



          $$[B^{m} W^{p-m-1}] frac{1}{2} (B^2+W^2)^{(p-1)/2}
          \ = [B^{m/2} W^{(p-m-1)/2}] frac{1}{2} (B+W)^{(p-1)/2}
          = frac{1}{2} {(p-1)/2 choose m/2}.$$




          Closed form.



          $$bbox[5px,border:2px solid #00A000]{
          frac{1}{2p} {pchoose m}
          + frac{p-1}{2p} [[m=0 lor m=p]]
          + frac{1}{2} {(p-1)/2 choose (m-[[m ;text{odd}]])/2}.}$$




          Sanity check.



          With a monochrome coloring we should get one as the answer, and
          we find for $m=0$ ($B^0 W^p = W^p$)



          $$frac{1}{2p} {pchoose 0} + frac{p-1}{2p}
          + frac{1}{2} {(p-1)/2 choose 0}
          = frac{p}{2p} + frac{1}{2} = 1.$$



          Similarly we get for $m=p$ ($B^p W^0 = B^p$)



          $$frac{1}{2p} {pchoose p} + frac{p-1}{2p}
          + frac{1}{2} {(p-1)/2 choose (p-1)/2}
          = frac{p}{2p} + frac{1}{2} = 1.$$



          The sanity check goes through. Another sanity check is $m=1$ or
          $m=p-1$ which should give one coloring as well. We find



          $$frac{1}{2p} {pchoose 1}
          + frac{1}{2} {(p-1)/2choose 0} = 1$$



          and



          $$frac{1}{2p} {pchoose p-1}
          + frac{1}{2} {(p-1)/2choose (p-1)/2} = 1.$$






          share|cite|improve this answer























          • Great, thank you. But why do you fill in by the third component $m-1$ and $p-m-1$? Why the $-1$?
            – Hans
            Nov 14 at 16:20












          • The term in front $(B+W)$ which corresponds to $a_1$ absorbs a power of $B$ or $W$.
            – Marko Riedel
            Nov 14 at 16:22















          up vote
          2
          down vote



          accepted











          Cycle index.



          $$Z(D_p) = frac{1}{2p}
          left(a_1^{p} + (p-1) a_p + p a_1 a_2^{(p-1)/2}right)$$



          We are interested in



          $$[B^m W^{p-m}] Z(D_p; B+W).$$



          This has three components.




          First component.



          $$[B^m W^{p-m}] frac{1}{2p} (B+W)^p
          = frac{1}{2p} {pchoose m}.$$




          Second component.



          $$[B^m W^{p-m}] frac{p-1}{2p} (B^p+W^p).$$



          This is using an Iverson bracket:



          $$frac{p-1}{2p} [[m=0 lor m=p]].$$




          Third component.



          $$[B^m W^{p-m}] frac{1}{2} (B+W) (B^2+W^2)^{(p-1)/2}.$$



          Now with $p$ prime we cannot have both $m$ and $p-m$ even, or both odd,
          so one is odd and the other one even. Supposing that $m$ is odd we get



          $$[B^{m-1} W^{p-m}] frac{1}{2} (B^2+W^2)^{(p-1)/2}
          \ = [B^{(m-1)/2} W^{(p-m)/2}] frac{1}{2} (B+W)^{(p-1)/2}
          = frac{1}{2} {(p-1)/2 choose (m-1)/2}.$$



          Alternatively, if $p-m$ is odd we get



          $$[B^{m} W^{p-m-1}] frac{1}{2} (B^2+W^2)^{(p-1)/2}
          \ = [B^{m/2} W^{(p-m-1)/2}] frac{1}{2} (B+W)^{(p-1)/2}
          = frac{1}{2} {(p-1)/2 choose m/2}.$$




          Closed form.



          $$bbox[5px,border:2px solid #00A000]{
          frac{1}{2p} {pchoose m}
          + frac{p-1}{2p} [[m=0 lor m=p]]
          + frac{1}{2} {(p-1)/2 choose (m-[[m ;text{odd}]])/2}.}$$




          Sanity check.



          With a monochrome coloring we should get one as the answer, and
          we find for $m=0$ ($B^0 W^p = W^p$)



          $$frac{1}{2p} {pchoose 0} + frac{p-1}{2p}
          + frac{1}{2} {(p-1)/2 choose 0}
          = frac{p}{2p} + frac{1}{2} = 1.$$



          Similarly we get for $m=p$ ($B^p W^0 = B^p$)



          $$frac{1}{2p} {pchoose p} + frac{p-1}{2p}
          + frac{1}{2} {(p-1)/2 choose (p-1)/2}
          = frac{p}{2p} + frac{1}{2} = 1.$$



          The sanity check goes through. Another sanity check is $m=1$ or
          $m=p-1$ which should give one coloring as well. We find



          $$frac{1}{2p} {pchoose 1}
          + frac{1}{2} {(p-1)/2choose 0} = 1$$



          and



          $$frac{1}{2p} {pchoose p-1}
          + frac{1}{2} {(p-1)/2choose (p-1)/2} = 1.$$






          share|cite|improve this answer























          • Great, thank you. But why do you fill in by the third component $m-1$ and $p-m-1$? Why the $-1$?
            – Hans
            Nov 14 at 16:20












          • The term in front $(B+W)$ which corresponds to $a_1$ absorbs a power of $B$ or $W$.
            – Marko Riedel
            Nov 14 at 16:22













          up vote
          2
          down vote



          accepted







          up vote
          2
          down vote



          accepted







          Cycle index.



          $$Z(D_p) = frac{1}{2p}
          left(a_1^{p} + (p-1) a_p + p a_1 a_2^{(p-1)/2}right)$$



          We are interested in



          $$[B^m W^{p-m}] Z(D_p; B+W).$$



          This has three components.




          First component.



          $$[B^m W^{p-m}] frac{1}{2p} (B+W)^p
          = frac{1}{2p} {pchoose m}.$$




          Second component.



          $$[B^m W^{p-m}] frac{p-1}{2p} (B^p+W^p).$$



          This is using an Iverson bracket:



          $$frac{p-1}{2p} [[m=0 lor m=p]].$$




          Third component.



          $$[B^m W^{p-m}] frac{1}{2} (B+W) (B^2+W^2)^{(p-1)/2}.$$



          Now with $p$ prime we cannot have both $m$ and $p-m$ even, or both odd,
          so one is odd and the other one even. Supposing that $m$ is odd we get



          $$[B^{m-1} W^{p-m}] frac{1}{2} (B^2+W^2)^{(p-1)/2}
          \ = [B^{(m-1)/2} W^{(p-m)/2}] frac{1}{2} (B+W)^{(p-1)/2}
          = frac{1}{2} {(p-1)/2 choose (m-1)/2}.$$



          Alternatively, if $p-m$ is odd we get



          $$[B^{m} W^{p-m-1}] frac{1}{2} (B^2+W^2)^{(p-1)/2}
          \ = [B^{m/2} W^{(p-m-1)/2}] frac{1}{2} (B+W)^{(p-1)/2}
          = frac{1}{2} {(p-1)/2 choose m/2}.$$




          Closed form.



          $$bbox[5px,border:2px solid #00A000]{
          frac{1}{2p} {pchoose m}
          + frac{p-1}{2p} [[m=0 lor m=p]]
          + frac{1}{2} {(p-1)/2 choose (m-[[m ;text{odd}]])/2}.}$$




          Sanity check.



          With a monochrome coloring we should get one as the answer, and
          we find for $m=0$ ($B^0 W^p = W^p$)



          $$frac{1}{2p} {pchoose 0} + frac{p-1}{2p}
          + frac{1}{2} {(p-1)/2 choose 0}
          = frac{p}{2p} + frac{1}{2} = 1.$$



          Similarly we get for $m=p$ ($B^p W^0 = B^p$)



          $$frac{1}{2p} {pchoose p} + frac{p-1}{2p}
          + frac{1}{2} {(p-1)/2 choose (p-1)/2}
          = frac{p}{2p} + frac{1}{2} = 1.$$



          The sanity check goes through. Another sanity check is $m=1$ or
          $m=p-1$ which should give one coloring as well. We find



          $$frac{1}{2p} {pchoose 1}
          + frac{1}{2} {(p-1)/2choose 0} = 1$$



          and



          $$frac{1}{2p} {pchoose p-1}
          + frac{1}{2} {(p-1)/2choose (p-1)/2} = 1.$$






          share|cite|improve this answer















          Cycle index.



          $$Z(D_p) = frac{1}{2p}
          left(a_1^{p} + (p-1) a_p + p a_1 a_2^{(p-1)/2}right)$$



          We are interested in



          $$[B^m W^{p-m}] Z(D_p; B+W).$$



          This has three components.




          First component.



          $$[B^m W^{p-m}] frac{1}{2p} (B+W)^p
          = frac{1}{2p} {pchoose m}.$$




          Second component.



          $$[B^m W^{p-m}] frac{p-1}{2p} (B^p+W^p).$$



          This is using an Iverson bracket:



          $$frac{p-1}{2p} [[m=0 lor m=p]].$$




          Third component.



          $$[B^m W^{p-m}] frac{1}{2} (B+W) (B^2+W^2)^{(p-1)/2}.$$



          Now with $p$ prime we cannot have both $m$ and $p-m$ even, or both odd,
          so one is odd and the other one even. Supposing that $m$ is odd we get



          $$[B^{m-1} W^{p-m}] frac{1}{2} (B^2+W^2)^{(p-1)/2}
          \ = [B^{(m-1)/2} W^{(p-m)/2}] frac{1}{2} (B+W)^{(p-1)/2}
          = frac{1}{2} {(p-1)/2 choose (m-1)/2}.$$



          Alternatively, if $p-m$ is odd we get



          $$[B^{m} W^{p-m-1}] frac{1}{2} (B^2+W^2)^{(p-1)/2}
          \ = [B^{m/2} W^{(p-m-1)/2}] frac{1}{2} (B+W)^{(p-1)/2}
          = frac{1}{2} {(p-1)/2 choose m/2}.$$




          Closed form.



          $$bbox[5px,border:2px solid #00A000]{
          frac{1}{2p} {pchoose m}
          + frac{p-1}{2p} [[m=0 lor m=p]]
          + frac{1}{2} {(p-1)/2 choose (m-[[m ;text{odd}]])/2}.}$$




          Sanity check.



          With a monochrome coloring we should get one as the answer, and
          we find for $m=0$ ($B^0 W^p = W^p$)



          $$frac{1}{2p} {pchoose 0} + frac{p-1}{2p}
          + frac{1}{2} {(p-1)/2 choose 0}
          = frac{p}{2p} + frac{1}{2} = 1.$$



          Similarly we get for $m=p$ ($B^p W^0 = B^p$)



          $$frac{1}{2p} {pchoose p} + frac{p-1}{2p}
          + frac{1}{2} {(p-1)/2 choose (p-1)/2}
          = frac{p}{2p} + frac{1}{2} = 1.$$



          The sanity check goes through. Another sanity check is $m=1$ or
          $m=p-1$ which should give one coloring as well. We find



          $$frac{1}{2p} {pchoose 1}
          + frac{1}{2} {(p-1)/2choose 0} = 1$$



          and



          $$frac{1}{2p} {pchoose p-1}
          + frac{1}{2} {(p-1)/2choose (p-1)/2} = 1.$$







          share|cite|improve this answer














          share|cite|improve this answer



          share|cite|improve this answer








          edited Nov 14 at 18:19

























          answered Nov 14 at 15:09









          Marko Riedel

          38.4k339106




          38.4k339106












          • Great, thank you. But why do you fill in by the third component $m-1$ and $p-m-1$? Why the $-1$?
            – Hans
            Nov 14 at 16:20












          • The term in front $(B+W)$ which corresponds to $a_1$ absorbs a power of $B$ or $W$.
            – Marko Riedel
            Nov 14 at 16:22


















          • Great, thank you. But why do you fill in by the third component $m-1$ and $p-m-1$? Why the $-1$?
            – Hans
            Nov 14 at 16:20












          • The term in front $(B+W)$ which corresponds to $a_1$ absorbs a power of $B$ or $W$.
            – Marko Riedel
            Nov 14 at 16:22
















          Great, thank you. But why do you fill in by the third component $m-1$ and $p-m-1$? Why the $-1$?
          – Hans
          Nov 14 at 16:20






          Great, thank you. But why do you fill in by the third component $m-1$ and $p-m-1$? Why the $-1$?
          – Hans
          Nov 14 at 16:20














          The term in front $(B+W)$ which corresponds to $a_1$ absorbs a power of $B$ or $W$.
          – Marko Riedel
          Nov 14 at 16:22




          The term in front $(B+W)$ which corresponds to $a_1$ absorbs a power of $B$ or $W$.
          – Marko Riedel
          Nov 14 at 16:22


















           

          draft saved


          draft discarded



















































           


          draft saved


          draft discarded














          StackExchange.ready(
          function () {
          StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fmath.stackexchange.com%2fquestions%2f2998245%2fcoloring-with-a-dihedral-group-d-n-with-n-prime%23new-answer', 'question_page');
          }
          );

          Post as a guest















          Required, but never shown





















































          Required, but never shown














          Required, but never shown












          Required, but never shown







          Required, but never shown

































          Required, but never shown














          Required, but never shown












          Required, but never shown







          Required, but never shown







          Popular posts from this blog

          How to change which sound is reproduced for terminal bell?

          Title Spacing in Bjornstrup Chapter, Removing Chapter Number From Contents

          Can I use Tabulator js library in my java Spring + Thymeleaf project?