There is a question that asks:
Let $A \subset \{{1,...,80\}}, |A| = 11$
Show that there are two 4-element subsets of A with the same sum of elements
The answer is:
Number of 4 element subset: $\binom{11}{4}$
Minimal sum of 4 nums: $1+2+3+4 = 10$
Maximal sum of 4 nums: $77+78+79+80 = 314$
Number of all possible sums $<= 314-10+1 = 305$
Can someone explain here what happened and give an example? Also, what is the purpose of having $+1$ when we are taking the range between the maximal and minimal sum ?
"Can someone explain here what happened and give an example?"
${11\choose 4}=\frac {11*10*9*8}{1*2*3*4} =330$
The smallest possible sum is $1+2+3+4=10$ and the largest possible sum is $77+78+79+80 = 314$.
If all the sums are different then you must force $330$ different values between $10$ and $314$.... which is obviously impossible.
Exactly how many different numbers are there between $10$ and $314$ including both the $10$ and $314$? And if $m > n$ how many numbers are there between $m$ and $n$ including both the $n$ and the $m$. Well, try counting them. It's irritating but the answer is $m - n + 1$. You must add $1$ to "offset the indexing". You'll have to try it a few times to convince yourself but the idea is if you "reset" $10$ to be the "new $0$" then $314$ will be the new $314 - 10$. But we reset $10$ to be the new $1$ so $314$ will be the new $314-10+1$.
Try it. Between $23$, and $29$ including $23$ and $29$ is $23,24,25,26,27,28,29$ are $7$ number. $29-23=6$ (and those are the numbers from $23$ to $29$ not including $23$ and $29-23+1 = 7$ (and those are all the numbers including $23$).
[It was hard to do in the 2nd grade when I first had to do it; and it's still hard to do.]