I learned some shortcuts for some sums in school like:
m∑i=ni=(m−n+1)(m+n)2
So 1+2+3+...+10 = 55. For another sum I found this shortcut on my own:
m∑i2=1i2∑i1=11=m∑i=1i=m(m+1)2
But for a similar looking sum:
m∑i2=1i2∑i1=1i1
I don't know how to condense this to a simpler function like I did for the other ones. How would this be rewritten? I'd like to find a pattern so I can find a general rule to condense as many sums as I want, like this:
m∑in=1in∑in−1=1...i2∑i1=1i1
Sometimes I end up doing sums like these in programming and I can definitely use a shortcut when I'm several sums deep and it starts to take a long time to manually iterate through each sum.
Answer
For the sum
m∑i2=1i2∑i1=1i1
You can simplify this to
m∑i2=1i2(i2+1)2
m∑i2=112i22+12i2
12m∑i2=1i22+12m∑i2=112i2
m(m+1)(2m+1)12+m(m+1)4
m(m+1)(2m+1)+3m(m+1)12
(m+1)(m(2m+1)+3m)12
m(2m+4)(m+1)12
m(m+1)(m+2)6
The next summation (not going to show work in my answer) turns out to be
m(m+1)(m+2)(m+3)24
You can probably conjecture that the nth summation (considering m(m+1)2 as the second) will be
1n!n−1∏i=0(m+i)
Though I'm not sure how exactly to prove this. Maybe try induction?
Edit: This holds for n=1 through 6 using Wolfram Alpha's summation calculator.
Edit: Okay! I have a proof! I'm going to prove the above conjecture using mathematical induction. I have already shown that the conjecture holds for the first two, so that part is out of the way. Our conjecture is that
nk∑nk−1=1nk−1∑nk−2=1...n1∑n0=11=1k!k−1∏i=0(nk+i)
Assume that this statement is true for some nk. Then we must prove that its truth for some nk implies its truth for nk+1, or that if the above is true, then
nk+1∑nk=1nk∑nk−1=1...n1∑n0=11=1(k+1)!k∏i=0(nk+1+i)
Must also be true. This may at first seem like a scary problem to attack until we remember that we assumed that
nk∑nk−1=1nk−1∑nk−2=1...n1∑n0=11=1k!k−1∏i=0(nk+i)
was true, allowing us to substitute and instead have the task of proving
nk+1∑nk=11k!k−1∏i=0(nk+i)=1(k+1)!k∏i=0(nk+1+i)
Which is less intimidating. First one must notice that the quantity
k−1∏i=0(nk+i)
is equal to
(nk+k−1)!(nk−1)!
and we can substitute this into our equation to get
nk+1∑nk=11k!(nk+k−1)!(nk−1)!=1(k+1)!(nk+1+k)!(nk+1−1)!
We can now notice that
1k!(nk+k−1)!(nk−1)!
is the same as
nk+k−1Cnk−1
and so now we have
nk+1∑nk=1nk+k−1Cnk−1=1(k+1)!(nk+1+k)!(nk+1−1)!
Now we can attack the sum
nk+1∑nk=1nk+k−1Cnk−1
Which expands out to form
kC0+k+1C1+k+2C2+...+nk+1+k−1Cnk+1−1
Now we can use the identity of the combinations formula (you can verify this identity for yourself)
nCr=n+1Cr−nCr−1
to expand out our infinite sum:
kC0+(k+2C1−k+1C0)+(k+3C2−k+2C3)+...+(nk+1+kCnk+1−1−nk+1+k−1Cnk+1−2)
We can see now that this is a telescoping sum that condenses down to
kC0−k+1C0+nk+1+kCnk+1−1
=1−1+nk+1+kCnk+1−1
=nk+1+kCnk+1−1
When we substitute this into our equation, we get this:
nk+1+kCnk+1−1=1(k+1)!(nk+1+k)!(nk+1−1)!
(nk+1+k)!(k+1)!(nk+1−1)!=(nk+1+k)!(k+1)!(nk+1−1)!
Which is a truth statement. This proves that if our statement is true for some k, then is must be true for k+1, and since it is true for k=1, it is true for all natural numbers k. QED.
No comments:
Post a Comment