Prove by induction, the following: n∑k=1k2=n(n+1)(2n+1)6
We will prove the base case for n=1: 1∑k=112=1(1+1)(2(1)+1)6
Using induction we can assume the statement is true for n, we want to prove the statement holds for the case n+1:
n+1∑k=1k2:=n∑k=1k2+(n+1)2=n(n+1)(2n+1)6+(n+1)2by I.H=(n+6)(2n+1)(n+1)36algebra
This is as far as I have gotten in the proof I know that I am almost there, but I am wondering if I missed a step or did the algebra wrong. I know that what I'm supposed to get is (n+1)(n+2)(2n+3)6 or is that incorrect too? This should be fairly simple, but for some reason it just isn't working for me.
Answer
Without seeing details of your "algebra" step, it is hard to be more specific. Start with: n(n+1)(2n+1)6+(n+1)2=n(n+1)(2n+1)6+6(n+1)26=n+16(n(2n+1)+6(n+1))
No comments:
Post a Comment