Why do I get two different answers for this counting problem? Announcing the arrival of Valued Associate #679: Cesar Manara Planned maintenance scheduled April 23, 2019 at 23:30 UTC (7:30pm US/Eastern)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?

Any stored/leased 737s that could substitute for grounded MAXs?

How can I prevent/balance waiting and turtling as a response to cooldown mechanics

Is there a verb for listening stealthily?

How do I say "this must not happen"?

What are some likely causes to domain member PC losing contact to domain controller?

Short story about astronauts fertilizing soil with their own bodies

Statistical analysis applied to methods coming out of Machine Learning

Google .dev domain strangely redirects to https

Should man-made satellites feature an intelligent inverted "cow catcher"?

Why complex landing gears are used instead of simple, reliable and light weight muscle wire or shape memory alloys?

Found this skink in my tomato plant bucket. Is he trapped? Or could he leave if he wanted?

Do i imagine the linear (straight line) homotopy in a correct way?

Is a copyright notice with a non-existent name be invalid?

My mentor says to set image to Fine instead of RAW — how is this different from JPG?

Is it OK to use the testing sample to compare algorithms?

Problem with display of presentation

Table formatting with tabularx?

Is there a spell that can create a permanent fire?

How do you cope with tons of web fonts when copying and pasting from web pages?

What did Turing mean when saying that "machines cannot give rise to surprises" is due to a fallacy?

Random body shuffle every night—can we still function?

First paper to introduce the "principal-agent problem"

Marquee sign letters

The Nth Gryphon Number



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



Announcing the arrival of Valued Associate #679: Cesar Manara
Planned maintenance scheduled April 23, 2019 at 23:30 UTC (7:30pm US/Eastern)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?










23












$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









$endgroup$







  • 4




    $begingroup$
    Nearly right, you're only missing factors of C(3,1) and C(3,2) on the terms respectively. So that you handle the possibilities CCV, CVC, VCC and CVV, VCV, VVC.
    $endgroup$
    – smci
    Apr 4 at 20:36






  • 4




    $begingroup$
    Also, you could have intuited those terms by considering the binomial expansion $(21 + 5)^3$
    $endgroup$
    – smci
    Apr 4 at 20:37















23












$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









$endgroup$







  • 4




    $begingroup$
    Nearly right, you're only missing factors of C(3,1) and C(3,2) on the terms respectively. So that you handle the possibilities CCV, CVC, VCC and CVV, VCV, VVC.
    $endgroup$
    – smci
    Apr 4 at 20:36






  • 4




    $begingroup$
    Also, you could have intuited those terms by considering the binomial expansion $(21 + 5)^3$
    $endgroup$
    – smci
    Apr 4 at 20:37













23












23








23


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









$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













share|cite|improve this question











share|cite|improve this question




share|cite|improve this question










asked Apr 4 at 4:43







user660730














  • 4




    $begingroup$
    Nearly right, you're only missing factors of C(3,1) and C(3,2) on the terms respectively. So that you handle the possibilities CCV, CVC, VCC and CVV, VCV, VVC.
    $endgroup$
    – smci
    Apr 4 at 20:36






  • 4




    $begingroup$
    Also, you could have intuited those terms by considering the binomial expansion $(21 + 5)^3$
    $endgroup$
    – smci
    Apr 4 at 20:37












  • 4




    $begingroup$
    Nearly right, you're only missing factors of C(3,1) and C(3,2) on the terms respectively. So that you handle the possibilities CCV, CVC, VCC and CVV, VCV, VVC.
    $endgroup$
    – smci
    Apr 4 at 20:36






  • 4




    $begingroup$
    Also, you could have intuited those terms by considering the binomial expansion $(21 + 5)^3$
    $endgroup$
    – smci
    Apr 4 at 20:37







4




4




$begingroup$
Nearly right, you're only missing factors of C(3,1) and C(3,2) on the terms respectively. So that you handle the possibilities CCV, CVC, VCC and CVV, VCV, VVC.
$endgroup$
– smci
Apr 4 at 20:36




$begingroup$
Nearly right, you're only missing factors of C(3,1) and C(3,2) on the terms respectively. So that you handle the possibilities CCV, CVC, VCC and CVV, VCV, VVC.
$endgroup$
– smci
Apr 4 at 20:36




4




4




$begingroup$
Also, you could have intuited those terms by considering the binomial expansion $(21 + 5)^3$
$endgroup$
– smci
Apr 4 at 20:37




$begingroup$
Also, you could have intuited those terms by considering the binomial expansion $(21 + 5)^3$
$endgroup$
– smci
Apr 4 at 20:37










6 Answers
6






active

oldest

votes


















29












$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$
    I get it. Thanks so much
    $endgroup$
    – user660730
    Apr 4 at 4:52






  • 2




    $begingroup$
    It's only missing factors of C(3,1) and C(3,2) on the terms respectively.
    $endgroup$
    – smci
    Apr 4 at 20:35


















60












$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$




















    33












    $begingroup$

    When wondering why (or if) something is wrong, a general approach is to make the numbers as small as you can while still maintaining the error but so that you can brute-force the answer. So let's try an alphabet with one vowel A and one consonant B. (Note that this way you can never prove that something is correct, but it's a valuable tool for finding some errors.)



    You get 1 word with no vowels (BBB), 3 words with one vowel (ABB, BAB, BBA), 3 words with two vowels (AAB, ABA, BAA), and 1 word with three vowels (AAA). Your first approach finds the correct number, $2^3-1^3=7$.



    However, the second approach claims for example that there is only $1 cdot 1^2 = 1$ word with exactly one vowel. From here, you can try to see why it gives the wrong answer work (which has already been answered by the other answers).






    share|cite|improve this answer









    $endgroup$




















      7












      $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$




















        2












        $begingroup$

        From a generating function perspective, if $V$ is the number of vowels, $C$ is the number of consonants, and $L$ is the total number of letters, then we have that the number of ways to have one vowel followed by two consonants is $VCC$, or $5*21*21$. We also have $CVC$ and $CCV$. Since multiplication is communative, we have that $VCC+CVC+CCV=3VCC$, so adding those together gives $3VCC$, or $3*5*21*21$. Similarly, for two vowels we have $3VVC=3*5*5*21$. For $VVV$, there's no other way to arrange the order, so it's just $1*5*5*5$.



        So your error was in calculating only $VCC$. That is, you calculated the number of ways of getting a particular order, and didn't take into account the different orders possible.



        We can also look at what happens when we take the total number of sequences, $L^3$. This is equal to $(C+V)^3$. That gives eight terms, $CCC, CCV, CVC, CVV, VCC, VCV, VVC, textand VVV$. Collecting terms that are equivalent up to commutation gives us the binomial formula results: $C^3+3C^2V+3CV^2+V^3$. Subtracting off $C^3$ gives $3C^2V+3CV^2+V^3$.






        share|cite|improve this answer









        $endgroup$




















          0












          $begingroup$

          In your second case $(5cdot21^2)+(5^2cdot21)+5^3=2855$, the first term represents selecting 1 vowel and any two constants. But this represents ABB, BAB, and BBA as one entity, so multiply it by 3 since the vowel could be in any position. Likewise the second term represents one constant and any combinations of vowels, but the constant can be in any of the three positions, so multiply that by 3 as well.



          $3(5cdot21^2)+3(5^2cdot21)+5^3=2855 = 8315$



          For the first term, you can represent vowel, constant, constant as $5cdot21cdot21$, constant, vowel, constant as $21cdot5cdot21$, and constant, constant, vowel as $21cdot21cdot5$, adding those together gives you $3(5cdot21^2)$






          share|cite|improve this answer









          $endgroup$













            Your Answer








            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%2f3174227%2fwhy-do-i-get-two-different-answers-for-this-counting-problem%23new-answer', 'question_page');

            );

            Post as a guest















            Required, but never shown
























            6 Answers
            6






            active

            oldest

            votes








            6 Answers
            6






            active

            oldest

            votes









            active

            oldest

            votes






            active

            oldest

            votes









            29












            $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$
              I get it. Thanks so much
              $endgroup$
              – user660730
              Apr 4 at 4:52






            • 2




              $begingroup$
              It's only missing factors of C(3,1) and C(3,2) on the terms respectively.
              $endgroup$
              – smci
              Apr 4 at 20:35















            29












            $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$
              I get it. Thanks so much
              $endgroup$
              – user660730
              Apr 4 at 4:52






            • 2




              $begingroup$
              It's only missing factors of C(3,1) and C(3,2) on the terms respectively.
              $endgroup$
              – smci
              Apr 4 at 20:35













            29












            29








            29





            $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 Apr 4 at 7:09

























            answered Apr 4 at 4:48









            David G. StorkDavid G. Stork

            12.2k41836




            12.2k41836











            • $begingroup$
              I get it. Thanks so much
              $endgroup$
              – user660730
              Apr 4 at 4:52






            • 2




              $begingroup$
              It's only missing factors of C(3,1) and C(3,2) on the terms respectively.
              $endgroup$
              – smci
              Apr 4 at 20:35
















            • $begingroup$
              I get it. Thanks so much
              $endgroup$
              – user660730
              Apr 4 at 4:52






            • 2




              $begingroup$
              It's only missing factors of C(3,1) and C(3,2) on the terms respectively.
              $endgroup$
              – smci
              Apr 4 at 20:35















            $begingroup$
            I get it. Thanks so much
            $endgroup$
            – user660730
            Apr 4 at 4:52




            $begingroup$
            I get it. Thanks so much
            $endgroup$
            – user660730
            Apr 4 at 4:52




            2




            2




            $begingroup$
            It's only missing factors of C(3,1) and C(3,2) on the terms respectively.
            $endgroup$
            – smci
            Apr 4 at 20:35




            $begingroup$
            It's only missing factors of C(3,1) and C(3,2) on the terms respectively.
            $endgroup$
            – smci
            Apr 4 at 20:35











            60












            $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$

















              60












              $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$















                60












                60








                60





                $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 Apr 4 at 5:00









                heropupheropup

                65.7k865104




                65.7k865104





















                    33












                    $begingroup$

                    When wondering why (or if) something is wrong, a general approach is to make the numbers as small as you can while still maintaining the error but so that you can brute-force the answer. So let's try an alphabet with one vowel A and one consonant B. (Note that this way you can never prove that something is correct, but it's a valuable tool for finding some errors.)



                    You get 1 word with no vowels (BBB), 3 words with one vowel (ABB, BAB, BBA), 3 words with two vowels (AAB, ABA, BAA), and 1 word with three vowels (AAA). Your first approach finds the correct number, $2^3-1^3=7$.



                    However, the second approach claims for example that there is only $1 cdot 1^2 = 1$ word with exactly one vowel. From here, you can try to see why it gives the wrong answer work (which has already been answered by the other answers).






                    share|cite|improve this answer









                    $endgroup$

















                      33












                      $begingroup$

                      When wondering why (or if) something is wrong, a general approach is to make the numbers as small as you can while still maintaining the error but so that you can brute-force the answer. So let's try an alphabet with one vowel A and one consonant B. (Note that this way you can never prove that something is correct, but it's a valuable tool for finding some errors.)



                      You get 1 word with no vowels (BBB), 3 words with one vowel (ABB, BAB, BBA), 3 words with two vowels (AAB, ABA, BAA), and 1 word with three vowels (AAA). Your first approach finds the correct number, $2^3-1^3=7$.



                      However, the second approach claims for example that there is only $1 cdot 1^2 = 1$ word with exactly one vowel. From here, you can try to see why it gives the wrong answer work (which has already been answered by the other answers).






                      share|cite|improve this answer









                      $endgroup$















                        33












                        33








                        33





                        $begingroup$

                        When wondering why (or if) something is wrong, a general approach is to make the numbers as small as you can while still maintaining the error but so that you can brute-force the answer. So let's try an alphabet with one vowel A and one consonant B. (Note that this way you can never prove that something is correct, but it's a valuable tool for finding some errors.)



                        You get 1 word with no vowels (BBB), 3 words with one vowel (ABB, BAB, BBA), 3 words with two vowels (AAB, ABA, BAA), and 1 word with three vowels (AAA). Your first approach finds the correct number, $2^3-1^3=7$.



                        However, the second approach claims for example that there is only $1 cdot 1^2 = 1$ word with exactly one vowel. From here, you can try to see why it gives the wrong answer work (which has already been answered by the other answers).






                        share|cite|improve this answer









                        $endgroup$



                        When wondering why (or if) something is wrong, a general approach is to make the numbers as small as you can while still maintaining the error but so that you can brute-force the answer. So let's try an alphabet with one vowel A and one consonant B. (Note that this way you can never prove that something is correct, but it's a valuable tool for finding some errors.)



                        You get 1 word with no vowels (BBB), 3 words with one vowel (ABB, BAB, BBA), 3 words with two vowels (AAB, ABA, BAA), and 1 word with three vowels (AAA). Your first approach finds the correct number, $2^3-1^3=7$.



                        However, the second approach claims for example that there is only $1 cdot 1^2 = 1$ word with exactly one vowel. From here, you can try to see why it gives the wrong answer work (which has already been answered by the other answers).







                        share|cite|improve this answer












                        share|cite|improve this answer



                        share|cite|improve this answer










                        answered Apr 4 at 13:47









                        JiKJiK

                        5,2241333




                        5,2241333





















                            7












                            $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$

















                              7












                              $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$















                                7












                                7








                                7





                                $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 Apr 4 at 5:04









                                Graham KempGraham Kemp

                                88.1k43579




                                88.1k43579





















                                    2












                                    $begingroup$

                                    From a generating function perspective, if $V$ is the number of vowels, $C$ is the number of consonants, and $L$ is the total number of letters, then we have that the number of ways to have one vowel followed by two consonants is $VCC$, or $5*21*21$. We also have $CVC$ and $CCV$. Since multiplication is communative, we have that $VCC+CVC+CCV=3VCC$, so adding those together gives $3VCC$, or $3*5*21*21$. Similarly, for two vowels we have $3VVC=3*5*5*21$. For $VVV$, there's no other way to arrange the order, so it's just $1*5*5*5$.



                                    So your error was in calculating only $VCC$. That is, you calculated the number of ways of getting a particular order, and didn't take into account the different orders possible.



                                    We can also look at what happens when we take the total number of sequences, $L^3$. This is equal to $(C+V)^3$. That gives eight terms, $CCC, CCV, CVC, CVV, VCC, VCV, VVC, textand VVV$. Collecting terms that are equivalent up to commutation gives us the binomial formula results: $C^3+3C^2V+3CV^2+V^3$. Subtracting off $C^3$ gives $3C^2V+3CV^2+V^3$.






                                    share|cite|improve this answer









                                    $endgroup$

















                                      2












                                      $begingroup$

                                      From a generating function perspective, if $V$ is the number of vowels, $C$ is the number of consonants, and $L$ is the total number of letters, then we have that the number of ways to have one vowel followed by two consonants is $VCC$, or $5*21*21$. We also have $CVC$ and $CCV$. Since multiplication is communative, we have that $VCC+CVC+CCV=3VCC$, so adding those together gives $3VCC$, or $3*5*21*21$. Similarly, for two vowels we have $3VVC=3*5*5*21$. For $VVV$, there's no other way to arrange the order, so it's just $1*5*5*5$.



                                      So your error was in calculating only $VCC$. That is, you calculated the number of ways of getting a particular order, and didn't take into account the different orders possible.



                                      We can also look at what happens when we take the total number of sequences, $L^3$. This is equal to $(C+V)^3$. That gives eight terms, $CCC, CCV, CVC, CVV, VCC, VCV, VVC, textand VVV$. Collecting terms that are equivalent up to commutation gives us the binomial formula results: $C^3+3C^2V+3CV^2+V^3$. Subtracting off $C^3$ gives $3C^2V+3CV^2+V^3$.






                                      share|cite|improve this answer









                                      $endgroup$















                                        2












                                        2








                                        2





                                        $begingroup$

                                        From a generating function perspective, if $V$ is the number of vowels, $C$ is the number of consonants, and $L$ is the total number of letters, then we have that the number of ways to have one vowel followed by two consonants is $VCC$, or $5*21*21$. We also have $CVC$ and $CCV$. Since multiplication is communative, we have that $VCC+CVC+CCV=3VCC$, so adding those together gives $3VCC$, or $3*5*21*21$. Similarly, for two vowels we have $3VVC=3*5*5*21$. For $VVV$, there's no other way to arrange the order, so it's just $1*5*5*5$.



                                        So your error was in calculating only $VCC$. That is, you calculated the number of ways of getting a particular order, and didn't take into account the different orders possible.



                                        We can also look at what happens when we take the total number of sequences, $L^3$. This is equal to $(C+V)^3$. That gives eight terms, $CCC, CCV, CVC, CVV, VCC, VCV, VVC, textand VVV$. Collecting terms that are equivalent up to commutation gives us the binomial formula results: $C^3+3C^2V+3CV^2+V^3$. Subtracting off $C^3$ gives $3C^2V+3CV^2+V^3$.






                                        share|cite|improve this answer









                                        $endgroup$



                                        From a generating function perspective, if $V$ is the number of vowels, $C$ is the number of consonants, and $L$ is the total number of letters, then we have that the number of ways to have one vowel followed by two consonants is $VCC$, or $5*21*21$. We also have $CVC$ and $CCV$. Since multiplication is communative, we have that $VCC+CVC+CCV=3VCC$, so adding those together gives $3VCC$, or $3*5*21*21$. Similarly, for two vowels we have $3VVC=3*5*5*21$. For $VVV$, there's no other way to arrange the order, so it's just $1*5*5*5$.



                                        So your error was in calculating only $VCC$. That is, you calculated the number of ways of getting a particular order, and didn't take into account the different orders possible.



                                        We can also look at what happens when we take the total number of sequences, $L^3$. This is equal to $(C+V)^3$. That gives eight terms, $CCC, CCV, CVC, CVV, VCC, VCV, VVC, textand VVV$. Collecting terms that are equivalent up to commutation gives us the binomial formula results: $C^3+3C^2V+3CV^2+V^3$. Subtracting off $C^3$ gives $3C^2V+3CV^2+V^3$.







                                        share|cite|improve this answer












                                        share|cite|improve this answer



                                        share|cite|improve this answer










                                        answered Apr 4 at 16:46









                                        AcccumulationAcccumulation

                                        7,3332619




                                        7,3332619





















                                            0












                                            $begingroup$

                                            In your second case $(5cdot21^2)+(5^2cdot21)+5^3=2855$, the first term represents selecting 1 vowel and any two constants. But this represents ABB, BAB, and BBA as one entity, so multiply it by 3 since the vowel could be in any position. Likewise the second term represents one constant and any combinations of vowels, but the constant can be in any of the three positions, so multiply that by 3 as well.



                                            $3(5cdot21^2)+3(5^2cdot21)+5^3=2855 = 8315$



                                            For the first term, you can represent vowel, constant, constant as $5cdot21cdot21$, constant, vowel, constant as $21cdot5cdot21$, and constant, constant, vowel as $21cdot21cdot5$, adding those together gives you $3(5cdot21^2)$






                                            share|cite|improve this answer









                                            $endgroup$

















                                              0












                                              $begingroup$

                                              In your second case $(5cdot21^2)+(5^2cdot21)+5^3=2855$, the first term represents selecting 1 vowel and any two constants. But this represents ABB, BAB, and BBA as one entity, so multiply it by 3 since the vowel could be in any position. Likewise the second term represents one constant and any combinations of vowels, but the constant can be in any of the three positions, so multiply that by 3 as well.



                                              $3(5cdot21^2)+3(5^2cdot21)+5^3=2855 = 8315$



                                              For the first term, you can represent vowel, constant, constant as $5cdot21cdot21$, constant, vowel, constant as $21cdot5cdot21$, and constant, constant, vowel as $21cdot21cdot5$, adding those together gives you $3(5cdot21^2)$






                                              share|cite|improve this answer









                                              $endgroup$















                                                0












                                                0








                                                0





                                                $begingroup$

                                                In your second case $(5cdot21^2)+(5^2cdot21)+5^3=2855$, the first term represents selecting 1 vowel and any two constants. But this represents ABB, BAB, and BBA as one entity, so multiply it by 3 since the vowel could be in any position. Likewise the second term represents one constant and any combinations of vowels, but the constant can be in any of the three positions, so multiply that by 3 as well.



                                                $3(5cdot21^2)+3(5^2cdot21)+5^3=2855 = 8315$



                                                For the first term, you can represent vowel, constant, constant as $5cdot21cdot21$, constant, vowel, constant as $21cdot5cdot21$, and constant, constant, vowel as $21cdot21cdot5$, adding those together gives you $3(5cdot21^2)$






                                                share|cite|improve this answer









                                                $endgroup$



                                                In your second case $(5cdot21^2)+(5^2cdot21)+5^3=2855$, the first term represents selecting 1 vowel and any two constants. But this represents ABB, BAB, and BBA as one entity, so multiply it by 3 since the vowel could be in any position. Likewise the second term represents one constant and any combinations of vowels, but the constant can be in any of the three positions, so multiply that by 3 as well.



                                                $3(5cdot21^2)+3(5^2cdot21)+5^3=2855 = 8315$



                                                For the first term, you can represent vowel, constant, constant as $5cdot21cdot21$, constant, vowel, constant as $21cdot5cdot21$, and constant, constant, vowel as $21cdot21cdot5$, adding those together gives you $3(5cdot21^2)$







                                                share|cite|improve this answer












                                                share|cite|improve this answer



                                                share|cite|improve this answer










                                                answered Apr 5 at 22:12









                                                Jason GoemaatJason Goemaat

                                                1504




                                                1504



























                                                    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%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

                                                    Adding axes to figuresAdding axes labels to LaTeX figuresLaTeX equivalent of ConTeXt buffersRotate a node but not its content: the case of the ellipse decorationHow to define the default vertical distance between nodes?TikZ scaling graphic and adjust node position and keep font sizeNumerical conditional within tikz keys?adding axes to shapesAlign axes across subfiguresAdding figures with a certain orderLine up nested tikz enviroments or how to get rid of themAdding axes labels to LaTeX figures

                                                    Tähtien Talli Jäsenet | Lähteet | NavigointivalikkoSuomen Hippos – Tähtien Talli

                                                    Do these cracks on my tires look bad? The Next CEO of Stack OverflowDry rot tire should I replace?Having to replace tiresFishtailed so easily? Bad tires? ABS?Filling the tires with something other than air, to avoid puncture hassles?Used Michelin tires safe to install?Do these tyre cracks necessitate replacement?Rumbling noise: tires or mechanicalIs it possible to fix noisy feathered tires?Are bad winter tires still better than summer tires in winter?Torque converter failure - Related to replacing only 2 tires?Why use snow tires on all 4 wheels on 2-wheel-drive cars?