There is a famous proof of the Sum of integers, supposedly put forward by Gauss.
S=n∑i=1i=1+2+3+⋯+(n−2)+(n−1)+n
2S=(1+n)+(2+(n−2))+⋯+(n+1)
S=n(1+n)2
I was looking for a similar proof for when S=n∑i=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+12−2n)+(32+n2+22−4n)+⋯+(n2+n2+(n−1)2−2(n−1)n
From which I noted I could extract the original sum;
2S−S=(12+n2)+(22+n2−2n)+(32+n2−4n)+⋯+(n2+n2−2(n−1)n−n2
Then if I collect all the n terms;
2S−S=n⋅(n−1)2+(12)+(22−2n)+(32−4n)+⋯+(n2−2(n−1)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
S2n−2Sn=((2n)2−12)+((2n−1)2−22)+⋯+((n+1)2−n2)
=(2n+1)(2n−1+2n−3+⋯+1)=(2n+1)n2 using the Gaussian trick in the middle.
Similarly S2n+1−2Sn=(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