Probability of a password having no uppercase letters and at least one digit.












0












$begingroup$


A password consists of 7 characters, where each character has is either an uppercase letter, lowercase letter or a (decimal) digit. I'm trying to find the probability of a password having no uppercase letters and at least one digit.



I know that my sample space has cardinality $62^7$. Let $A = text{set of that a passwords that have no uppercase letters }$, and $B = text{set of that a password that have at least one decimal digit }$. I tried to first find $|A cap B|$ by using the property that $|A cap B| = |S| - |bar A cup bar B|$, where $S$ is our sample space and a bar represents the complement of a set with respect to the sample space. Now, $bar A cup bar B = text{set of that a password that have only letters } = bar B$, from which we have $|bar A cup bar B| = 52^7$. This thus gives $|A cap B| = |S| - |bar A cup bar B| = 62^7-52^7$. Thus we have that the probability of a password having no uppercase letters and at least one digit is: $$frac{62^7-52^7}{62^7}$$ Now, I'm not entirely sure if my solution is correct as this probability coincides with the probability that I obtain a password with at least one decimal digit which would imply that the number of passwords which have at least one decimal digit and no lowercase letters is equal to the number of password with at least one decimal digit, which is obviously false. However, I'm not exactly sure where I've went wrong.










share|cite|improve this question









$endgroup$

















    0












    $begingroup$


    A password consists of 7 characters, where each character has is either an uppercase letter, lowercase letter or a (decimal) digit. I'm trying to find the probability of a password having no uppercase letters and at least one digit.



    I know that my sample space has cardinality $62^7$. Let $A = text{set of that a passwords that have no uppercase letters }$, and $B = text{set of that a password that have at least one decimal digit }$. I tried to first find $|A cap B|$ by using the property that $|A cap B| = |S| - |bar A cup bar B|$, where $S$ is our sample space and a bar represents the complement of a set with respect to the sample space. Now, $bar A cup bar B = text{set of that a password that have only letters } = bar B$, from which we have $|bar A cup bar B| = 52^7$. This thus gives $|A cap B| = |S| - |bar A cup bar B| = 62^7-52^7$. Thus we have that the probability of a password having no uppercase letters and at least one digit is: $$frac{62^7-52^7}{62^7}$$ Now, I'm not entirely sure if my solution is correct as this probability coincides with the probability that I obtain a password with at least one decimal digit which would imply that the number of passwords which have at least one decimal digit and no lowercase letters is equal to the number of password with at least one decimal digit, which is obviously false. However, I'm not exactly sure where I've went wrong.










    share|cite|improve this question









    $endgroup$















      0












      0








      0





      $begingroup$


      A password consists of 7 characters, where each character has is either an uppercase letter, lowercase letter or a (decimal) digit. I'm trying to find the probability of a password having no uppercase letters and at least one digit.



      I know that my sample space has cardinality $62^7$. Let $A = text{set of that a passwords that have no uppercase letters }$, and $B = text{set of that a password that have at least one decimal digit }$. I tried to first find $|A cap B|$ by using the property that $|A cap B| = |S| - |bar A cup bar B|$, where $S$ is our sample space and a bar represents the complement of a set with respect to the sample space. Now, $bar A cup bar B = text{set of that a password that have only letters } = bar B$, from which we have $|bar A cup bar B| = 52^7$. This thus gives $|A cap B| = |S| - |bar A cup bar B| = 62^7-52^7$. Thus we have that the probability of a password having no uppercase letters and at least one digit is: $$frac{62^7-52^7}{62^7}$$ Now, I'm not entirely sure if my solution is correct as this probability coincides with the probability that I obtain a password with at least one decimal digit which would imply that the number of passwords which have at least one decimal digit and no lowercase letters is equal to the number of password with at least one decimal digit, which is obviously false. However, I'm not exactly sure where I've went wrong.










      share|cite|improve this question









      $endgroup$




      A password consists of 7 characters, where each character has is either an uppercase letter, lowercase letter or a (decimal) digit. I'm trying to find the probability of a password having no uppercase letters and at least one digit.



      I know that my sample space has cardinality $62^7$. Let $A = text{set of that a passwords that have no uppercase letters }$, and $B = text{set of that a password that have at least one decimal digit }$. I tried to first find $|A cap B|$ by using the property that $|A cap B| = |S| - |bar A cup bar B|$, where $S$ is our sample space and a bar represents the complement of a set with respect to the sample space. Now, $bar A cup bar B = text{set of that a password that have only letters } = bar B$, from which we have $|bar A cup bar B| = 52^7$. This thus gives $|A cap B| = |S| - |bar A cup bar B| = 62^7-52^7$. Thus we have that the probability of a password having no uppercase letters and at least one digit is: $$frac{62^7-52^7}{62^7}$$ Now, I'm not entirely sure if my solution is correct as this probability coincides with the probability that I obtain a password with at least one decimal digit which would imply that the number of passwords which have at least one decimal digit and no lowercase letters is equal to the number of password with at least one decimal digit, which is obviously false. However, I'm not exactly sure where I've went wrong.







      probability






      share|cite|improve this question













      share|cite|improve this question











      share|cite|improve this question




      share|cite|improve this question










      asked Jan 15 at 21:40









      HaiHai

      1619




      1619






















          1 Answer
          1






          active

          oldest

          votes


















          2












          $begingroup$

          There are a total of $62^7$ passwords, of which $36^7$ have no uppercase letters. The latter can be split into two types - 1. at least one digit, 2. zero digits. So let's find the number of passwords with no uppercase letters and no digits (category 2). This would be $26^7$. Thus, the number of passwords with no uppercase letters and at least one digit is $36^7-26^7$. Finally, the desired probability is:



          $$frac{36^7-26^7}{62^7}$$






          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%2f3075005%2fprobability-of-a-password-having-no-uppercase-letters-and-at-least-one-digit%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









            2












            $begingroup$

            There are a total of $62^7$ passwords, of which $36^7$ have no uppercase letters. The latter can be split into two types - 1. at least one digit, 2. zero digits. So let's find the number of passwords with no uppercase letters and no digits (category 2). This would be $26^7$. Thus, the number of passwords with no uppercase letters and at least one digit is $36^7-26^7$. Finally, the desired probability is:



            $$frac{36^7-26^7}{62^7}$$






            share|cite|improve this answer









            $endgroup$


















              2












              $begingroup$

              There are a total of $62^7$ passwords, of which $36^7$ have no uppercase letters. The latter can be split into two types - 1. at least one digit, 2. zero digits. So let's find the number of passwords with no uppercase letters and no digits (category 2). This would be $26^7$. Thus, the number of passwords with no uppercase letters and at least one digit is $36^7-26^7$. Finally, the desired probability is:



              $$frac{36^7-26^7}{62^7}$$






              share|cite|improve this answer









              $endgroup$
















                2












                2








                2





                $begingroup$

                There are a total of $62^7$ passwords, of which $36^7$ have no uppercase letters. The latter can be split into two types - 1. at least one digit, 2. zero digits. So let's find the number of passwords with no uppercase letters and no digits (category 2). This would be $26^7$. Thus, the number of passwords with no uppercase letters and at least one digit is $36^7-26^7$. Finally, the desired probability is:



                $$frac{36^7-26^7}{62^7}$$






                share|cite|improve this answer









                $endgroup$



                There are a total of $62^7$ passwords, of which $36^7$ have no uppercase letters. The latter can be split into two types - 1. at least one digit, 2. zero digits. So let's find the number of passwords with no uppercase letters and no digits (category 2). This would be $26^7$. Thus, the number of passwords with no uppercase letters and at least one digit is $36^7-26^7$. Finally, the desired probability is:



                $$frac{36^7-26^7}{62^7}$$







                share|cite|improve this answer












                share|cite|improve this answer



                share|cite|improve this answer










                answered Jan 15 at 21:50









                Aditya DuaAditya Dua

                1,11418




                1,11418






























                    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%2f3075005%2fprobability-of-a-password-having-no-uppercase-letters-and-at-least-one-digit%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?