Why is this sum simplified to this value?












1












$begingroup$


We need to find the number of pairs $i,j$ such that $1le i < j le 90.$ and $j - i > 10$. My approach would be to count the total number of pairs which satisfy the first condition, i.e. $90cdot91/2 - 90$. Then subtract the $10$ ineligible pairs from $i = 1$ to $i = 80$, and then subtract the pairs from $i = 81$ to $i= 89$, which gives $-80cdot10-(9+8+7+..+1) = -845$



In total, this is 3160.



But there is a simpler approach. Namely the sum of integers from 1 to 79 which is $79cdot40$? Why does this work?










share|cite|improve this question











$endgroup$








  • 1




    $begingroup$
    I really wonder about the downvote. OP has given their attempt, and wants to know why another attempt is better. There is nothing wrong with this question.
    $endgroup$
    – K Split X
    Jan 29 at 0:02










  • $begingroup$
    @KSplitX some people are grumpy gatekeepers, or simply exist to be contrary.
    $endgroup$
    – The Count
    Jan 29 at 0:07










  • $begingroup$
    i think it was perhaps a little unclear initially. Hopefully it's a bit cleaner now
    $endgroup$
    – Dis-integrating
    Jan 29 at 0:09










  • $begingroup$
    Ha they removed it
    $endgroup$
    – K Split X
    Jan 29 at 0:26
















1












$begingroup$


We need to find the number of pairs $i,j$ such that $1le i < j le 90.$ and $j - i > 10$. My approach would be to count the total number of pairs which satisfy the first condition, i.e. $90cdot91/2 - 90$. Then subtract the $10$ ineligible pairs from $i = 1$ to $i = 80$, and then subtract the pairs from $i = 81$ to $i= 89$, which gives $-80cdot10-(9+8+7+..+1) = -845$



In total, this is 3160.



But there is a simpler approach. Namely the sum of integers from 1 to 79 which is $79cdot40$? Why does this work?










share|cite|improve this question











$endgroup$








  • 1




    $begingroup$
    I really wonder about the downvote. OP has given their attempt, and wants to know why another attempt is better. There is nothing wrong with this question.
    $endgroup$
    – K Split X
    Jan 29 at 0:02










  • $begingroup$
    @KSplitX some people are grumpy gatekeepers, or simply exist to be contrary.
    $endgroup$
    – The Count
    Jan 29 at 0:07










  • $begingroup$
    i think it was perhaps a little unclear initially. Hopefully it's a bit cleaner now
    $endgroup$
    – Dis-integrating
    Jan 29 at 0:09










  • $begingroup$
    Ha they removed it
    $endgroup$
    – K Split X
    Jan 29 at 0:26














1












1








1





$begingroup$


We need to find the number of pairs $i,j$ such that $1le i < j le 90.$ and $j - i > 10$. My approach would be to count the total number of pairs which satisfy the first condition, i.e. $90cdot91/2 - 90$. Then subtract the $10$ ineligible pairs from $i = 1$ to $i = 80$, and then subtract the pairs from $i = 81$ to $i= 89$, which gives $-80cdot10-(9+8+7+..+1) = -845$



In total, this is 3160.



But there is a simpler approach. Namely the sum of integers from 1 to 79 which is $79cdot40$? Why does this work?










share|cite|improve this question











$endgroup$




We need to find the number of pairs $i,j$ such that $1le i < j le 90.$ and $j - i > 10$. My approach would be to count the total number of pairs which satisfy the first condition, i.e. $90cdot91/2 - 90$. Then subtract the $10$ ineligible pairs from $i = 1$ to $i = 80$, and then subtract the pairs from $i = 81$ to $i= 89$, which gives $-80cdot10-(9+8+7+..+1) = -845$



In total, this is 3160.



But there is a simpler approach. Namely the sum of integers from 1 to 79 which is $79cdot40$? Why does this work?







combinatorics binomial-coefficients intuition






share|cite|improve this question















share|cite|improve this question













share|cite|improve this question




share|cite|improve this question








edited Jan 29 at 3:05









J. W. Tanner

4,0611320




4,0611320










asked Jan 28 at 23:59









Dis-integratingDis-integrating

1,043526




1,043526








  • 1




    $begingroup$
    I really wonder about the downvote. OP has given their attempt, and wants to know why another attempt is better. There is nothing wrong with this question.
    $endgroup$
    – K Split X
    Jan 29 at 0:02










  • $begingroup$
    @KSplitX some people are grumpy gatekeepers, or simply exist to be contrary.
    $endgroup$
    – The Count
    Jan 29 at 0:07










  • $begingroup$
    i think it was perhaps a little unclear initially. Hopefully it's a bit cleaner now
    $endgroup$
    – Dis-integrating
    Jan 29 at 0:09










  • $begingroup$
    Ha they removed it
    $endgroup$
    – K Split X
    Jan 29 at 0:26














  • 1




    $begingroup$
    I really wonder about the downvote. OP has given their attempt, and wants to know why another attempt is better. There is nothing wrong with this question.
    $endgroup$
    – K Split X
    Jan 29 at 0:02










  • $begingroup$
    @KSplitX some people are grumpy gatekeepers, or simply exist to be contrary.
    $endgroup$
    – The Count
    Jan 29 at 0:07










  • $begingroup$
    i think it was perhaps a little unclear initially. Hopefully it's a bit cleaner now
    $endgroup$
    – Dis-integrating
    Jan 29 at 0:09










  • $begingroup$
    Ha they removed it
    $endgroup$
    – K Split X
    Jan 29 at 0:26








1




1




$begingroup$
I really wonder about the downvote. OP has given their attempt, and wants to know why another attempt is better. There is nothing wrong with this question.
$endgroup$
– K Split X
Jan 29 at 0:02




$begingroup$
I really wonder about the downvote. OP has given their attempt, and wants to know why another attempt is better. There is nothing wrong with this question.
$endgroup$
– K Split X
Jan 29 at 0:02












$begingroup$
@KSplitX some people are grumpy gatekeepers, or simply exist to be contrary.
$endgroup$
– The Count
Jan 29 at 0:07




$begingroup$
@KSplitX some people are grumpy gatekeepers, or simply exist to be contrary.
$endgroup$
– The Count
Jan 29 at 0:07












$begingroup$
i think it was perhaps a little unclear initially. Hopefully it's a bit cleaner now
$endgroup$
– Dis-integrating
Jan 29 at 0:09




$begingroup$
i think it was perhaps a little unclear initially. Hopefully it's a bit cleaner now
$endgroup$
– Dis-integrating
Jan 29 at 0:09












$begingroup$
Ha they removed it
$endgroup$
– K Split X
Jan 29 at 0:26




$begingroup$
Ha they removed it
$endgroup$
– K Split X
Jan 29 at 0:26










1 Answer
1






active

oldest

votes


















1












$begingroup$

Consider $j'=j-10.$ Then you looking for all pairs $i,j'$ with $1le i < j' le 80.$ This is like picking a 2-element subset out of the 79-element set ${1,2,dots,80}.$ There are $binom{80}{2} = 79cdot 80 / 2 = 3160$ such subsets.






share|cite|improve this answer









$endgroup$













  • $begingroup$
    thanks, very neat trick
    $endgroup$
    – Dis-integrating
    Jan 29 at 0:06










  • $begingroup$
    just a careful observation. You need to subtract 80 from $binom{80}{2}$ to ensure that $j'$ is not $i$. That is why we end up with 79 times 80 over 2 instead of 80 times 81 over 2
    $endgroup$
    – Dis-integrating
    Jan 29 at 0:40












Your Answer





StackExchange.ifUsing("editor", function () {
return StackExchange.using("mathjaxEditing", function () {
StackExchange.MarkdownEditor.creationCallbacks.add(function (editor, postfix) {
StackExchange.mathjaxEditing.prepareWmdForMathJax(editor, postfix, [["$", "$"], ["\\(","\\)"]]);
});
});
}, "mathjax-editing");

StackExchange.ready(function() {
var channelOptions = {
tags: "".split(" "),
id: "69"
};
initTagRenderer("".split(" "), "".split(" "), channelOptions);

StackExchange.using("externalEditor", function() {
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled) {
StackExchange.using("snippets", function() {
createEditor();
});
}
else {
createEditor();
}
});

function createEditor() {
StackExchange.prepareEditor({
heartbeatType: 'answer',
autoActivateHeartbeat: false,
convertImagesToLinks: true,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: 10,
bindNavPrevention: true,
postfix: "",
imageUploader: {
brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
allowUrls: true
},
noCode: true, onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
});


}
});














draft saved

draft discarded


















StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fmath.stackexchange.com%2fquestions%2f3091569%2fwhy-is-this-sum-simplified-to-this-value%23new-answer', 'question_page');
}
);

Post as a guest















Required, but never shown

























1 Answer
1






active

oldest

votes








1 Answer
1






active

oldest

votes









active

oldest

votes






active

oldest

votes









1












$begingroup$

Consider $j'=j-10.$ Then you looking for all pairs $i,j'$ with $1le i < j' le 80.$ This is like picking a 2-element subset out of the 79-element set ${1,2,dots,80}.$ There are $binom{80}{2} = 79cdot 80 / 2 = 3160$ such subsets.






share|cite|improve this answer









$endgroup$













  • $begingroup$
    thanks, very neat trick
    $endgroup$
    – Dis-integrating
    Jan 29 at 0:06










  • $begingroup$
    just a careful observation. You need to subtract 80 from $binom{80}{2}$ to ensure that $j'$ is not $i$. That is why we end up with 79 times 80 over 2 instead of 80 times 81 over 2
    $endgroup$
    – Dis-integrating
    Jan 29 at 0:40
















1












$begingroup$

Consider $j'=j-10.$ Then you looking for all pairs $i,j'$ with $1le i < j' le 80.$ This is like picking a 2-element subset out of the 79-element set ${1,2,dots,80}.$ There are $binom{80}{2} = 79cdot 80 / 2 = 3160$ such subsets.






share|cite|improve this answer









$endgroup$













  • $begingroup$
    thanks, very neat trick
    $endgroup$
    – Dis-integrating
    Jan 29 at 0:06










  • $begingroup$
    just a careful observation. You need to subtract 80 from $binom{80}{2}$ to ensure that $j'$ is not $i$. That is why we end up with 79 times 80 over 2 instead of 80 times 81 over 2
    $endgroup$
    – Dis-integrating
    Jan 29 at 0:40














1












1








1





$begingroup$

Consider $j'=j-10.$ Then you looking for all pairs $i,j'$ with $1le i < j' le 80.$ This is like picking a 2-element subset out of the 79-element set ${1,2,dots,80}.$ There are $binom{80}{2} = 79cdot 80 / 2 = 3160$ such subsets.






share|cite|improve this answer









$endgroup$



Consider $j'=j-10.$ Then you looking for all pairs $i,j'$ with $1le i < j' le 80.$ This is like picking a 2-element subset out of the 79-element set ${1,2,dots,80}.$ There are $binom{80}{2} = 79cdot 80 / 2 = 3160$ such subsets.







share|cite|improve this answer












share|cite|improve this answer



share|cite|improve this answer










answered Jan 29 at 0:04









Reiner MartinReiner Martin

3,509414




3,509414












  • $begingroup$
    thanks, very neat trick
    $endgroup$
    – Dis-integrating
    Jan 29 at 0:06










  • $begingroup$
    just a careful observation. You need to subtract 80 from $binom{80}{2}$ to ensure that $j'$ is not $i$. That is why we end up with 79 times 80 over 2 instead of 80 times 81 over 2
    $endgroup$
    – Dis-integrating
    Jan 29 at 0:40


















  • $begingroup$
    thanks, very neat trick
    $endgroup$
    – Dis-integrating
    Jan 29 at 0:06










  • $begingroup$
    just a careful observation. You need to subtract 80 from $binom{80}{2}$ to ensure that $j'$ is not $i$. That is why we end up with 79 times 80 over 2 instead of 80 times 81 over 2
    $endgroup$
    – Dis-integrating
    Jan 29 at 0:40
















$begingroup$
thanks, very neat trick
$endgroup$
– Dis-integrating
Jan 29 at 0:06




$begingroup$
thanks, very neat trick
$endgroup$
– Dis-integrating
Jan 29 at 0:06












$begingroup$
just a careful observation. You need to subtract 80 from $binom{80}{2}$ to ensure that $j'$ is not $i$. That is why we end up with 79 times 80 over 2 instead of 80 times 81 over 2
$endgroup$
– Dis-integrating
Jan 29 at 0:40




$begingroup$
just a careful observation. You need to subtract 80 from $binom{80}{2}$ to ensure that $j'$ is not $i$. That is why we end up with 79 times 80 over 2 instead of 80 times 81 over 2
$endgroup$
– Dis-integrating
Jan 29 at 0:40


















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%2f3091569%2fwhy-is-this-sum-simplified-to-this-value%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

MongoDB - Not Authorized To Execute Command

Npm cannot find a required file even through it is in the searched directory

in spring boot 2.1 many test slices are not allowed anymore due to multiple @BootstrapWith