Wednesday, September 20, 2017

algebra precalculus - Gaussian proof for the sum of squares?



There is a famous proof of the Sum of integers, supposedly put forward by Gauss.




S=ni=1i=1+2+3++(n2)+(n1)+n



2S=(1+n)+(2+(n2))++(n+1)



S=n(1+n)2



I was looking for a similar proof for when S=ni=1i2



I've tried the same approach of adding the summation to itself in reverse, and I've found this:




2S=(12+n2)+(22+n2+122n)+(32+n2+224n)++(n2+n2+(n1)22(n1)n



From which I noted I could extract the original sum;



2SS=(12+n2)+(22+n22n)+(32+n24n)++(n2+n22(n1)nn2



Then if I collect all the n terms;



2SS=n(n1)2+(12)+(222n)+(324n)++(n22(n1)n




But then I realised I still had the original sum in there, and taking that out mean I no longer had a sum term to extract.



Have I made a mistake here? How can I arrive at the answer of n(n+1)(2n+1)6 using a method similar to the one I expound on above? I.e following Gauss' line of reasoning?


Answer



You can use something similar, though it requires work at the end.



If Sn=12+22++n2 then
S2n2Sn=((2n)212)+((2n1)222)++((n+1)2n2)



=(2n+1)(2n1+2n3++1)=(2n+1)n2 using the Gaussian trick in the middle.




Similarly S2n+12Sn=(2n+1)(n+1)2



So for example to work out S9, you start



S0=02=0



S1=1+2S0=1



S2=3+2S1=5




S4=25+2S2=30



S9=225+2S4=285



but clearly there are easier ways.


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...