All k-term sums of the first n natural numbers

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











up vote
2
down vote

favorite












is there a formula that generates k-term sums of the first $n$ natural numbers? The numbers are not allowed to repeat. For example, for $n=10$ and $k=4$, some possible sums would be $1+2+3+4, 2+6+7+8, 5+4+8+9$, etc. Some impossible sums would be $1+2+5+8+9, 4+6, 2+2+2+2, 6+2+3+2$, etc. Pardon the lack of formatting, I am writing from my phone in the car.







share|cite|improve this question

















  • 1




    It is not clear to me what exactly you are after. Are you looking for the number of possible summations? Do you treat $1+4$ differently than $2+3$ because the addends are different or do you treat them as the same since their total is the same? Or... are you looking for a way to generate the list of possible summations (or results of summations)?
    – JMoravitz
    Jul 18 at 22:49










  • In general, the sum $sum _k=n+1^mk$ equals $fracm(m+1)-n(n+1)2$. You may write down each of your sum as combinations of sums of this type (that is, of sums of a certain number of consecutive integers).
    – Suzet
    Jul 18 at 22:51











  • One way to interpret your Question is whether there is an expression which yields all values (and only those values) that are sums of $k$ summands drawn (without replacement) from the set $1,ldots,n$. However without seeing what use would be made, I'm doubtful that I've understood your request clearly enough to give a useful response.
    – hardmath
    Jul 18 at 22:52






  • 2




    Don't write from your phone in the car. That's dangerous to you and others.
    – Cameron Buie
    Jul 18 at 23:19














up vote
2
down vote

favorite












is there a formula that generates k-term sums of the first $n$ natural numbers? The numbers are not allowed to repeat. For example, for $n=10$ and $k=4$, some possible sums would be $1+2+3+4, 2+6+7+8, 5+4+8+9$, etc. Some impossible sums would be $1+2+5+8+9, 4+6, 2+2+2+2, 6+2+3+2$, etc. Pardon the lack of formatting, I am writing from my phone in the car.







share|cite|improve this question

















  • 1




    It is not clear to me what exactly you are after. Are you looking for the number of possible summations? Do you treat $1+4$ differently than $2+3$ because the addends are different or do you treat them as the same since their total is the same? Or... are you looking for a way to generate the list of possible summations (or results of summations)?
    – JMoravitz
    Jul 18 at 22:49










  • In general, the sum $sum _k=n+1^mk$ equals $fracm(m+1)-n(n+1)2$. You may write down each of your sum as combinations of sums of this type (that is, of sums of a certain number of consecutive integers).
    – Suzet
    Jul 18 at 22:51











  • One way to interpret your Question is whether there is an expression which yields all values (and only those values) that are sums of $k$ summands drawn (without replacement) from the set $1,ldots,n$. However without seeing what use would be made, I'm doubtful that I've understood your request clearly enough to give a useful response.
    – hardmath
    Jul 18 at 22:52






  • 2




    Don't write from your phone in the car. That's dangerous to you and others.
    – Cameron Buie
    Jul 18 at 23:19












up vote
2
down vote

favorite









up vote
2
down vote

favorite











is there a formula that generates k-term sums of the first $n$ natural numbers? The numbers are not allowed to repeat. For example, for $n=10$ and $k=4$, some possible sums would be $1+2+3+4, 2+6+7+8, 5+4+8+9$, etc. Some impossible sums would be $1+2+5+8+9, 4+6, 2+2+2+2, 6+2+3+2$, etc. Pardon the lack of formatting, I am writing from my phone in the car.







share|cite|improve this question













is there a formula that generates k-term sums of the first $n$ natural numbers? The numbers are not allowed to repeat. For example, for $n=10$ and $k=4$, some possible sums would be $1+2+3+4, 2+6+7+8, 5+4+8+9$, etc. Some impossible sums would be $1+2+5+8+9, 4+6, 2+2+2+2, 6+2+3+2$, etc. Pardon the lack of formatting, I am writing from my phone in the car.









share|cite|improve this question












share|cite|improve this question




share|cite|improve this question








edited Jul 18 at 22:52









Key Flex

4,346425




4,346425









asked Jul 18 at 22:39









user575235

161




161







  • 1




    It is not clear to me what exactly you are after. Are you looking for the number of possible summations? Do you treat $1+4$ differently than $2+3$ because the addends are different or do you treat them as the same since their total is the same? Or... are you looking for a way to generate the list of possible summations (or results of summations)?
    – JMoravitz
    Jul 18 at 22:49










  • In general, the sum $sum _k=n+1^mk$ equals $fracm(m+1)-n(n+1)2$. You may write down each of your sum as combinations of sums of this type (that is, of sums of a certain number of consecutive integers).
    – Suzet
    Jul 18 at 22:51











  • One way to interpret your Question is whether there is an expression which yields all values (and only those values) that are sums of $k$ summands drawn (without replacement) from the set $1,ldots,n$. However without seeing what use would be made, I'm doubtful that I've understood your request clearly enough to give a useful response.
    – hardmath
    Jul 18 at 22:52






  • 2




    Don't write from your phone in the car. That's dangerous to you and others.
    – Cameron Buie
    Jul 18 at 23:19












  • 1




    It is not clear to me what exactly you are after. Are you looking for the number of possible summations? Do you treat $1+4$ differently than $2+3$ because the addends are different or do you treat them as the same since their total is the same? Or... are you looking for a way to generate the list of possible summations (or results of summations)?
    – JMoravitz
    Jul 18 at 22:49










  • In general, the sum $sum _k=n+1^mk$ equals $fracm(m+1)-n(n+1)2$. You may write down each of your sum as combinations of sums of this type (that is, of sums of a certain number of consecutive integers).
    – Suzet
    Jul 18 at 22:51











  • One way to interpret your Question is whether there is an expression which yields all values (and only those values) that are sums of $k$ summands drawn (without replacement) from the set $1,ldots,n$. However without seeing what use would be made, I'm doubtful that I've understood your request clearly enough to give a useful response.
    – hardmath
    Jul 18 at 22:52






  • 2




    Don't write from your phone in the car. That's dangerous to you and others.
    – Cameron Buie
    Jul 18 at 23:19







1




1




It is not clear to me what exactly you are after. Are you looking for the number of possible summations? Do you treat $1+4$ differently than $2+3$ because the addends are different or do you treat them as the same since their total is the same? Or... are you looking for a way to generate the list of possible summations (or results of summations)?
– JMoravitz
Jul 18 at 22:49




It is not clear to me what exactly you are after. Are you looking for the number of possible summations? Do you treat $1+4$ differently than $2+3$ because the addends are different or do you treat them as the same since their total is the same? Or... are you looking for a way to generate the list of possible summations (or results of summations)?
– JMoravitz
Jul 18 at 22:49












In general, the sum $sum _k=n+1^mk$ equals $fracm(m+1)-n(n+1)2$. You may write down each of your sum as combinations of sums of this type (that is, of sums of a certain number of consecutive integers).
– Suzet
Jul 18 at 22:51





In general, the sum $sum _k=n+1^mk$ equals $fracm(m+1)-n(n+1)2$. You may write down each of your sum as combinations of sums of this type (that is, of sums of a certain number of consecutive integers).
– Suzet
Jul 18 at 22:51













One way to interpret your Question is whether there is an expression which yields all values (and only those values) that are sums of $k$ summands drawn (without replacement) from the set $1,ldots,n$. However without seeing what use would be made, I'm doubtful that I've understood your request clearly enough to give a useful response.
– hardmath
Jul 18 at 22:52




One way to interpret your Question is whether there is an expression which yields all values (and only those values) that are sums of $k$ summands drawn (without replacement) from the set $1,ldots,n$. However without seeing what use would be made, I'm doubtful that I've understood your request clearly enough to give a useful response.
– hardmath
Jul 18 at 22:52




2




2




Don't write from your phone in the car. That's dangerous to you and others.
– Cameron Buie
Jul 18 at 23:19




Don't write from your phone in the car. That's dangerous to you and others.
– Cameron Buie
Jul 18 at 23:19










1 Answer
1






active

oldest

votes

















up vote
5
down vote













They are, in fact, all positive integers between the minimum possible sum



$$frac(k)(k+1)2=1+2+3+...+k$$



and the maximum possible sum



$$kn-frack(k-1)2=(n-k+1)+(n-k+2)+...+n.$$



Can you show, by perturbing previous sums, why all of these sums can be reached?






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%2f2856090%2fall-k-term-sums-of-the-first-n-natural-numbers%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
    5
    down vote













    They are, in fact, all positive integers between the minimum possible sum



    $$frac(k)(k+1)2=1+2+3+...+k$$



    and the maximum possible sum



    $$kn-frack(k-1)2=(n-k+1)+(n-k+2)+...+n.$$



    Can you show, by perturbing previous sums, why all of these sums can be reached?






    share|cite|improve this answer

























      up vote
      5
      down vote













      They are, in fact, all positive integers between the minimum possible sum



      $$frac(k)(k+1)2=1+2+3+...+k$$



      and the maximum possible sum



      $$kn-frack(k-1)2=(n-k+1)+(n-k+2)+...+n.$$



      Can you show, by perturbing previous sums, why all of these sums can be reached?






      share|cite|improve this answer























        up vote
        5
        down vote










        up vote
        5
        down vote









        They are, in fact, all positive integers between the minimum possible sum



        $$frac(k)(k+1)2=1+2+3+...+k$$



        and the maximum possible sum



        $$kn-frack(k-1)2=(n-k+1)+(n-k+2)+...+n.$$



        Can you show, by perturbing previous sums, why all of these sums can be reached?






        share|cite|improve this answer













        They are, in fact, all positive integers between the minimum possible sum



        $$frac(k)(k+1)2=1+2+3+...+k$$



        and the maximum possible sum



        $$kn-frack(k-1)2=(n-k+1)+(n-k+2)+...+n.$$



        Can you show, by perturbing previous sums, why all of these sums can be reached?







        share|cite|improve this answer













        share|cite|improve this answer



        share|cite|improve this answer











        answered Jul 18 at 22:52









        Carl Schildkraut

        8,26211238




        8,26211238






















             

            draft saved


            draft discarded


























             


            draft saved


            draft discarded














            StackExchange.ready(
            function ()
            StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fmath.stackexchange.com%2fquestions%2f2856090%2fall-k-term-sums-of-the-first-n-natural-numbers%23new-answer', 'question_page');

            );

            Post as a guest













































































            Comments

            Popular posts from this blog

            What is the equation of a 3D cone with generalised tilt?

            Color the edges and diagonals of a regular polygon

            Relationship between determinant of matrix and determinant of adjoint?