Possible number of sequences such that $x_i = 1$ or $ 2$ and $sum_1^n x_i = 10$

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











up vote
0
down vote

favorite












How many finite sequences are there such that $x_i = 1$ or $ 2$ and $sum_1^n x_i = 10$ $?$
Now I did it this way:



number of $1$'s $ $:$ $ $0$ ,$2$ ,$4$ ,$6$ , $8$ , $10$ and corresponding

number of $2$'s $ $:$ $ $5$ ,$4$ ,$3$ ,$2$ , $1$ , $0$



So the number such sequence is $1+ binom64 + binom73 +binom82 +binom91 + 1$ = $124$



But the answer says it is $89?$
Where is the mistake$?$







share|cite|improve this question






















  • Check your sum again. I got $89$ using the same method you used.
    – lulu
    Aug 2 '15 at 18:42










  • Oops! That was so silly,posting it here. Answer did not match and I thought formula was wrong.
    – user118494
    Aug 2 '15 at 18:45











  • No worries. Combinatorics are simply confusing.
    – lulu
    Aug 2 '15 at 18:49






  • 2




    By the way, if $a_k$ is the number of such sequences of length $k$, one can show quite easily (no binomial coefficients) that $a_n=a_n-1+a_n-2$. It is easy to find $a_1$ and $a_2$. Now use the recurrence to work your way up to $10$. We get the familiar Fibonacci numbers.
    – André Nicolas
    Aug 2 '15 at 18:56














up vote
0
down vote

favorite












How many finite sequences are there such that $x_i = 1$ or $ 2$ and $sum_1^n x_i = 10$ $?$
Now I did it this way:



number of $1$'s $ $:$ $ $0$ ,$2$ ,$4$ ,$6$ , $8$ , $10$ and corresponding

number of $2$'s $ $:$ $ $5$ ,$4$ ,$3$ ,$2$ , $1$ , $0$



So the number such sequence is $1+ binom64 + binom73 +binom82 +binom91 + 1$ = $124$



But the answer says it is $89?$
Where is the mistake$?$







share|cite|improve this question






















  • Check your sum again. I got $89$ using the same method you used.
    – lulu
    Aug 2 '15 at 18:42










  • Oops! That was so silly,posting it here. Answer did not match and I thought formula was wrong.
    – user118494
    Aug 2 '15 at 18:45











  • No worries. Combinatorics are simply confusing.
    – lulu
    Aug 2 '15 at 18:49






  • 2




    By the way, if $a_k$ is the number of such sequences of length $k$, one can show quite easily (no binomial coefficients) that $a_n=a_n-1+a_n-2$. It is easy to find $a_1$ and $a_2$. Now use the recurrence to work your way up to $10$. We get the familiar Fibonacci numbers.
    – André Nicolas
    Aug 2 '15 at 18:56












up vote
0
down vote

favorite









up vote
0
down vote

favorite











How many finite sequences are there such that $x_i = 1$ or $ 2$ and $sum_1^n x_i = 10$ $?$
Now I did it this way:



number of $1$'s $ $:$ $ $0$ ,$2$ ,$4$ ,$6$ , $8$ , $10$ and corresponding

number of $2$'s $ $:$ $ $5$ ,$4$ ,$3$ ,$2$ , $1$ , $0$



So the number such sequence is $1+ binom64 + binom73 +binom82 +binom91 + 1$ = $124$



But the answer says it is $89?$
Where is the mistake$?$







share|cite|improve this question














How many finite sequences are there such that $x_i = 1$ or $ 2$ and $sum_1^n x_i = 10$ $?$
Now I did it this way:



number of $1$'s $ $:$ $ $0$ ,$2$ ,$4$ ,$6$ , $8$ , $10$ and corresponding

number of $2$'s $ $:$ $ $5$ ,$4$ ,$3$ ,$2$ , $1$ , $0$



So the number such sequence is $1+ binom64 + binom73 +binom82 +binom91 + 1$ = $124$



But the answer says it is $89?$
Where is the mistake$?$









share|cite|improve this question













share|cite|improve this question




share|cite|improve this question








edited Aug 10 at 16:23









Cloud JR

528415




528415










asked Aug 2 '15 at 18:36









user118494

2,66911135




2,66911135











  • Check your sum again. I got $89$ using the same method you used.
    – lulu
    Aug 2 '15 at 18:42










  • Oops! That was so silly,posting it here. Answer did not match and I thought formula was wrong.
    – user118494
    Aug 2 '15 at 18:45











  • No worries. Combinatorics are simply confusing.
    – lulu
    Aug 2 '15 at 18:49






  • 2




    By the way, if $a_k$ is the number of such sequences of length $k$, one can show quite easily (no binomial coefficients) that $a_n=a_n-1+a_n-2$. It is easy to find $a_1$ and $a_2$. Now use the recurrence to work your way up to $10$. We get the familiar Fibonacci numbers.
    – André Nicolas
    Aug 2 '15 at 18:56
















  • Check your sum again. I got $89$ using the same method you used.
    – lulu
    Aug 2 '15 at 18:42










  • Oops! That was so silly,posting it here. Answer did not match and I thought formula was wrong.
    – user118494
    Aug 2 '15 at 18:45











  • No worries. Combinatorics are simply confusing.
    – lulu
    Aug 2 '15 at 18:49






  • 2




    By the way, if $a_k$ is the number of such sequences of length $k$, one can show quite easily (no binomial coefficients) that $a_n=a_n-1+a_n-2$. It is easy to find $a_1$ and $a_2$. Now use the recurrence to work your way up to $10$. We get the familiar Fibonacci numbers.
    – André Nicolas
    Aug 2 '15 at 18:56















Check your sum again. I got $89$ using the same method you used.
– lulu
Aug 2 '15 at 18:42




Check your sum again. I got $89$ using the same method you used.
– lulu
Aug 2 '15 at 18:42












Oops! That was so silly,posting it here. Answer did not match and I thought formula was wrong.
– user118494
Aug 2 '15 at 18:45





Oops! That was so silly,posting it here. Answer did not match and I thought formula was wrong.
– user118494
Aug 2 '15 at 18:45













No worries. Combinatorics are simply confusing.
– lulu
Aug 2 '15 at 18:49




No worries. Combinatorics are simply confusing.
– lulu
Aug 2 '15 at 18:49




2




2




By the way, if $a_k$ is the number of such sequences of length $k$, one can show quite easily (no binomial coefficients) that $a_n=a_n-1+a_n-2$. It is easy to find $a_1$ and $a_2$. Now use the recurrence to work your way up to $10$. We get the familiar Fibonacci numbers.
– André Nicolas
Aug 2 '15 at 18:56




By the way, if $a_k$ is the number of such sequences of length $k$, one can show quite easily (no binomial coefficients) that $a_n=a_n-1+a_n-2$. It is easy to find $a_1$ and $a_2$. Now use the recurrence to work your way up to $10$. We get the familiar Fibonacci numbers.
– André Nicolas
Aug 2 '15 at 18:56










1 Answer
1






active

oldest

votes

















up vote
1
down vote



accepted










Your formula is right. Your algebra is wrong.



$$1+ binom64 + binom73 +binom82 +binom91 +1=89$$



Try redoing the calculation and seeing. Link.






share|cite|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: "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',
    convertImagesToLinks: true,
    noModals: false,
    showLowRepImageUploadWarning: true,
    reputationToPostImages: 10,
    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%2fmath.stackexchange.com%2fquestions%2f1382250%2fpossible-number-of-sequences-such-that-x-i-1-or-2-and-sum-1n-x-i%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
    1
    down vote



    accepted










    Your formula is right. Your algebra is wrong.



    $$1+ binom64 + binom73 +binom82 +binom91 +1=89$$



    Try redoing the calculation and seeing. Link.






    share|cite|improve this answer
























      up vote
      1
      down vote



      accepted










      Your formula is right. Your algebra is wrong.



      $$1+ binom64 + binom73 +binom82 +binom91 +1=89$$



      Try redoing the calculation and seeing. Link.






      share|cite|improve this answer






















        up vote
        1
        down vote



        accepted







        up vote
        1
        down vote



        accepted






        Your formula is right. Your algebra is wrong.



        $$1+ binom64 + binom73 +binom82 +binom91 +1=89$$



        Try redoing the calculation and seeing. Link.






        share|cite|improve this answer












        Your formula is right. Your algebra is wrong.



        $$1+ binom64 + binom73 +binom82 +binom91 +1=89$$



        Try redoing the calculation and seeing. Link.







        share|cite|improve this answer












        share|cite|improve this answer



        share|cite|improve this answer










        answered Aug 2 '15 at 18:42









        Jahan Claes

        95738




        95738






















             

            draft saved


            draft discarded


























             


            draft saved


            draft discarded














            StackExchange.ready(
            function ()
            StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fmath.stackexchange.com%2fquestions%2f1382250%2fpossible-number-of-sequences-such-that-x-i-1-or-2-and-sum-1n-x-i%23new-answer', 'question_page');

            );

            Post as a guest













































































            這個網誌中的熱門文章

            How to combine Bézier curves to a surface?

            Carbon dioxide

            Why am i infinitely getting the same tweet with the Twitter Search API?