A game with numbered cards

The name of the pictureThe name of the pictureThe name of the pictureClash Royale CLAN TAG#URR8PPP











up vote
2
down vote

favorite












Alice and Bob have each a number (not greater than 20) of cards numbered sequentially 1 onwards. Alice can easily reorder her cards and place them on a table one after the other so that no two cards which lie next to each other have a digit in common. On the other hand Bob, who has just one card more than Alice, has no way of placing his cards on a table likewise (no two cards lying next to each other with a shared digit), however he tries.



How many numbered cards does Alice have?










share|improve this question



























    up vote
    2
    down vote

    favorite












    Alice and Bob have each a number (not greater than 20) of cards numbered sequentially 1 onwards. Alice can easily reorder her cards and place them on a table one after the other so that no two cards which lie next to each other have a digit in common. On the other hand Bob, who has just one card more than Alice, has no way of placing his cards on a table likewise (no two cards lying next to each other with a shared digit), however he tries.



    How many numbered cards does Alice have?










    share|improve this question

























      up vote
      2
      down vote

      favorite









      up vote
      2
      down vote

      favorite











      Alice and Bob have each a number (not greater than 20) of cards numbered sequentially 1 onwards. Alice can easily reorder her cards and place them on a table one after the other so that no two cards which lie next to each other have a digit in common. On the other hand Bob, who has just one card more than Alice, has no way of placing his cards on a table likewise (no two cards lying next to each other with a shared digit), however he tries.



      How many numbered cards does Alice have?










      share|improve this question















      Alice and Bob have each a number (not greater than 20) of cards numbered sequentially 1 onwards. Alice can easily reorder her cards and place them on a table one after the other so that no two cards which lie next to each other have a digit in common. On the other hand Bob, who has just one card more than Alice, has no way of placing his cards on a table likewise (no two cards lying next to each other with a shared digit), however he tries.



      How many numbered cards does Alice have?







      number-sequence






      share|improve this question















      share|improve this question













      share|improve this question




      share|improve this question








      edited 17 mins ago

























      asked 1 hour ago









      Bernardo Recamán Santos

      1,7531034




      1,7531034




















          1 Answer
          1






          active

          oldest

          votes

















          up vote
          3
          down vote













          I think that Alice must have




          $17$ cards




          Reasoning




          In the first $18$ cards, that Bob will have, $10$ of those will contain the digit '$1$'. For any ordering, if we divide the cards into $9$ consecutive pairs, by the Pigeonhole Principle, there will be at least one pair which contain two cards showing the digit '$1$'. Hence, Bob will never be able to find a configuration that works.

          On the other hand, Alice just needs to ensure all cards containing the digit '$1$' appear in the odd numbered positions and ensure no two cards which differ by $10$ are next to each other. For example, she could order them as follows, $$ 1, 2, 10, 3, 11, 4, 12, 5, 13, 6, 14, 7, 15, 8, 16, 9, 17$$







          share|improve this answer




















            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: "559"
            ;
            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: false,
            noModals: false,
            showLowRepImageUploadWarning: true,
            reputationToPostImages: null,
            bindNavPrevention: true,
            postfix: "",
            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%2fpuzzling.stackexchange.com%2fquestions%2f74431%2fa-game-with-numbered-cards%23new-answer', 'question_page');

            );

            Post as a guest






























            1 Answer
            1






            active

            oldest

            votes








            1 Answer
            1






            active

            oldest

            votes









            active

            oldest

            votes






            active

            oldest

            votes








            up vote
            3
            down vote













            I think that Alice must have




            $17$ cards




            Reasoning




            In the first $18$ cards, that Bob will have, $10$ of those will contain the digit '$1$'. For any ordering, if we divide the cards into $9$ consecutive pairs, by the Pigeonhole Principle, there will be at least one pair which contain two cards showing the digit '$1$'. Hence, Bob will never be able to find a configuration that works.

            On the other hand, Alice just needs to ensure all cards containing the digit '$1$' appear in the odd numbered positions and ensure no two cards which differ by $10$ are next to each other. For example, she could order them as follows, $$ 1, 2, 10, 3, 11, 4, 12, 5, 13, 6, 14, 7, 15, 8, 16, 9, 17$$







            share|improve this answer
























              up vote
              3
              down vote













              I think that Alice must have




              $17$ cards




              Reasoning




              In the first $18$ cards, that Bob will have, $10$ of those will contain the digit '$1$'. For any ordering, if we divide the cards into $9$ consecutive pairs, by the Pigeonhole Principle, there will be at least one pair which contain two cards showing the digit '$1$'. Hence, Bob will never be able to find a configuration that works.

              On the other hand, Alice just needs to ensure all cards containing the digit '$1$' appear in the odd numbered positions and ensure no two cards which differ by $10$ are next to each other. For example, she could order them as follows, $$ 1, 2, 10, 3, 11, 4, 12, 5, 13, 6, 14, 7, 15, 8, 16, 9, 17$$







              share|improve this answer






















                up vote
                3
                down vote










                up vote
                3
                down vote









                I think that Alice must have




                $17$ cards




                Reasoning




                In the first $18$ cards, that Bob will have, $10$ of those will contain the digit '$1$'. For any ordering, if we divide the cards into $9$ consecutive pairs, by the Pigeonhole Principle, there will be at least one pair which contain two cards showing the digit '$1$'. Hence, Bob will never be able to find a configuration that works.

                On the other hand, Alice just needs to ensure all cards containing the digit '$1$' appear in the odd numbered positions and ensure no two cards which differ by $10$ are next to each other. For example, she could order them as follows, $$ 1, 2, 10, 3, 11, 4, 12, 5, 13, 6, 14, 7, 15, 8, 16, 9, 17$$







                share|improve this answer












                I think that Alice must have




                $17$ cards




                Reasoning




                In the first $18$ cards, that Bob will have, $10$ of those will contain the digit '$1$'. For any ordering, if we divide the cards into $9$ consecutive pairs, by the Pigeonhole Principle, there will be at least one pair which contain two cards showing the digit '$1$'. Hence, Bob will never be able to find a configuration that works.

                On the other hand, Alice just needs to ensure all cards containing the digit '$1$' appear in the odd numbered positions and ensure no two cards which differ by $10$ are next to each other. For example, she could order them as follows, $$ 1, 2, 10, 3, 11, 4, 12, 5, 13, 6, 14, 7, 15, 8, 16, 9, 17$$








                share|improve this answer












                share|improve this answer



                share|improve this answer










                answered 30 mins ago









                hexomino

                31.9k295153




                31.9k295153



























                     

                    draft saved


                    draft discarded















































                     


                    draft saved


                    draft discarded














                    StackExchange.ready(
                    function ()
                    StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fpuzzling.stackexchange.com%2fquestions%2f74431%2fa-game-with-numbered-cards%23new-answer', 'question_page');

                    );

                    Post as a guest













































































                    Comments

                    Popular posts from this blog

                    How to decode/decipher Mozilla Firefox proprietary .jsonlz4 format? (sessionstore-backups/recovery.jsonlz4)

                    White Anglo-Saxon Protestant

                    How to be valuable when automation & IT are stealing my job (and maybe my whole career)? [closed]