Is it possible to reach the initial arrangement?












1












$begingroup$



We have a stack of $n$ books piled on each other, and labeled by $1, 2, ..., n$. In each round we make $n$ moves in the following manner: In the $i$-th move of each turn, we turn over the $i$ books at the top, as a single book. After each round we start a new round similar to the previous one. Show that after some moves, we will reach the initial arrangement.






Say $n=4$ and initial arrangement of books $(a,b,c,d)$. First we act on it with identical transformation $pi_1=id$ which leaves everything as it was. Then we act on it with
$$pi_2 = left(
begin{array}\
1 & 2 & 3 & 4 \
2 & 1 & 3 & 4
end{array}right)$$

and we get $(b,a,c,d)$, then we act on this one with $$pi_3 = left(
begin{array}\
1 & 2 & 3 & 4 \
3 & 2 & 1 & 4
end{array}right)$$
and we get $(c,a,b,d)$ and then $$pi_4 = left(
begin{array}\
1 & 2 & 3 & 4 \
4 & 3 & 2 & 1
end{array}right)$$
and we get $(d,b,a,c)$ and then we repeat acting with $$pi_1,pi_2,pi_3,pi_4,pi_1,pi_2,...$$



Now what do we get if we repeat enough time $$sigma = pi_4circ pi_3circ pi_2circ pi_1$$ on starting $(a,b,c,d)$? If we repeat this $sigma $ exactly $24$ times (which is the order of symmetric group $S_4$) we shoud get initialy arrangment. Clearly this can be easly generalized for arbitrary $n$.



Is this correct?





Edit: As suggested in comment by Lord Shark the Unknown, It shoud be considered also the first and last front of a book. So I should observe 8-couple $(a1,a2,b1,b2,c1,c2,d1,d2)$, where $x1$ is first front and $x2$ last one, instead of 4-couple $(a,b,c,d)$ and act on it with $S_8$?










share|cite|improve this question











$endgroup$








  • 1




    $begingroup$
    Don't forget, you are turning the books over, and need to account for whether they are upside down or the right way up.
    $endgroup$
    – Lord Shark the Unknown
    Jan 22 at 18:54










  • $begingroup$
    So, I should study 8-couple $(a1,a2,b1,b2,c1,c2,d1,d2)$ instead of 4-couple $(a,b,c,d)$ and act on it with $S_8$? @LordSharktheUnknown
    $endgroup$
    – greedoid
    Jan 22 at 19:02












  • $begingroup$
    To clarify, all we do is turn the books over? Or turn them over and move them to the bottom?
    $endgroup$
    – pwerth
    Jan 22 at 19:02










  • $begingroup$
    As I understand it is first one @pwerth
    $endgroup$
    – greedoid
    Jan 22 at 19:02








  • 1




    $begingroup$
    Fun fact: This problem is the subject of Bill Gates' sole mathematics paper.
    $endgroup$
    – vadim123
    Jan 22 at 19:45
















1












$begingroup$



We have a stack of $n$ books piled on each other, and labeled by $1, 2, ..., n$. In each round we make $n$ moves in the following manner: In the $i$-th move of each turn, we turn over the $i$ books at the top, as a single book. After each round we start a new round similar to the previous one. Show that after some moves, we will reach the initial arrangement.






Say $n=4$ and initial arrangement of books $(a,b,c,d)$. First we act on it with identical transformation $pi_1=id$ which leaves everything as it was. Then we act on it with
$$pi_2 = left(
begin{array}\
1 & 2 & 3 & 4 \
2 & 1 & 3 & 4
end{array}right)$$

and we get $(b,a,c,d)$, then we act on this one with $$pi_3 = left(
begin{array}\
1 & 2 & 3 & 4 \
3 & 2 & 1 & 4
end{array}right)$$
and we get $(c,a,b,d)$ and then $$pi_4 = left(
begin{array}\
1 & 2 & 3 & 4 \
4 & 3 & 2 & 1
end{array}right)$$
and we get $(d,b,a,c)$ and then we repeat acting with $$pi_1,pi_2,pi_3,pi_4,pi_1,pi_2,...$$



Now what do we get if we repeat enough time $$sigma = pi_4circ pi_3circ pi_2circ pi_1$$ on starting $(a,b,c,d)$? If we repeat this $sigma $ exactly $24$ times (which is the order of symmetric group $S_4$) we shoud get initialy arrangment. Clearly this can be easly generalized for arbitrary $n$.



Is this correct?





Edit: As suggested in comment by Lord Shark the Unknown, It shoud be considered also the first and last front of a book. So I should observe 8-couple $(a1,a2,b1,b2,c1,c2,d1,d2)$, where $x1$ is first front and $x2$ last one, instead of 4-couple $(a,b,c,d)$ and act on it with $S_8$?










share|cite|improve this question











$endgroup$








  • 1




    $begingroup$
    Don't forget, you are turning the books over, and need to account for whether they are upside down or the right way up.
    $endgroup$
    – Lord Shark the Unknown
    Jan 22 at 18:54










  • $begingroup$
    So, I should study 8-couple $(a1,a2,b1,b2,c1,c2,d1,d2)$ instead of 4-couple $(a,b,c,d)$ and act on it with $S_8$? @LordSharktheUnknown
    $endgroup$
    – greedoid
    Jan 22 at 19:02












  • $begingroup$
    To clarify, all we do is turn the books over? Or turn them over and move them to the bottom?
    $endgroup$
    – pwerth
    Jan 22 at 19:02










  • $begingroup$
    As I understand it is first one @pwerth
    $endgroup$
    – greedoid
    Jan 22 at 19:02








  • 1




    $begingroup$
    Fun fact: This problem is the subject of Bill Gates' sole mathematics paper.
    $endgroup$
    – vadim123
    Jan 22 at 19:45














1












1








1





$begingroup$



We have a stack of $n$ books piled on each other, and labeled by $1, 2, ..., n$. In each round we make $n$ moves in the following manner: In the $i$-th move of each turn, we turn over the $i$ books at the top, as a single book. After each round we start a new round similar to the previous one. Show that after some moves, we will reach the initial arrangement.






Say $n=4$ and initial arrangement of books $(a,b,c,d)$. First we act on it with identical transformation $pi_1=id$ which leaves everything as it was. Then we act on it with
$$pi_2 = left(
begin{array}\
1 & 2 & 3 & 4 \
2 & 1 & 3 & 4
end{array}right)$$

and we get $(b,a,c,d)$, then we act on this one with $$pi_3 = left(
begin{array}\
1 & 2 & 3 & 4 \
3 & 2 & 1 & 4
end{array}right)$$
and we get $(c,a,b,d)$ and then $$pi_4 = left(
begin{array}\
1 & 2 & 3 & 4 \
4 & 3 & 2 & 1
end{array}right)$$
and we get $(d,b,a,c)$ and then we repeat acting with $$pi_1,pi_2,pi_3,pi_4,pi_1,pi_2,...$$



Now what do we get if we repeat enough time $$sigma = pi_4circ pi_3circ pi_2circ pi_1$$ on starting $(a,b,c,d)$? If we repeat this $sigma $ exactly $24$ times (which is the order of symmetric group $S_4$) we shoud get initialy arrangment. Clearly this can be easly generalized for arbitrary $n$.



Is this correct?





Edit: As suggested in comment by Lord Shark the Unknown, It shoud be considered also the first and last front of a book. So I should observe 8-couple $(a1,a2,b1,b2,c1,c2,d1,d2)$, where $x1$ is first front and $x2$ last one, instead of 4-couple $(a,b,c,d)$ and act on it with $S_8$?










share|cite|improve this question











$endgroup$





We have a stack of $n$ books piled on each other, and labeled by $1, 2, ..., n$. In each round we make $n$ moves in the following manner: In the $i$-th move of each turn, we turn over the $i$ books at the top, as a single book. After each round we start a new round similar to the previous one. Show that after some moves, we will reach the initial arrangement.






Say $n=4$ and initial arrangement of books $(a,b,c,d)$. First we act on it with identical transformation $pi_1=id$ which leaves everything as it was. Then we act on it with
$$pi_2 = left(
begin{array}\
1 & 2 & 3 & 4 \
2 & 1 & 3 & 4
end{array}right)$$

and we get $(b,a,c,d)$, then we act on this one with $$pi_3 = left(
begin{array}\
1 & 2 & 3 & 4 \
3 & 2 & 1 & 4
end{array}right)$$
and we get $(c,a,b,d)$ and then $$pi_4 = left(
begin{array}\
1 & 2 & 3 & 4 \
4 & 3 & 2 & 1
end{array}right)$$
and we get $(d,b,a,c)$ and then we repeat acting with $$pi_1,pi_2,pi_3,pi_4,pi_1,pi_2,...$$



Now what do we get if we repeat enough time $$sigma = pi_4circ pi_3circ pi_2circ pi_1$$ on starting $(a,b,c,d)$? If we repeat this $sigma $ exactly $24$ times (which is the order of symmetric group $S_4$) we shoud get initialy arrangment. Clearly this can be easly generalized for arbitrary $n$.



Is this correct?





Edit: As suggested in comment by Lord Shark the Unknown, It shoud be considered also the first and last front of a book. So I should observe 8-couple $(a1,a2,b1,b2,c1,c2,d1,d2)$, where $x1$ is first front and $x2$ last one, instead of 4-couple $(a,b,c,d)$ and act on it with $S_8$?







combinatorics






share|cite|improve this question















share|cite|improve this question













share|cite|improve this question




share|cite|improve this question








edited Jan 23 at 17:45







greedoid

















asked Jan 22 at 18:50









greedoidgreedoid

45k1157112




45k1157112








  • 1




    $begingroup$
    Don't forget, you are turning the books over, and need to account for whether they are upside down or the right way up.
    $endgroup$
    – Lord Shark the Unknown
    Jan 22 at 18:54










  • $begingroup$
    So, I should study 8-couple $(a1,a2,b1,b2,c1,c2,d1,d2)$ instead of 4-couple $(a,b,c,d)$ and act on it with $S_8$? @LordSharktheUnknown
    $endgroup$
    – greedoid
    Jan 22 at 19:02












  • $begingroup$
    To clarify, all we do is turn the books over? Or turn them over and move them to the bottom?
    $endgroup$
    – pwerth
    Jan 22 at 19:02










  • $begingroup$
    As I understand it is first one @pwerth
    $endgroup$
    – greedoid
    Jan 22 at 19:02








  • 1




    $begingroup$
    Fun fact: This problem is the subject of Bill Gates' sole mathematics paper.
    $endgroup$
    – vadim123
    Jan 22 at 19:45














  • 1




    $begingroup$
    Don't forget, you are turning the books over, and need to account for whether they are upside down or the right way up.
    $endgroup$
    – Lord Shark the Unknown
    Jan 22 at 18:54










  • $begingroup$
    So, I should study 8-couple $(a1,a2,b1,b2,c1,c2,d1,d2)$ instead of 4-couple $(a,b,c,d)$ and act on it with $S_8$? @LordSharktheUnknown
    $endgroup$
    – greedoid
    Jan 22 at 19:02












  • $begingroup$
    To clarify, all we do is turn the books over? Or turn them over and move them to the bottom?
    $endgroup$
    – pwerth
    Jan 22 at 19:02










  • $begingroup$
    As I understand it is first one @pwerth
    $endgroup$
    – greedoid
    Jan 22 at 19:02








  • 1




    $begingroup$
    Fun fact: This problem is the subject of Bill Gates' sole mathematics paper.
    $endgroup$
    – vadim123
    Jan 22 at 19:45








1




1




$begingroup$
Don't forget, you are turning the books over, and need to account for whether they are upside down or the right way up.
$endgroup$
– Lord Shark the Unknown
Jan 22 at 18:54




$begingroup$
Don't forget, you are turning the books over, and need to account for whether they are upside down or the right way up.
$endgroup$
– Lord Shark the Unknown
Jan 22 at 18:54












$begingroup$
So, I should study 8-couple $(a1,a2,b1,b2,c1,c2,d1,d2)$ instead of 4-couple $(a,b,c,d)$ and act on it with $S_8$? @LordSharktheUnknown
$endgroup$
– greedoid
Jan 22 at 19:02






$begingroup$
So, I should study 8-couple $(a1,a2,b1,b2,c1,c2,d1,d2)$ instead of 4-couple $(a,b,c,d)$ and act on it with $S_8$? @LordSharktheUnknown
$endgroup$
– greedoid
Jan 22 at 19:02














$begingroup$
To clarify, all we do is turn the books over? Or turn them over and move them to the bottom?
$endgroup$
– pwerth
Jan 22 at 19:02




$begingroup$
To clarify, all we do is turn the books over? Or turn them over and move them to the bottom?
$endgroup$
– pwerth
Jan 22 at 19:02












$begingroup$
As I understand it is first one @pwerth
$endgroup$
– greedoid
Jan 22 at 19:02






$begingroup$
As I understand it is first one @pwerth
$endgroup$
– greedoid
Jan 22 at 19:02






1




1




$begingroup$
Fun fact: This problem is the subject of Bill Gates' sole mathematics paper.
$endgroup$
– vadim123
Jan 22 at 19:45




$begingroup$
Fun fact: This problem is the subject of Bill Gates' sole mathematics paper.
$endgroup$
– vadim123
Jan 22 at 19:45










2 Answers
2






active

oldest

votes


















2












$begingroup$

Let $S$ be the set of $2n$ book covers. Each round is a permutation of $S$. Every permutation $pi$ of a finite set has a number $k$ such that $pi^k=text{id}$. One can choose $k$ to be the lcm of the cycle lengths of $pi$.



For example, when $n=2$, a single round looks like this, where capital letters are the top cover and lower case are the bottom cover.



A    a    b
a A B
B B A
b b a


In cycle notation, this looks like $(A;; B;; a;; b)$. This a cycle of order four, so four rounds suffice to return the books to their original order.






share|cite|improve this answer









$endgroup$





















    1












    $begingroup$

    For clear reference, here is a complete cycle of moves. Negative number represents book face down.



     1  2  3  4 
    -1 2 3 4
    -2 1 3 4
    -3 -1 2 4
    -4 -2 1 3
    4 -2 1 3
    2 -4 1 3
    -1 4 -2 3
    -3 2 -4 1
    3 2 -4 1
    -2 -3 -4 1
    4 3 2 1
    -1 -2 -3 -4
    1 -2 -3 -4
    2 -1 -3 -4
    3 1 -2 -4
    4 2 -1 -3
    -4 2 -1 -3
    -2 4 -1 -3
    1 -4 2 -3
    3 -2 4 -1
    -3 -2 4 -1
    2 3 4 -1
    -4 -3 -2 -1
    1 2 3 4 << return to initial state





    share|cite|improve this answer









    $endgroup$













      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',
      autoActivateHeartbeat: false,
      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%2f3083542%2fis-it-possible-to-reach-the-initial-arrangement%23new-answer', 'question_page');
      }
      );

      Post as a guest















      Required, but never shown

























      2 Answers
      2






      active

      oldest

      votes








      2 Answers
      2






      active

      oldest

      votes









      active

      oldest

      votes






      active

      oldest

      votes









      2












      $begingroup$

      Let $S$ be the set of $2n$ book covers. Each round is a permutation of $S$. Every permutation $pi$ of a finite set has a number $k$ such that $pi^k=text{id}$. One can choose $k$ to be the lcm of the cycle lengths of $pi$.



      For example, when $n=2$, a single round looks like this, where capital letters are the top cover and lower case are the bottom cover.



      A    a    b
      a A B
      B B A
      b b a


      In cycle notation, this looks like $(A;; B;; a;; b)$. This a cycle of order four, so four rounds suffice to return the books to their original order.






      share|cite|improve this answer









      $endgroup$


















        2












        $begingroup$

        Let $S$ be the set of $2n$ book covers. Each round is a permutation of $S$. Every permutation $pi$ of a finite set has a number $k$ such that $pi^k=text{id}$. One can choose $k$ to be the lcm of the cycle lengths of $pi$.



        For example, when $n=2$, a single round looks like this, where capital letters are the top cover and lower case are the bottom cover.



        A    a    b
        a A B
        B B A
        b b a


        In cycle notation, this looks like $(A;; B;; a;; b)$. This a cycle of order four, so four rounds suffice to return the books to their original order.






        share|cite|improve this answer









        $endgroup$
















          2












          2








          2





          $begingroup$

          Let $S$ be the set of $2n$ book covers. Each round is a permutation of $S$. Every permutation $pi$ of a finite set has a number $k$ such that $pi^k=text{id}$. One can choose $k$ to be the lcm of the cycle lengths of $pi$.



          For example, when $n=2$, a single round looks like this, where capital letters are the top cover and lower case are the bottom cover.



          A    a    b
          a A B
          B B A
          b b a


          In cycle notation, this looks like $(A;; B;; a;; b)$. This a cycle of order four, so four rounds suffice to return the books to their original order.






          share|cite|improve this answer









          $endgroup$



          Let $S$ be the set of $2n$ book covers. Each round is a permutation of $S$. Every permutation $pi$ of a finite set has a number $k$ such that $pi^k=text{id}$. One can choose $k$ to be the lcm of the cycle lengths of $pi$.



          For example, when $n=2$, a single round looks like this, where capital letters are the top cover and lower case are the bottom cover.



          A    a    b
          a A B
          B B A
          b b a


          In cycle notation, this looks like $(A;; B;; a;; b)$. This a cycle of order four, so four rounds suffice to return the books to their original order.







          share|cite|improve this answer












          share|cite|improve this answer



          share|cite|improve this answer










          answered Jan 22 at 19:57









          Mike EarnestMike Earnest

          23.9k12051




          23.9k12051























              1












              $begingroup$

              For clear reference, here is a complete cycle of moves. Negative number represents book face down.



               1  2  3  4 
              -1 2 3 4
              -2 1 3 4
              -3 -1 2 4
              -4 -2 1 3
              4 -2 1 3
              2 -4 1 3
              -1 4 -2 3
              -3 2 -4 1
              3 2 -4 1
              -2 -3 -4 1
              4 3 2 1
              -1 -2 -3 -4
              1 -2 -3 -4
              2 -1 -3 -4
              3 1 -2 -4
              4 2 -1 -3
              -4 2 -1 -3
              -2 4 -1 -3
              1 -4 2 -3
              3 -2 4 -1
              -3 -2 4 -1
              2 3 4 -1
              -4 -3 -2 -1
              1 2 3 4 << return to initial state





              share|cite|improve this answer









              $endgroup$


















                1












                $begingroup$

                For clear reference, here is a complete cycle of moves. Negative number represents book face down.



                 1  2  3  4 
                -1 2 3 4
                -2 1 3 4
                -3 -1 2 4
                -4 -2 1 3
                4 -2 1 3
                2 -4 1 3
                -1 4 -2 3
                -3 2 -4 1
                3 2 -4 1
                -2 -3 -4 1
                4 3 2 1
                -1 -2 -3 -4
                1 -2 -3 -4
                2 -1 -3 -4
                3 1 -2 -4
                4 2 -1 -3
                -4 2 -1 -3
                -2 4 -1 -3
                1 -4 2 -3
                3 -2 4 -1
                -3 -2 4 -1
                2 3 4 -1
                -4 -3 -2 -1
                1 2 3 4 << return to initial state





                share|cite|improve this answer









                $endgroup$
















                  1












                  1








                  1





                  $begingroup$

                  For clear reference, here is a complete cycle of moves. Negative number represents book face down.



                   1  2  3  4 
                  -1 2 3 4
                  -2 1 3 4
                  -3 -1 2 4
                  -4 -2 1 3
                  4 -2 1 3
                  2 -4 1 3
                  -1 4 -2 3
                  -3 2 -4 1
                  3 2 -4 1
                  -2 -3 -4 1
                  4 3 2 1
                  -1 -2 -3 -4
                  1 -2 -3 -4
                  2 -1 -3 -4
                  3 1 -2 -4
                  4 2 -1 -3
                  -4 2 -1 -3
                  -2 4 -1 -3
                  1 -4 2 -3
                  3 -2 4 -1
                  -3 -2 4 -1
                  2 3 4 -1
                  -4 -3 -2 -1
                  1 2 3 4 << return to initial state





                  share|cite|improve this answer









                  $endgroup$



                  For clear reference, here is a complete cycle of moves. Negative number represents book face down.



                   1  2  3  4 
                  -1 2 3 4
                  -2 1 3 4
                  -3 -1 2 4
                  -4 -2 1 3
                  4 -2 1 3
                  2 -4 1 3
                  -1 4 -2 3
                  -3 2 -4 1
                  3 2 -4 1
                  -2 -3 -4 1
                  4 3 2 1
                  -1 -2 -3 -4
                  1 -2 -3 -4
                  2 -1 -3 -4
                  3 1 -2 -4
                  4 2 -1 -3
                  -4 2 -1 -3
                  -2 4 -1 -3
                  1 -4 2 -3
                  3 -2 4 -1
                  -3 -2 4 -1
                  2 3 4 -1
                  -4 -3 -2 -1
                  1 2 3 4 << return to initial state






                  share|cite|improve this answer












                  share|cite|improve this answer



                  share|cite|improve this answer










                  answered Jan 22 at 19:54









                  Daniel MathiasDaniel Mathias

                  1,31518




                  1,31518






























                      draft saved

                      draft discarded




















































                      Thanks for contributing an answer to Mathematics Stack Exchange!


                      • Please be sure to answer the question. Provide details and share your research!

                      But avoid



                      • Asking for help, clarification, or responding to other answers.

                      • Making statements based on opinion; back them up with references or personal experience.


                      Use MathJax to format equations. MathJax reference.


                      To learn more, see our tips on writing great answers.




                      draft saved


                      draft discarded














                      StackExchange.ready(
                      function () {
                      StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fmath.stackexchange.com%2fquestions%2f3083542%2fis-it-possible-to-reach-the-initial-arrangement%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

                      Mario Kart Wii

                      The Binding of Isaac: Rebirth/Afterbirth

                      What does “Dominus providebit” mean?