Quote:
Originally Posted by Acemanhattan
It was a little exciting, yeah. Like I said before though, it was a little "meh" because the hard part would have been coming up with the formula first, which I didn't do. But, nonetheless, it was good stuff.
You can use induction to prove that patterns you notice are true in general, or to disprove them also. For example, it's easy to notice that
1^3 + 2^3 = 9 = 3^2 = (1 + 2)^2
1^3 + 2^3 + 3^3 = 36 = 6^2 = (1 + 2 + 3)^2
1^3 + 2^3 + 3^3 + 4^3 = 100 = 10^2 = (1 + 2 + 3 + 4)^2
You might like to see if this works in general, and if so, to prove it. You already saw that's true by deriving the formulas for these by induction. For the integers it was n(n+1)/2, and for the cubes it was [n(n+1)/2]^2. Getting n(n+1)/2 was easy by the trick of writing the sum backwards and forwards. You can also do it by computing half the area of an n by (n+1) row of boxes using the trick shown
here. The above then suggests that the sum of the cubes is the square of this or [n(n+1)/2]^2. You then show this by induction which you have done. You also could show that the above is true by induction directly instead proving [n(n+1)/2]^2. That's a good exercise that you could benefit from. Show that the sum of the first n cubes is the square of the sum of the first n positive integers. That's a remarkable and unexpected result, and one that you can now notice and derive on your own. You will need to do some algebra using series. You will need the fact that the sum of the first n positive integers is n(n+1)/2.
You could also notice that the formula for the sum of the first n positive integers is a quadratic in n, and the sum of the first n cubes is a 4th order polynomial in n. You might speculate that the sum of the first n powers of p is a polynomial that is of (p+1) order in n. That would mean the sum of the powers of 2 would be 3rd order. The general form would be
1^2 + 2^2 + 3^2 + ... = an^3 + bn^2 + cn + d.
Then you could find a,b,c, and d by writing 4 equations in 4 unknowns by plugging in 4 values of n that work.
a*1^3 + b*1^2 + c*1 + d = 1^2 = 1
a*2^3 + b*2^2 + c*2 + d = 1^2 + 2^2 = 5
a*3^3 + b*3^2 + c*3 + d = 1^2 + 2^2 + 3^2 = 14
a*4^3 + b*4^2 + c*4 + d = 1^2 + 2^2 + 3^2 + 4^2 = 30
Then solve for a,b,c, and d. You get a=1/3, b = 1/6, c=1/2, and d=0, so your theoretical formula is that the sum of the first n squares is
1/3*n^3 + 1/2*n^2 + 1/6*n
or in factored form
n(n+1)(2n+1)/6.
In theory, you could derive the sums for any power this way.