Why do I get two different answers for this counting problem?Combinatorics question about english letters (with consonants and vowels)Permutation and CombinationsWords counting problemTwo different answers for combinatorics question - which is correct?Two different answers - cubes and colorsHow many Strings of 6 letters contain: Exactly one Vowel, At least one Vowel?Ways to arrange a word so that no vowel is isolated between two consonantsEx 2., Combinatorics, Harris - Eleven letter sequences from the 26-letter alphabet containing exactly three vowels -String of letters and ways to have at least one vowelHow many different arrangements using 5 letters of the word INTEGRAL, if no two vowels are adjacent?

What mechanic is there to disable a threat instead of killing it?

How seriously should I take size and weight limits of hand luggage?

Why can't we play rap on piano?

Avoiding the "not like other girls" trope?

If human space travel is limited by the G force vulnerability, is there a way to counter G forces?

How could indestructible materials be used in power generation?

Little known, relatively unlikely, but scientifically plausible, apocalyptic (or near apocalyptic) events

How can I determine if the org that I'm currently connected to is a scratch org?

Should I tell management that I intend to leave due to bad software development practices?

Intersection Puzzle

Why was the shrinking from 8″ made only to 5.25″ and not smaller (4″ or less)?

Why would the Red Woman birth a shadow if she worshipped the Lord of the Light?

Expand and Contract

Do scales need to be in alphabetical order?

Why are the 737's rear doors unusable in a water landing?

Why do bosons tend to occupy the same state?

Extract rows of a table, that include less than x NULLs

What reasons are there for a Capitalist to oppose a 100% inheritance tax?

Ambiguity in the definition of entropy

How to prevent "they're falling in love" trope

Short story with a alien planet, government officials must wear exploding medallions

Unlock My Phone! February 2018

What exploit are these user agents trying to use?

Is there an expression that means doing something right before you will need it rather than doing it in case you might need it?



Why do I get two different answers for this counting problem?


Combinatorics question about english letters (with consonants and vowels)Permutation and CombinationsWords counting problemTwo different answers for combinatorics question - which is correct?Two different answers - cubes and colorsHow many Strings of 6 letters contain: Exactly one Vowel, At least one Vowel?Ways to arrange a word so that no vowel is isolated between two consonantsEx 2., Combinatorics, Harris - Eleven letter sequences from the 26-letter alphabet containing exactly three vowels -String of letters and ways to have at least one vowelHow many different arrangements using 5 letters of the word INTEGRAL, if no two vowels are adjacent?













2












$begingroup$


Suppose that we consider English alphabets so we have 26 letters which 5 of them are vowels. I want to find all three letters sequences that contain at least one vowel.



My first approach is $26^3-21^3=8315$ which is the number of all three lettres sequences minus the number of three letter sequences which do not contain vowels.



Second approach: at least one vowel means one vowel or two vowels or three vowels so the answer is $(5cdot21^2)+(5^2cdot21)+5^3=2855$.



Why are these two answers different?










share|cite|improve this question







New contributor




Student is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.







$endgroup$
















    2












    $begingroup$


    Suppose that we consider English alphabets so we have 26 letters which 5 of them are vowels. I want to find all three letters sequences that contain at least one vowel.



    My first approach is $26^3-21^3=8315$ which is the number of all three lettres sequences minus the number of three letter sequences which do not contain vowels.



    Second approach: at least one vowel means one vowel or two vowels or three vowels so the answer is $(5cdot21^2)+(5^2cdot21)+5^3=2855$.



    Why are these two answers different?










    share|cite|improve this question







    New contributor




    Student is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
    Check out our Code of Conduct.







    $endgroup$














      2












      2








      2





      $begingroup$


      Suppose that we consider English alphabets so we have 26 letters which 5 of them are vowels. I want to find all three letters sequences that contain at least one vowel.



      My first approach is $26^3-21^3=8315$ which is the number of all three lettres sequences minus the number of three letter sequences which do not contain vowels.



      Second approach: at least one vowel means one vowel or two vowels or three vowels so the answer is $(5cdot21^2)+(5^2cdot21)+5^3=2855$.



      Why are these two answers different?










      share|cite|improve this question







      New contributor




      Student is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
      Check out our Code of Conduct.







      $endgroup$




      Suppose that we consider English alphabets so we have 26 letters which 5 of them are vowels. I want to find all three letters sequences that contain at least one vowel.



      My first approach is $26^3-21^3=8315$ which is the number of all three lettres sequences minus the number of three letter sequences which do not contain vowels.



      Second approach: at least one vowel means one vowel or two vowels or three vowels so the answer is $(5cdot21^2)+(5^2cdot21)+5^3=2855$.



      Why are these two answers different?







      combinatorics discrete-mathematics






      share|cite|improve this question







      New contributor




      Student is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
      Check out our Code of Conduct.











      share|cite|improve this question







      New contributor




      Student is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
      Check out our Code of Conduct.









      share|cite|improve this question




      share|cite|improve this question






      New contributor




      Student is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
      Check out our Code of Conduct.









      asked 1 hour ago









      StudentStudent

      153




      153




      New contributor




      Student is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
      Check out our Code of Conduct.





      New contributor





      Student is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
      Check out our Code of Conduct.






      Student is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
      Check out our Code of Conduct.




















          3 Answers
          3






          active

          oldest

          votes


















          3












          $begingroup$

          Take the number of all three letter words ($26^3$) and subtract from it the number that have only consonants ($21^3$).



          Your second method does not address all possible sequences of vowels, such as vowel-consonant-vowel or vowel-vowel-consonant or consonant-vowel-vowel.






          share|cite|improve this answer











          $endgroup$












          • $begingroup$
            That is my solution 1. I need to know why solution 2 does not work.
            $endgroup$
            – Student
            1 hour ago










          • $begingroup$
            I get it. Thanks so much
            $endgroup$
            – Student
            1 hour ago


















          1












          $begingroup$

          It is worth noting that to count properly with the second approach, you would have to write $$3 cdot 5 cdot 21^2 + 3 cdot 5^2 cdot 21 + 5^3 = 8315.$$ The first term counts all cases where there is exactly one vowel, and there are three positions for the location of this vowel. The second term counts all cases where there are exactly two vowels, and there are three positions for the location of the sole consonant. The third term counts all cases where there are exactly three vowels, but we do not multiply by three because all three letters are of the same type. You only have to consider the ordering of the types of letters (vowel vs. consonant) when there is more than one type of letter used.






          share|cite|improve this answer









          $endgroup$




















            1












            $begingroup$

            Refer to Binomial Expansion



            $$(21+5)^3=21^3+tbinom 31cdotp 21^2cdotp5+tbinom 32cdotp21cdotp 5^2+5^3$$



            so$$26^3-21^3= (3cdot21^2cdotp 5)+(3cdot21cdotp 5^2)+5^3$$



            The binomial coefficients count the ways to select elements from a set.



            In your case, that is positions to place the vowels in the word.



            There are $3cdot21^2cdotp 5$ ways to select 1 vowels and two consonants where the vowel is in the first, second, or third place. And so on.






            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
              );



              );






              Student is a new contributor. Be nice, and check out our Code of Conduct.









              draft saved

              draft discarded


















              StackExchange.ready(
              function ()
              StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fmath.stackexchange.com%2fquestions%2f3174227%2fwhy-do-i-get-two-different-answers-for-this-counting-problem%23new-answer', 'question_page');

              );

              Post as a guest















              Required, but never shown

























              3 Answers
              3






              active

              oldest

              votes








              3 Answers
              3






              active

              oldest

              votes









              active

              oldest

              votes






              active

              oldest

              votes









              3












              $begingroup$

              Take the number of all three letter words ($26^3$) and subtract from it the number that have only consonants ($21^3$).



              Your second method does not address all possible sequences of vowels, such as vowel-consonant-vowel or vowel-vowel-consonant or consonant-vowel-vowel.






              share|cite|improve this answer











              $endgroup$












              • $begingroup$
                That is my solution 1. I need to know why solution 2 does not work.
                $endgroup$
                – Student
                1 hour ago










              • $begingroup$
                I get it. Thanks so much
                $endgroup$
                – Student
                1 hour ago















              3












              $begingroup$

              Take the number of all three letter words ($26^3$) and subtract from it the number that have only consonants ($21^3$).



              Your second method does not address all possible sequences of vowels, such as vowel-consonant-vowel or vowel-vowel-consonant or consonant-vowel-vowel.






              share|cite|improve this answer











              $endgroup$












              • $begingroup$
                That is my solution 1. I need to know why solution 2 does not work.
                $endgroup$
                – Student
                1 hour ago










              • $begingroup$
                I get it. Thanks so much
                $endgroup$
                – Student
                1 hour ago













              3












              3








              3





              $begingroup$

              Take the number of all three letter words ($26^3$) and subtract from it the number that have only consonants ($21^3$).



              Your second method does not address all possible sequences of vowels, such as vowel-consonant-vowel or vowel-vowel-consonant or consonant-vowel-vowel.






              share|cite|improve this answer











              $endgroup$



              Take the number of all three letter words ($26^3$) and subtract from it the number that have only consonants ($21^3$).



              Your second method does not address all possible sequences of vowels, such as vowel-consonant-vowel or vowel-vowel-consonant or consonant-vowel-vowel.







              share|cite|improve this answer














              share|cite|improve this answer



              share|cite|improve this answer








              edited 1 hour ago

























              answered 1 hour ago









              David G. StorkDavid G. Stork

              11.6k41534




              11.6k41534











              • $begingroup$
                That is my solution 1. I need to know why solution 2 does not work.
                $endgroup$
                – Student
                1 hour ago










              • $begingroup$
                I get it. Thanks so much
                $endgroup$
                – Student
                1 hour ago
















              • $begingroup$
                That is my solution 1. I need to know why solution 2 does not work.
                $endgroup$
                – Student
                1 hour ago










              • $begingroup$
                I get it. Thanks so much
                $endgroup$
                – Student
                1 hour ago















              $begingroup$
              That is my solution 1. I need to know why solution 2 does not work.
              $endgroup$
              – Student
              1 hour ago




              $begingroup$
              That is my solution 1. I need to know why solution 2 does not work.
              $endgroup$
              – Student
              1 hour ago












              $begingroup$
              I get it. Thanks so much
              $endgroup$
              – Student
              1 hour ago




              $begingroup$
              I get it. Thanks so much
              $endgroup$
              – Student
              1 hour ago











              1












              $begingroup$

              It is worth noting that to count properly with the second approach, you would have to write $$3 cdot 5 cdot 21^2 + 3 cdot 5^2 cdot 21 + 5^3 = 8315.$$ The first term counts all cases where there is exactly one vowel, and there are three positions for the location of this vowel. The second term counts all cases where there are exactly two vowels, and there are three positions for the location of the sole consonant. The third term counts all cases where there are exactly three vowels, but we do not multiply by three because all three letters are of the same type. You only have to consider the ordering of the types of letters (vowel vs. consonant) when there is more than one type of letter used.






              share|cite|improve this answer









              $endgroup$

















                1












                $begingroup$

                It is worth noting that to count properly with the second approach, you would have to write $$3 cdot 5 cdot 21^2 + 3 cdot 5^2 cdot 21 + 5^3 = 8315.$$ The first term counts all cases where there is exactly one vowel, and there are three positions for the location of this vowel. The second term counts all cases where there are exactly two vowels, and there are three positions for the location of the sole consonant. The third term counts all cases where there are exactly three vowels, but we do not multiply by three because all three letters are of the same type. You only have to consider the ordering of the types of letters (vowel vs. consonant) when there is more than one type of letter used.






                share|cite|improve this answer









                $endgroup$















                  1












                  1








                  1





                  $begingroup$

                  It is worth noting that to count properly with the second approach, you would have to write $$3 cdot 5 cdot 21^2 + 3 cdot 5^2 cdot 21 + 5^3 = 8315.$$ The first term counts all cases where there is exactly one vowel, and there are three positions for the location of this vowel. The second term counts all cases where there are exactly two vowels, and there are three positions for the location of the sole consonant. The third term counts all cases where there are exactly three vowels, but we do not multiply by three because all three letters are of the same type. You only have to consider the ordering of the types of letters (vowel vs. consonant) when there is more than one type of letter used.






                  share|cite|improve this answer









                  $endgroup$



                  It is worth noting that to count properly with the second approach, you would have to write $$3 cdot 5 cdot 21^2 + 3 cdot 5^2 cdot 21 + 5^3 = 8315.$$ The first term counts all cases where there is exactly one vowel, and there are three positions for the location of this vowel. The second term counts all cases where there are exactly two vowels, and there are three positions for the location of the sole consonant. The third term counts all cases where there are exactly three vowels, but we do not multiply by three because all three letters are of the same type. You only have to consider the ordering of the types of letters (vowel vs. consonant) when there is more than one type of letter used.







                  share|cite|improve this answer












                  share|cite|improve this answer



                  share|cite|improve this answer










                  answered 1 hour ago









                  heropupheropup

                  64.9k764103




                  64.9k764103





















                      1












                      $begingroup$

                      Refer to Binomial Expansion



                      $$(21+5)^3=21^3+tbinom 31cdotp 21^2cdotp5+tbinom 32cdotp21cdotp 5^2+5^3$$



                      so$$26^3-21^3= (3cdot21^2cdotp 5)+(3cdot21cdotp 5^2)+5^3$$



                      The binomial coefficients count the ways to select elements from a set.



                      In your case, that is positions to place the vowels in the word.



                      There are $3cdot21^2cdotp 5$ ways to select 1 vowels and two consonants where the vowel is in the first, second, or third place. And so on.






                      share|cite|improve this answer









                      $endgroup$

















                        1












                        $begingroup$

                        Refer to Binomial Expansion



                        $$(21+5)^3=21^3+tbinom 31cdotp 21^2cdotp5+tbinom 32cdotp21cdotp 5^2+5^3$$



                        so$$26^3-21^3= (3cdot21^2cdotp 5)+(3cdot21cdotp 5^2)+5^3$$



                        The binomial coefficients count the ways to select elements from a set.



                        In your case, that is positions to place the vowels in the word.



                        There are $3cdot21^2cdotp 5$ ways to select 1 vowels and two consonants where the vowel is in the first, second, or third place. And so on.






                        share|cite|improve this answer









                        $endgroup$















                          1












                          1








                          1





                          $begingroup$

                          Refer to Binomial Expansion



                          $$(21+5)^3=21^3+tbinom 31cdotp 21^2cdotp5+tbinom 32cdotp21cdotp 5^2+5^3$$



                          so$$26^3-21^3= (3cdot21^2cdotp 5)+(3cdot21cdotp 5^2)+5^3$$



                          The binomial coefficients count the ways to select elements from a set.



                          In your case, that is positions to place the vowels in the word.



                          There are $3cdot21^2cdotp 5$ ways to select 1 vowels and two consonants where the vowel is in the first, second, or third place. And so on.






                          share|cite|improve this answer









                          $endgroup$



                          Refer to Binomial Expansion



                          $$(21+5)^3=21^3+tbinom 31cdotp 21^2cdotp5+tbinom 32cdotp21cdotp 5^2+5^3$$



                          so$$26^3-21^3= (3cdot21^2cdotp 5)+(3cdot21cdotp 5^2)+5^3$$



                          The binomial coefficients count the ways to select elements from a set.



                          In your case, that is positions to place the vowels in the word.



                          There are $3cdot21^2cdotp 5$ ways to select 1 vowels and two consonants where the vowel is in the first, second, or third place. And so on.







                          share|cite|improve this answer












                          share|cite|improve this answer



                          share|cite|improve this answer










                          answered 1 hour ago









                          Graham KempGraham Kemp

                          87.6k43578




                          87.6k43578




















                              Student is a new contributor. Be nice, and check out our Code of Conduct.









                              draft saved

                              draft discarded


















                              Student is a new contributor. Be nice, and check out our Code of Conduct.












                              Student is a new contributor. Be nice, and check out our Code of Conduct.











                              Student is a new contributor. Be nice, and check out our Code of Conduct.














                              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%2f3174227%2fwhy-do-i-get-two-different-answers-for-this-counting-problem%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

                              Are there any AGPL-style licences that require source code modifications to be public? Planned maintenance scheduled April 23, 2019 at 23:30 UTC (7:30pm US/Eastern) Announcing the arrival of Valued Associate #679: Cesar Manara Unicorn Meta Zoo #1: Why another podcast?Force derivative works to be publicAre there any GPL like licenses for Apple App Store?Do you violate the GPL if you provide source code that cannot be compiled?GPL - is it distribution to use libraries in an appliance loaned to customers?Distributing App for free which uses GPL'ed codeModifications of server software under GPL, with web/CLI interfaceDoes using an AGPLv3-licensed library prevent me from dual-licensing my own source code?Can I publish only select code under GPLv3 from a private project?Is there published precedent regarding the scope of covered work that uses AGPL software?If MIT licensed code links to GPL licensed code what should be the license of the resulting binary program?If I use a public API endpoint that has its source code licensed under AGPL in my app, do I need to disclose my source?

                              2013 GY136 Descoberta | Órbita | Referências Menu de navegação«List Of Centaurs and Scattered-Disk Objects»«List of Known Trans-Neptunian Objects»

                              Button changing it's text & action. Good or terrible? The 2019 Stack Overflow Developer Survey Results Are Inchanging text on user mouseoverShould certain functions be “hard to find” for powerusers to discover?Custom liking function - do I need user login?Using different checkbox style for different checkbox behaviorBest Practices: Save and Exit in Software UIInteraction with remote validated formMore efficient UI to progress the user through a complicated process?Designing a popup notice for a gameShould bulk-editing functions be hidden until a table row is selected, or is there a better solution?Is it bad practice to disable (replace) the context menu?