Sunday, March 13, 2016

summation - Condensing a sum into simpler notation



I learned some shortcuts for some sums in school like:



mi=ni=(mn+1)(m+n)2



So 1+2+3+...+10 = 55. For another sum I found this shortcut on my own:




mi2=1i2i1=11=mi=1i=m(m+1)2



But for a similar looking sum:



mi2=1i2i1=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:



min=1inin1=1...i2i1=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
mi2=1i2i1=1i1


You can simplify this to
mi2=1i2(i2+1)2

mi2=112i22+12i2

12mi2=1i22+12mi2=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!n1i=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



nknk1=1nk1nk2=1...n1n0=11=1k!k1i=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+1nk=1nknk1=1...n1n0=11=1(k+1)!ki=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



nknk1=1nk1nk2=1...n1n0=11=1k!k1i=0(nk+i)



was true, allowing us to substitute and instead have the task of proving



nk+1nk=11k!k1i=0(nk+i)=1(k+1)!ki=0(nk+1+i)



Which is less intimidating. First one must notice that the quantity




k1i=0(nk+i)



is equal to



(nk+k1)!(nk1)!



and we can substitute this into our equation to get



nk+1nk=11k!(nk+k1)!(nk1)!=1(k+1)!(nk+1+k)!(nk+11)!




We can now notice that



1k!(nk+k1)!(nk1)!



is the same as



nk+k1Cnk1



and so now we have




nk+1nk=1nk+k1Cnk1=1(k+1)!(nk+1+k)!(nk+11)!



Now we can attack the sum



nk+1nk=1nk+k1Cnk1



Which expands out to form



kC0+k+1C1+k+2C2+...+nk+1+k1Cnk+11




Now we can use the identity of the combinations formula (you can verify this identity for yourself)



nCr=n+1CrnCr1



to expand out our infinite sum:



kC0+(k+2C1k+1C0)+(k+3C2k+2C3)+...+(nk+1+kCnk+11nk+1+k1Cnk+12)



We can see now that this is a telescoping sum that condenses down to




kC0k+1C0+nk+1+kCnk+11


=11+nk+1+kCnk+11

=nk+1+kCnk+11



When we substitute this into our equation, we get this:



nk+1+kCnk+11=1(k+1)!(nk+1+k)!(nk+11)!


(nk+1+k)!(k+1)!(nk+11)!=(nk+1+k)!(k+1)!(nk+11)!



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

analysis - Injection, making bijection

I have injection f:AB and I want to get bijection. Can I just resting codomain to f(A)? I know that every function i...